Enum Class ProblemCodes

java.lang.Object
java.lang.Enum<ProblemCodes>
nz.org.riskscape.defaults.classifier.ProblemCodes
All Implemented Interfaces:
Serializable, Comparable<ProblemCodes>, Constable, nz.org.riskscape.problem.ProblemCode

public enum ProblemCodes extends Enum<ProblemCodes> implements nz.org.riskscape.problem.ProblemCode
  • Enum Constant Details

    • PRE_NOT_STRUCT

      public static final ProblemCodes PRE_NOT_STRUCT

      When a classifier function pre section does not return a struct type.

    • BODY_NOT_STRUCT

      public static final ProblemCodes 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

      public static final ProblemCodes MISSING_ID

      Classifier function is missing an id

    • EMPTY_BODY

      public static final ProblemCodes EMPTY_BODY

      Classifier function has an empty body

    • EMPTY_FILTER

      public static final ProblemCodes EMPTY_FILTER

      When a filter has no content. Requires either child filters or a function.

    • RETURN_TYPE_MISMATCH

      public static final ProblemCodes RETURN_TYPE_MISMATCH

      When the declared return-type doesn't match what's actually returned by the post/etc

    • MIXED_TREE_RESULT_TYPES

      public static final ProblemCodes MIXED_TREE_RESULT_TYPES

      When some RealizedTreeExpressions return simple types whilst others return Struct types.

    • FUNCTION_AND_DEFAULT

      public static final ProblemCodes 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

      public static final ProblemCodes REDEFINITION

      When the identifier has already been defined. Re-using the same ident is not allowed.

  • Method Details

    • values

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