|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=PARAMETER) public static @interface ValidatorDescriptor.ArgumentMapping
Annotation for mapping a value in the validator to an argument in the validator method.
The mappings that can be specified (in the type parameter)
are:
value parameter of the annotation.parameterName parameter must be
populated.Field being validated.Field being validated.Object being validated.Field of the Object being
validated.Field of the
Object being validated.
By default, a mapping of type TARGET_FIELD is mapped to the
first argument of the validation method.
| Optional Element Summary | |
|---|---|
java.lang.Class<?> |
fieldType
The type of the data held by the Field named by
parameterName() when type is
TARGET_OBJECT_FIELD_VALUE. |
int |
index
The index of the Method argument that is
mapped by this ArgumentMapping. |
java.lang.String |
parameterName
The name of a parameter in an Annotation, used if
type is ANNOTATION_PARAMETER. |
ValidatorDescriptor.ArgumentMapping.ArgumentType |
type
The ArgumentType of this ArgumentMapping. |
public abstract ValidatorDescriptor.ArgumentMapping.ArgumentType type
ArgumentType of this ArgumentMapping.
public abstract java.lang.String parameterName
Annotation, used if
type is ANNOTATION_PARAMETER.
public abstract java.lang.Class<?> fieldType
Field named by
parameterName() when type is
TARGET_OBJECT_FIELD_VALUE. Default type is
Object.
public abstract int index
index of the Method argument that is
mapped by this ArgumentMapping. The default value is
0.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||