Enum AssociationLabel
- All Implemented Interfaces:
Serializable
,Comparable<AssociationLabel>
,java.lang.constant.Constable
Association labeling values used for the associations of submission sets.
- Author:
- Jens Riemschneider
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AssociationLabel
fromOpcode
(String opcode) Returns the association label that is represented by the given opcode.static String
toOpcode
(AssociationLabel label) Null-safe version ofgetOpcode()
.static AssociationLabel
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 Details
-
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.
-
-
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 representing the association in ebXML.
-
toOpcode
Null-safe version ofgetOpcode()
.- Parameters:
label
- the label. Cane benull
.- Returns:
- the opcode of the label.
null
if the input wasnull
.
-
fromOpcode
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
.
-