public enum DocumentAvailability extends Enum<DocumentAvailability>
Enum Constant and Description |
---|
OFFLINE
Online indicates the Document in the Document Repository is available to be retrieved.
|
ONLINE
Offline indicates the Document in the Document Repository is not available to be retrieved.
|
Modifier and Type | Method and Description |
---|---|
String |
getFullQualified() |
String |
getOpcode() |
static String |
toFullQualifiedOpcode(DocumentAvailability status)
Retrieves the fully qualified representation of a document availability.
|
static String |
toOpcode(DocumentAvailability documentAvailability)
Retrieves the representation of a given document availability.
|
static DocumentAvailability |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DocumentAvailability |
valueOfOpcode(String opcode)
Returns the document availability represented by the given opcode.
|
static DocumentAvailability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DocumentAvailability OFFLINE
public static final DocumentAvailability ONLINE
public static DocumentAvailability[] values()
for (DocumentAvailability c : DocumentAvailability.values()) System.out.println(c);
public static DocumentAvailability 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 getFullQualified()
public static DocumentAvailability 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(DocumentAvailability documentAvailability)
This is a null
-safe version of getOpcode()
.
documentAvailability
- the documentAvailability. Can be null
.null
if the status was null
.public static String toFullQualifiedOpcode(DocumentAvailability status)
This is a null
-safe version of getFullQualified()
.
status
- the status. Can be null
.null
if the status was null
.Copyright © 2018 Open eHealth Foundation. All rights reserved.