public enum Severity extends Enum<Severity>
Enum Constant and Description |
---|
ERROR
An error.
|
WARNING
A warning.
|
Modifier and Type | Method and Description |
---|---|
String |
getOpcode30() |
static String |
getOpcode30(Severity severity)
null -safe version of getOpcode30() . |
static Severity |
valueOf(String name)
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.
|
public static final Severity ERROR
public static final Severity WARNING
public static Severity[] values()
for (Severity c : Severity.values()) System.out.println(c);
public static Severity valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getOpcode30()
public static String getOpcode30(Severity severity)
null
-safe version of getOpcode30()
.severity
- the type for which to get the opcode. Can be null
.null
if type was null
.Copyright © 2018 Open eHealth Foundation. All rights reserved.