public enum Status extends Enum<Status>
Enum Constant and Description |
---|
FAILURE
The request execution failed.
|
PARTIAL_SUCCESS
The request execution partially succeeded.
|
SUCCESS
The request execution succeeded.
|
Modifier and Type | Method and Description |
---|---|
String |
getOpcode21() |
static String |
getOpcode21(Status status)
null -safe version of getOpcode21() . |
String |
getOpcode30() |
static String |
getOpcode30(Status status)
null -safe version of getOpcode30() . |
static Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Status |
valueOfOpcode(String opcode)
Returns the status that is represented by the given opcode.
|
static Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Status FAILURE
public static final Status SUCCESS
public static final Status PARTIAL_SUCCESS
public static Status[] values()
for (Status c : Status.values()) System.out.println(c);
public static Status 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 getOpcode21()
public String getOpcode30()
public static String getOpcode21(Status status)
null
-safe version of getOpcode21()
.status
- the type for which to get the opcode. Can be null
.null
if type was null
.public static String getOpcode30(Status status)
null
-safe version of getOpcode30()
.status
- the type for which to get the opcode. Can be null
.null
if type was null
.public static Status valueOfOpcode(String opcode)
This method looks up the opcode via the ebXML 2.1 and 3.0 representations.
opcode
- the string representation. Can be null
.null
if the opcode was null
.Copyright © 2018 Open eHealth Foundation. All rights reserved.