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[] propertyName
    Obtain the name of the bean property(ies) to validate.
    java.lang.String validatorId
    Obtain the id of the validator used for the field.
  • Optional Element Summary

    Optional Elements
    Modifier and Type Optional Element Description
    java.lang.String editorName
    Obtain the name of the property editor.
  • Element Details

    • validatorId

      java.lang.String validatorId
      Obtain the id of the validator used for the field.
      Returns:
      the id of the validator used for the field.
    • propertyName

      java.lang.String[] propertyName
      Obtain the name of the bean property(ies) to validate.
      Returns:
      the name of the property(ies) to validate
    • editorName

      java.lang.String editorName
      Obtain the name of the property editor. If empty, then use the propertyName().
      Returns:
      the name of the property editor
      Default:
      ""