Package nz.org.riskscape.engine.relation
Enum Class TypeCheckingOptions
- All Implemented Interfaces:
Serializable
,Comparable<TypeCheckingOptions>
,Constable
TODO commented out values are for consideration for #199, for now support skipping and validation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIf given, values this relation yields are premptively coerced, according to the given options.If given, any values that do not coerce, subject to other options, will be omitted from the values this relation yields. -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeCheckingOptions
Returns the enum constant of this class with the specified name.static TypeCheckingOptions[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
If given, any values that do not coerce, subject to other options, will be omitted from the values this relation yields.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-