Package org.openxava.annotations
Annotation Type PropertyValidators
-
@Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface PropertyValidators
A group of@
associated to the same property.PropertyValidator
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
-
-
-
Element Detail
-
value
PropertyValidator[] value
-
-