|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a mechanism for the validation of an arbitrary set of fields on a form. This is mostly used for an atomic validation operation on more than one field in the form. The main uses of this would be things like making sure that there was a state selected if the country was USA, Australia or Canada or making sure that the sum of the net and the tax was the total of an order form.
Method Summary | |
java.lang.String[] |
getFieldNames()
This method is used to retrieve the names of the fields to be validated by this validator. |
void |
validate(java.util.Map values)
This method validates the given map of field names and values according to the implementation-defined validation rules. |
void |
validate(java.util.Map values,
java.util.Locale locale)
This method validates the given map of field names and values according to the implementation-defined validation rules and the specified locale. |
Method Detail |
public void validate(java.util.Map values) throws FieldSetValidationException
values
- the Map of values validated by this validator
FieldSetValidationException
- if the validation failspublic void validate(java.util.Map values, java.util.Locale locale) throws FieldSetValidationException
values
- the Map of values validated by this validatorlocale
- the locale to be used other than the default
FieldSetValidationException
- if the validation failspublic java.lang.String[] getFieldNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |