Package org.openxava.annotations
Annotation 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
-
Element Details
-
value
PropertyValidator[] value
-