@Retention(value=RUNTIME)
@Target(value=METHOD)
protected static @interface DBObjectValidator.PropertyValidator
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String[] |
value
The property, property path, or properties that are validated by the
method with this annotation.
|
| Modifier and Type | Optional Element and Description |
|---|---|
ValidationLevel |
level
Indicates the validation mode that the logic is for.
|
boolean |
path
Indicates whether the array of "Property"s returned by
value()
is a path to one property, or a list or properties that will all be
validated by one method. |
public abstract java.lang.String[] value
path()public abstract boolean path
value()
is a path to one property, or a list or properties that will all be
validated by one method.value() should be interpretted as a property
path, rather than a list of properties.public abstract ValidationLevel level
ValidationLevel.SIMPLE, and null should
never be used (it will cause the method to be ignored).