Enum Class ProblemCodes
- All Implemented Interfaces:
Serializable
,Comparable<ProblemCodes>
,Constable
,nz.org.riskscape.problem.ProblemCode
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionWhen a classifier function body section does not return a struct type.Classifier function has an empty bodyWhen a filter has no content.When both a function and a default is supplied.Classifier function is missing an idWhen someRealizedTreeExpression
s return simple types whilst others returnStruct
types.When a classifier function pre section does not return a struct type.When the identifier has already been defined.When the declared return-type doesn't match what's actually returned by the post/etc -
Method Summary
Modifier and TypeMethodDescriptionstatic ProblemCodes
Returns the enum constant of this class with the specified name.static ProblemCodes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface nz.org.riskscape.problem.ProblemCode
name, toKey
-
Enum Constant Details
-
PRE_NOT_STRUCT
When a classifier function pre section does not return a struct type.
-
BODY_NOT_STRUCT
When a classifier function body section does not return a struct type. which is required if there is a post section
-
MISSING_ID
Classifier function is missing an id
-
EMPTY_BODY
Classifier function has an empty body
-
EMPTY_FILTER
When a filter has no content. Requires either child filters or a function.
-
RETURN_TYPE_MISMATCH
When the declared return-type doesn't match what's actually returned by the post/etc
-
MIXED_TREE_RESULT_TYPES
When some
RealizedTreeExpression
s return simple types whilst others returnStruct
types. -
FUNCTION_AND_DEFAULT
When both a function and a default is supplied. This is not allowed as the function becomes the default if no default is supplied. When this occurs the function itself becomes redundant which is not likely to be what the user expects.
-
REDEFINITION
When the identifier has already been defined. Re-using the same ident is not allowed.
-
-
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
-