Package org.nuiton.validator
Class NuitonValidatorResult
- java.lang.Object
-
- org.nuiton.validator.NuitonValidatorResult
-
public class NuitonValidatorResult extends Object
Contains validation messages coming from the methodNuitonValidator.validate(Object)
.- Since:
- 2.0
- Author:
- Tony Chemit - chemit@codelutin.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NuitonValidatorResult.FieldMap<V>
-
Field Summary
Fields Modifier and Type Field Description protected EnumMap<NuitonValidatorScope,NuitonValidatorResult.FieldMap<List<String>>>
messages
protected Map<String,NuitonValidatorResult.FieldMap<Object>>
tagValues
-
Constructor Summary
Constructors Constructor Description NuitonValidatorResult()
-
Method Summary
-
-
-
Field Detail
-
messages
protected EnumMap<NuitonValidatorScope,NuitonValidatorResult.FieldMap<List<String>>> messages
-
tagValues
protected Map<String,NuitonValidatorResult.FieldMap<Object>> tagValues
-
-
Method Detail
-
isValid
public boolean isValid()
-
clear
public void clear()
-
isEmpty
public boolean isEmpty()
-
hasMessagesForScope
public boolean hasMessagesForScope(NuitonValidatorScope scope)
-
hasMessagesForScope
public boolean hasMessagesForScope(String field, NuitonValidatorScope scope)
-
hasFatalMessages
public boolean hasFatalMessages()
-
hasErrorMessagess
public boolean hasErrorMessagess()
-
hasInfoMessages
public boolean hasInfoMessages()
-
hasWarningMessages
public boolean hasWarningMessages()
-
addMessagesForScope
public void addMessagesForScope(NuitonValidatorScope scope, Map<String,List<String>> newMessages)
-
setMessagesForScope
public void setMessagesForScope(NuitonValidatorScope scope, String field, List<String> messages)
-
getMessagesForScope
public List<String> getMessagesForScope(NuitonValidatorScope scope)
-
getMessagesForScope
public List<String> getMessagesForScope(String field, NuitonValidatorScope scope)
-
getFieldsForScope
public List<String> getFieldsForScope(NuitonValidatorScope scope)
-
clearMessagesForScope
public void clearMessagesForScope(NuitonValidatorScope scope)
-
getFieldHighestScope
public NuitonValidatorScope getFieldHighestScope(String field)
-
getFieldScopes
public NuitonValidatorScope[] getFieldScopes(String field)
-
containsField
protected boolean containsField(String field, NuitonValidatorScope scope)
-
getMessages
protected EnumMap<NuitonValidatorScope,NuitonValidatorResult.FieldMap<List<String>>> getMessages()
-
getTagValues
protected Map<String,NuitonValidatorResult.FieldMap<Object>> getTagValues()
-
-