|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=ANNOTATION_TYPE) public @interface ValidatorDescriptor
Annotation to identify a validator annotation.
The value of this annotation should contain the class used to
perform the validation.
| Required Element Summary | |
|---|---|
java.lang.Class<?> |
validatorClass
The class of the validator used to validate Fields with the annotated Annotation. |
| Optional Element Summary | |
|---|---|
ValidatorDescriptor.ArgumentMapping[] |
argumentMappings
Specifies which fields in the marked annotation should be mapped to which arguments in the validator method. |
java.lang.String |
errorCode
Custom error code used to display a message if this validation fails. |
java.lang.String |
errorCodeSuffix
Suffix to append to a generated error code to identify the particular validation that has taken place. |
java.lang.Class<?> |
targetObjectClass
The class this validation is designed to validate. |
java.lang.String |
validatorMethodName
The name of the method in validatorClass that performs the
validation. |
| Element Detail |
|---|
public abstract java.lang.Class<?> validatorClass
Fields with the annotated Annotation.
public abstract java.lang.String validatorMethodName
validatorClass that performs the
validation.
public abstract java.lang.String errorCodeSuffix
customErrorCode
is used.
public abstract java.lang.String errorCode
public abstract ValidatorDescriptor.ArgumentMapping[] argumentMappings
0) is mapped to the Field being
validated.
public abstract java.lang.Class<?> targetObjectClass
Object.class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||