public enum AssociationLabel extends Enum<AssociationLabel>
Enum Constant and Description |
---|
ORIGINAL
Label for associations to documents that are contained in the request.
|
REFERENCE
Label for associations to documents that are only referenced in the request.
|
Modifier and Type | Method and Description |
---|---|
static AssociationLabel |
fromOpcode(String opcode)
Returns the association label that is represented by the given opcode.
|
String |
getOpcode() |
static String |
toOpcode(AssociationLabel label)
Null-safe version of
getOpcode() . |
static AssociationLabel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AssociationLabel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AssociationLabel ORIGINAL
public static final AssociationLabel REFERENCE
public static AssociationLabel[] values()
for (AssociationLabel c : AssociationLabel.values()) System.out.println(c);
public static AssociationLabel 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 static String toOpcode(AssociationLabel label)
getOpcode()
.label
- the label. Cane be null
.null
if the input was null
.public static AssociationLabel fromOpcode(String opcode)
opcode
- the opcode to look for. Can be null
.null
if the input was null
.Copyright © 2018 Open eHealth Foundation. All rights reserved.