Enum Status
- java.lang.Object
-
- java.lang.Enum<Status>
-
- org.openehealth.ipf.commons.ihe.xds.core.responses.Status
-
- All Implemented Interfaces:
Serializable
,Comparable<Status>
public enum Status extends Enum<Status>
Status information according to the XDS specification.- Author:
- Jens Riemschneider
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILURE
The request execution failed.PARTIAL_SUCCESS
The request execution partially succeeded.SUCCESS
The request execution succeeded.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getOpcode21()
static String
getOpcode21(Status status)
null
-safe version ofgetOpcode21()
.String
getOpcode30()
static String
getOpcode30(Status status)
null
-safe version ofgetOpcode30()
.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.
-
-
-
Method Detail
-
values
public static Status[] 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 (Status c : Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Status 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
-
getOpcode21
public String getOpcode21()
- Returns:
- a string representation in ebXML 2.1.
-
getOpcode30
public String getOpcode30()
- Returns:
- a string representation in ebXML 3.1.
-
getOpcode21
public static String getOpcode21(Status status)
null
-safe version ofgetOpcode21()
.- Parameters:
status
- the type for which to get the opcode. Can benull
.- Returns:
- the opcode or
null
if type wasnull
.
-
getOpcode30
public static String getOpcode30(Status status)
null
-safe version ofgetOpcode30()
.- Parameters:
status
- the type for which to get the opcode. Can benull
.- Returns:
- the opcode or
null
if type wasnull
.
-
valueOfOpcode
public static Status valueOfOpcode(String opcode)
Returns the status that is represented by the given opcode.This method looks up the opcode via the ebXML 2.1 and 3.0 representations.
- Parameters:
opcode
- the string representation. Can benull
.- Returns:
- the status or
null
if the opcode wasnull
.
-
-