Enum CompositionType

java.lang.Object
java.lang.Enum<CompositionType>
org.hibernate.validator.constraints.CompositionType
All Implemented Interfaces:
Serializable, Comparable<CompositionType>, java.lang.constant.Constable

public enum CompositionType extends Enum<CompositionType>
The Enum CompositionType which is used as argument to the annotation ConstraintComposition.
  • Enum Constant Details

    • 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 Details

    • values

      public static CompositionType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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 name
      NullPointerException - if the argument is null