Package gov.nasa.pds.tools.validate
Enum ProblemCategory
- java.lang.Object
-
- java.lang.Enum<ProblemCategory>
-
- gov.nasa.pds.tools.validate.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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getKey()
Gets the key for mapping the problem type to a UI string.static ProblemCategory
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProblemCategory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException
- 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
-
-