Enum ConstraintLocation.ConstraintLocationKind
- java.lang.Object
-
- java.lang.Enum<ConstraintLocation.ConstraintLocationKind>
-
- org.hibernate.validator.internal.metadata.location.ConstraintLocation.ConstraintLocationKind
-
- All Implemented Interfaces:
Serializable,Comparable<ConstraintLocation.ConstraintLocationKind>
- Enclosing interface:
- ConstraintLocation
public static enum ConstraintLocation.ConstraintLocationKind extends Enum<ConstraintLocation.ConstraintLocationKind>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementTypegetElementType()booleanisExecutable()booleanisMethod()static ConstraintLocation.ConstraintLocationKindof(ConstrainedElement.ConstrainedElementKind constrainedElementKind)static ConstraintLocation.ConstraintLocationKindvalueOf(String name)Returns the enum constant of this type with the specified name.static ConstraintLocation.ConstraintLocationKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TYPE
public static final ConstraintLocation.ConstraintLocationKind TYPE
-
CONSTRUCTOR
public static final ConstraintLocation.ConstraintLocationKind CONSTRUCTOR
-
METHOD
public static final ConstraintLocation.ConstraintLocationKind METHOD
-
PARAMETER
public static final ConstraintLocation.ConstraintLocationKind PARAMETER
-
FIELD
public static final ConstraintLocation.ConstraintLocationKind FIELD
-
GETTER
public static final ConstraintLocation.ConstraintLocationKind GETTER
-
TYPE_USE
public static final ConstraintLocation.ConstraintLocationKind TYPE_USE
-
-
Method Detail
-
values
public static ConstraintLocation.ConstraintLocationKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConstraintLocation.ConstraintLocationKind c : ConstraintLocation.ConstraintLocationKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConstraintLocation.ConstraintLocationKind valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getElementType
public ElementType getElementType()
-
isExecutable
public boolean isExecutable()
-
isMethod
public boolean isMethod()
-
of
public static ConstraintLocation.ConstraintLocationKind of(ConstrainedElement.ConstrainedElementKind constrainedElementKind)
-
-