Enum Severity
- All Implemented Interfaces:
Serializable
,Comparable<Severity>
,java.lang.constant.Constable
Severities defined by the XDS specification.
- Author:
- Jens Riemschneider
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getOpcode30
(Severity severity) null
-safe version ofgetOpcode30()
.static Severity
Returns the enum constant of this type with the specified name.static Severity
valueOfOpcode30
(String opcode30) Returns the severity that is represented by the given opcode.static Severity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ERROR
An error. -
WARNING
A warning.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getOpcode30
- Returns:
- a string representation in ebXML 3.1.
-
getOpcode30
null
-safe version ofgetOpcode30()
.- Parameters:
severity
- the type for which to get the opcode. Can benull
.- Returns:
- the opcode or
null
if type wasnull
.
-
valueOfOpcode30
Returns the severity that is represented by the given opcode.This method looks up the opcode via the ebXML 3.0 representation.
- Parameters:
opcode30
- the string representation. Can benull
.- Returns:
- the severity.
-