Annotation Type ValidatorField
@Target({FIELD,METHOD})
@Retention(RUNTIME)
public @interface ValidatorField
Annotation to put on each field or method linked to a validator.
- Since:
- 2.3
- Author:
- Tony Chemit - chemit@codelutin.com
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String[]propertyNameObtain the name of the bean property(ies) to validate.java.lang.StringvalidatorIdObtain the id of the validator used for the field. -
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringeditorNameObtain the name of the property editor.
-
Element Details
-
validatorId
java.lang.String validatorIdObtain the id of the validator used for the field.- Returns:
- the id of the validator used for the field.
-
propertyName
java.lang.String[] propertyNameObtain the name of the bean property(ies) to validate.- Returns:
- the name of the property(ies) to validate
-
-
-
editorName
java.lang.String editorNameObtain the name of the property editor. If empty, then use thepropertyName().- Returns:
- the name of the property editor
- Default:
- ""
-