@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
public @interface PropertyValidators
@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.
Modifier and Type | Required Element and Description |
---|---|
PropertyValidator[] |
value |
public abstract PropertyValidator[] value