|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractMap | +--java.util.HashMap | +--org.formproc.validation.ValidationResultMap
A map of field names to validation results.
Constructor Summary | |
ValidationResultMap()
|
Method Summary | |
boolean |
allValid()
Return true if all validation results in the map are valid. |
java.lang.String |
getErrorMessage(java.lang.String field)
Get the error message for the given field or null if the field is valid. |
java.lang.String |
getErrorMessage(java.lang.String field,
java.util.Locale locale)
Get the locale-specific error message for the given field or null if the field is valid. |
java.util.Iterator |
getErrorMessages()
Get an iterator for all error messages using the default Locale. |
java.util.Iterator |
getErrorMessages(java.util.Locale locale)
Get an Iterator for all error messages in the given Locale. |
boolean |
isValid(java.lang.String field)
Return true if the given field's validation result is true. |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
Constructor Detail |
public ValidationResultMap()
Method Detail |
public boolean allValid()
public boolean isValid(java.lang.String field)
field
- The field name
public java.lang.String getErrorMessage(java.lang.String field)
field
- The field name
public java.lang.String getErrorMessage(java.lang.String field, java.util.Locale locale)
field
- The field namelocale
- The Locale
public java.util.Iterator getErrorMessages()
public java.util.Iterator getErrorMessages(java.util.Locale locale)
locale
- The Locale
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |