Enum Status
- All Implemented Interfaces:
Serializable
,Comparable<Status>
,java.lang.constant.Constable
Status information according to 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
Enum ConstantDescriptionThe request execution failed.The request execution partially succeeded.The request execution succeeded. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getOpcode21
(Status status) null
-safe version ofgetOpcode21()
.static String
getOpcode30
(Status status) null
-safe version ofgetOpcode30()
.static Status
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.
-
Enum Constant Details
-
FAILURE
The request execution failed. -
SUCCESS
The request execution succeeded. -
PARTIAL_SUCCESS
The request execution partially succeeded.
-
-
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
-
getOpcode21
- Returns:
- a string representation in ebXML 2.1.
-
getOpcode30
- Returns:
- a string representation in ebXML 3.1.
-
getOpcode21
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
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
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
.
-