Enum Class ProblemCategory

java.lang.Object
java.lang.Enum<ProblemCategory>
gov.nasa.pds.tools.validate.ProblemCategory
All Implemented Interfaces:
Serializable, Comparable<ProblemCategory>, Constable

public enum ProblemCategory extends Enum<ProblemCategory>
Defines categories of problems. Beyond the ExceptionType (ERROR, WARNING, etc.) there is a need for an additional level of grouping errors and exceptions.
  • Enum Constant Details

    • PRODUCT

      public static final ProblemCategory PRODUCT
      Problems with individual product validation
    • INTEGRITY

      public static final ProblemCategory INTEGRITY
      Problems with referential integrity validation
    • GENERAL

      public static final ProblemCategory GENERAL
      General problems with overall validation of the known targets.
    • EXECUTION

      public static final ProblemCategory EXECUTION
      Problems with execution of the tool.
  • Method Details

    • values

      public static ProblemCategory[] 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 ProblemCategory 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
    • getKey

      public String getKey()
      Gets the key for mapping the problem type to a UI string.
      Returns:
      the key string