Enum AssociationLabel
- java.lang.Object
-
- java.lang.Enum<AssociationLabel>
-
- org.openehealth.ipf.commons.ihe.xds.core.metadata.AssociationLabel
-
- All Implemented Interfaces:
Serializable
,Comparable<AssociationLabel>
public enum AssociationLabel extends Enum<AssociationLabel>
Association labeling values used for the associations of submission sets.- Author:
- Jens Riemschneider
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 ofgetOpcode()
.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.
-
-
-
Enum Constant Detail
-
ORIGINAL
public static final AssociationLabel ORIGINAL
Label for associations to documents that are contained in the request.
-
REFERENCE
public static final AssociationLabel REFERENCE
Label for associations to documents that are only referenced in the request.
-
-
Method Detail
-
values
public static AssociationLabel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AssociationLabel c : AssociationLabel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AssociationLabel valueOf(String name)
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
public String getOpcode()
- Returns:
- the opcode representing the association in ebXML.
-
toOpcode
public static String toOpcode(AssociationLabel label)
Null-safe version ofgetOpcode()
.- Parameters:
label
- the label. Cane benull
.- Returns:
- the opcode of the label.
null
if the input wasnull
.
-
fromOpcode
public static AssociationLabel fromOpcode(String opcode)
Returns the association label that is represented by the given opcode.- Parameters:
opcode
- the opcode to look for. Can benull
.- Returns:
- the label.
null
if the input wasnull
.
-
-