Enum CompositionType
- java.lang.Object
-
- java.lang.Enum<CompositionType>
-
- org.hibernate.validator.constraints.CompositionType
-
- All Implemented Interfaces:
Serializable,Comparable<CompositionType>
public enum CompositionType extends Enum<CompositionType>
The EnumCompositionTypewhich is used as argument to the annotationConstraintComposition.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_FALSEALL_FALSE is a generalisation of the usual NOT operator, which is applied to a list of conditions rather than just one element.ANDUsed to indicate the conjunction of all the constraints it is applied to.ORUsed to indicate the disjunction of all constraints it is applied to.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompositionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CompositionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OR
public static final CompositionType OR
Used to indicate the disjunction of all constraints it is applied to.
-
AND
public static final CompositionType AND
Used to indicate the conjunction of all the constraints it is applied to.
-
ALL_FALSE
public static final CompositionType ALL_FALSE
ALL_FALSE is a generalisation of the usual NOT operator, which is applied to a list of conditions rather than just one element. When the annotation it is used on is composed of a single constraint annotation, then it is equivalent to NOT.
-
-
Method Detail
-
values
public static CompositionType[] 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 (CompositionType c : CompositionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompositionType 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
-
-