Enum ProblemCategory

  • All Implemented Interfaces:
    Serializable, Comparable<ProblemCategory>

    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 Detail

      • 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 Detail

      • values

        public static ProblemCategory[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ProblemCategory c : ProblemCategory.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ProblemCategory valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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