net.sourceforge.annovalidator.validation.annotations
Enum ValidatorDescriptor.ArgumentMapping.ArgumentType

java.lang.Object
  extended by java.lang.Enum<ValidatorDescriptor.ArgumentMapping.ArgumentType>
      extended by net.sourceforge.annovalidator.validation.annotations.ValidatorDescriptor.ArgumentMapping.ArgumentType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ValidatorDescriptor.ArgumentMapping.ArgumentType>
Enclosing class:
ValidatorDescriptor.ArgumentMapping

public static enum ValidatorDescriptor.ArgumentMapping.ArgumentType
extends java.lang.Enum<ValidatorDescriptor.ArgumentMapping.ArgumentType>

Specifies the type of value that should be mapped to the argument at index.

The valid types are:

ANNOTATION_VALUE
The value parameter of the annotation.
ANNOTATION_PARAMETER
The value of a named parameter of the annotation. If this is used, then the parameterName parameter must be populated.
TARGET_FIELD_VALUE
The value of the Field being validated.
TARGET_FIELD
The Field being validated.
TARGET_OBJECT
The Object being validated.
TARGET_OBJECT_FIELD
A named Field of the Object being validated.
TARGET_OBJECT_FIELD_VALUE
The value of a named Field of the Object being validated.


Enum Constant Summary
ANNOTATION_PARAMETER
          A named parameter in the annotation.
ANNOTATION_VALUE
          The value parameter of the annotation.
TARGET_FIELD
          The Field being validated.
TARGET_FIELD_VALUE
          The value of the field being validated.
TARGET_OBJECT
          The object containing the field being validated.
TARGET_OBJECT_FIELD
          A named Field of the target object.
TARGET_OBJECT_FIELD_VALUE
          The value of a named Field of the target object.
 
Method Summary
static ValidatorDescriptor.ArgumentMapping.ArgumentType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ValidatorDescriptor.ArgumentMapping.ArgumentType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ANNOTATION_VALUE

public static final ValidatorDescriptor.ArgumentMapping.ArgumentType ANNOTATION_VALUE
The value parameter of the annotation.


ANNOTATION_PARAMETER

public static final ValidatorDescriptor.ArgumentMapping.ArgumentType ANNOTATION_PARAMETER
A named parameter in the annotation.


TARGET_FIELD_VALUE

public static final ValidatorDescriptor.ArgumentMapping.ArgumentType TARGET_FIELD_VALUE
The value of the field being validated.


TARGET_OBJECT

public static final ValidatorDescriptor.ArgumentMapping.ArgumentType TARGET_OBJECT
The object containing the field being validated.


TARGET_FIELD

public static final ValidatorDescriptor.ArgumentMapping.ArgumentType TARGET_FIELD
The Field being validated.


TARGET_OBJECT_FIELD

public static final ValidatorDescriptor.ArgumentMapping.ArgumentType TARGET_OBJECT_FIELD
A named Field of the target object.


TARGET_OBJECT_FIELD_VALUE

public static final ValidatorDescriptor.ArgumentMapping.ArgumentType TARGET_OBJECT_FIELD_VALUE
The value of a named Field of the target object.

Method Detail

values

public static final ValidatorDescriptor.ArgumentMapping.ArgumentType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ValidatorDescriptor.ArgumentMapping.ArgumentType c : ValidatorDescriptor.ArgumentMapping.ArgumentType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static ValidatorDescriptor.ArgumentMapping.ArgumentType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2008. All Rights Reserved.