Enum Optionality

java.lang.Object
java.lang.Enum<Optionality>
org.apache.calcite.util.Optionality
All Implemented Interfaces:
Serializable, Comparable<Optionality>, Constable

public enum Optionality extends Enum<Optionality>
Four states that describe whether a particular behavior or property is allowed and/or not allowed.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    A property is forbidden if an instance must not possess it; it is an error if the instance has the property.
    A property is ignored if an instance may or may not possess it; if it possesses the property, the effect is as if it does not.
    A property is mandatory if an instance must possess it; it is an error if it does not.
    A property is optional if an instance may or may not possess it; neither state is an error.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    static Optionality[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • MANDATORY

      public static final Optionality MANDATORY
      A property is mandatory if an instance must possess it; it is an error if it does not.
    • OPTIONAL

      public static final Optionality OPTIONAL
      A property is optional if an instance may or may not possess it; neither state is an error.
    • IGNORED

      public static final Optionality IGNORED
      A property is ignored if an instance may or may not possess it; if it possesses the property, the effect is as if it does not.
    • FORBIDDEN

      public static final Optionality FORBIDDEN
      A property is forbidden if an instance must not possess it; it is an error if the instance has the property.
  • Method Details

    • values

      public static Optionality[] 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 Optionality 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