public enum AvailabilityStatus extends Enum<AvailabilityStatus>
Enum Constant and Description |
---|
APPROVED
The entry is approved.
|
DEPRECATED
The entry is deprecated.
|
SUBMITTED
The entry is submitted.
|
Modifier and Type | Method and Description |
---|---|
String |
getOpcode() |
String |
getQueryOpcode() |
static 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 |
valueOf(String name)
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.
|
public static final AvailabilityStatus APPROVED
public static final AvailabilityStatus DEPRECATED
public static final AvailabilityStatus SUBMITTED
public static AvailabilityStatus[] values()
for (AvailabilityStatus c : AvailabilityStatus.values()) System.out.println(c);
public static AvailabilityStatus 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 getOpcode()
public String getQueryOpcode()
public static AvailabilityStatus valueOfOpcode(String opcode)
opcode
- the opcode to look up. Can be null
.null
if the opcode was null
or could not be found.
public static String toOpcode(AvailabilityStatus status)
This is a null
-safe version of getOpcode()
.
status
- the status. Can be null
.null
if the status was null
.public static String toQueryOpcode(AvailabilityStatus status)
This is a null
-safe version of getQueryOpcode()
.
status
- the status. Can be null
.null
if the status was null
.Copyright © 2018 Open eHealth Foundation. All rights reserved.