Enum Class TypeCheckingOptions

java.lang.Object
java.lang.Enum<TypeCheckingOptions>
nz.org.riskscape.engine.relation.TypeCheckingOptions
All Implemented Interfaces:
Serializable, Comparable<TypeCheckingOptions>, Constable

public enum TypeCheckingOptions extends Enum<TypeCheckingOptions>

TODO commented out values are for consideration for #199, for now support skipping and validation.

  • Enum Constant Details

    • COERCE

      public static final TypeCheckingOptions COERCE

      If given, values this relation yields are premptively coerced, according to the given options. If values are invalid, iteration will either fail or skip values, depending on whether SKIPINVALIDTUPLES has been given.

    • SKIP_INVALID_TUPLES

      public static final TypeCheckingOptions SKIP_INVALID_TUPLES

      If given, any values that do not coerce, subject to other options, will be omitted from the values this relation yields.

  • Method Details

    • values

      public static TypeCheckingOptions[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TypeCheckingOptions valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null