Enum Class Severity
- All Implemented Interfaces:
- Serializable,- Comparable<Severity>,- Constable,- ToNode
Severity level of a validation exception.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionbooleanCheck if the severity level of the error can be suppressed.static SeverityCreates a severity value from a node.fromString(String text) Create a new Severity from a string.toNode()Converts a value to aNode.static SeverityReturns the enum constant of this class with the specified name.static Severity[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
SUPPRESSED
- 
NOTE
- 
WARNING
- 
DANGER
- 
ERROR
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
canSuppresspublic boolean canSuppress()Check if the severity level of the error can be suppressed.- Returns:
- Returns true if a suppression can silence errors at this severity level.
 
- 
fromStringCreate a new Severity from a string.- Parameters:
- text- Text to convert into a severity level.
- Returns:
- Returns the format in an Optional.
 
- 
fromNodeCreates a severity value from a node.- Parameters:
- node- Node to parse.
- Returns:
- Returns the parsed Severity.
- Throws:
- ExpectationNotMetException- if the node is invalid.
 
- 
toNodeDescription copied from interface:ToNodeConverts a value to aNode.
 
-