Class UniqueNameValidator
java.lang.Object
ch.tocco.nice2.model.form.impl.modelvalidator.UniqueNameValidator
- All Implemented Interfaces:
ComponentValidator
Validates that all names of elements in the (form) model are unique.
The name of an element is prefixed with all parent names.
Theoretical example (dunno exact syntax): from.formname.fieldname
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
UniqueNameValidator
public UniqueNameValidator()
-
-
Method Details
-
validate
Description copied from interface:ComponentValidator
Finding: this is called with
Form
instances (only)! -andrej- Specified by:
validate
in interfaceComponentValidator
- Parameters:
toValidate
- Currently called with Form instances.- Throws:
ModelValidationException
-