Enum AvailabilityStatus
java.lang.Object
java.lang.Enum<AvailabilityStatus>
org.openehealth.ipf.commons.ihe.xds.core.metadata.AvailabilityStatus
- All Implemented Interfaces:
Serializable
,Comparable<AvailabilityStatus>
,java.lang.constant.Constable
Describes the availability of an entry.
- 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 entry is approved.The entry is deprecated.The entry is submitted. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
toOpcode
(AvailabilityStatus status) Retrieves the representation of a given status.static String
toQueryOpcode
(AvailabilityStatus status) Retrieves the query representation of a given status.static AvailabilityStatus
Returns the enum constant of this type with the specified name.static AvailabilityStatus
valueOfOpcode
(String opcode) Returns the availability status represented by the given opcode.static AvailabilityStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
APPROVED
The entry is approved. -
DEPRECATED
The entry is deprecated. -
SUBMITTED
The entry is submitted.
-
-
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
-
getOpcode
- Returns:
- the opcode used as a string representation in non-query transformations.
-
getQueryOpcode
- Returns:
- the opcode used as a string representation in transformations for query requests and responses.
-
valueOfOpcode
Returns the availability status represented by the given opcode. This method takes standard opcodes and query opcodes into account.- Parameters:
opcode
- the opcode to look up. Can benull
.- Returns:
- the status.
null
if the opcode wasnull
or could not be found.
See ITI TF v.8.0 Vol. 2a Section 3.18.4.1.2.3.6.
-
toOpcode
Retrieves the representation of a given status.This is a
null
-safe version ofgetOpcode()
.- Parameters:
status
- the status. Can benull
.- Returns:
- the representation or
null
if the status wasnull
.
-
toQueryOpcode
Retrieves the query representation of a given status.This is a
null
-safe version ofgetQueryOpcode()
.- Parameters:
status
- the status. Can benull
.- Returns:
- the representation or
null
if the status wasnull
.
-