@Documented
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface PropertyValidator
Modifier and Type | Optional Element and Description |
---|---|
boolean |
bypass
The validator will not interfere if bypass is true
|
boolean |
ignoreOnFailure
Tells the validator to simply ignore the property on failure.
|
NumberValidator |
number
The expected property is a number.
|
StringValidator |
string
The expected property is a string
|
java.lang.Class<?> |
type
The expected Supertype
|
java.lang.Class<? extends DtoPropertyValidator>[] |
validators
Returns an array containing validators for a specific property
|
public abstract boolean bypass
public abstract boolean ignoreOnFailure
public abstract StringValidator string
public abstract NumberValidator number
public abstract java.lang.Class<? extends DtoPropertyValidator>[] validators