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 - dev@tchemit.fr
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String[] propertyName
      Obtain the name of the bean property(ies) to validate.
      String validatorId
      Obtain the id of the validator used for the field.
    • Optional Element Summary

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

      • validatorId

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

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

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