org.openxava.annotations
Annotation Type PropertyValidators


@Retention(value=RUNTIME)
@Target(value={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;
 

Author:
Javier Paniza

Required Element Summary
 PropertyValidator[] value
           
 

Element Detail

value

public abstract PropertyValidator[] value