Annotation Type PropertyValidators


  • @Retention(RUNTIME)
    @Target({FIELD,METHOD})
    public @interface PropertyValidators
    A group of @PropertyValidator associated to the same property.

    Applies to properties.

    Example:

      @PropertyValidators ({
        @PropertyValidator(value=org.openxava.test.validators.ExcludeStringValidator.class, properties=
          @PropertyValue(name="string", value="MOTO")
        ),
        @PropertyValidator(value=org.openxava.test.validators.ExcludeStringValidator.class, properties=
          @PropertyValue(name="string", value="COCHE")
        ),              
        @PropertyValidator(value=org.openxava.test.validators.ExcludeStringValidator.class, properties=                 
          @PropertyValue(name="string", value="CUATRE"),
          onlyOnCreate=true
        )               
      })
      private String description;
     
    Since 6.1 @PropertyValidator is repeatable, so you don't need to use @PropertyValidators any more.
    Author:
    Javier Paniza
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      PropertyValidator[] value