Enum AssociationType
- All Implemented Interfaces:
Serializable
,Comparable<AssociationType>
,java.lang.constant.Constable
Lists all possible types of associations between two documents.
- Author:
- Jens Riemschneider
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAn entry that is appended to another one.An entry that is a member of another one.An entry that represents a link to the On-Demand DocumentEntry.An entry that represents an association which is used as a flag to avoid the versioning of an updated document.An entry that replaced another one.An entry that represents a signature of another one.An entry that represents an association for submit association trigger.An entry that transforms another one.An entry that transforms and replaces another one.An entry that represents an association for update availability status trigger. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getOpcode21
(AssociationType type) null
-safe version ofgetOpcode21()
.static String
getOpcode30
(AssociationType type) null
-safe version ofgetOpcode30()
.boolean
static AssociationType
Returns the enum constant of this type with the specified name.static AssociationType
valueOfOpcode21
(String opcode) Returns the association type that is represented by the given opcode.static AssociationType
valueOfOpcode30
(String opcode) Returns the association type that is represented by the given opcode.static AssociationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
APPEND
An entry that is appended to another one. -
REPLACE
An entry that replaced another one. -
TRANSFORM
An entry that transforms another one. -
TRANSFORM_AND_REPLACE
An entry that transforms and replaces another one. -
HAS_MEMBER
An entry that is a member of another one. -
SIGNS
An entry that represents a signature of another one. -
IS_SNAPSHOT_OF
An entry that represents a link to the On-Demand DocumentEntry. -
UPDATE_AVAILABILITY_STATUS
An entry that represents an association for update availability status trigger. -
SUBMIT_ASSOCIATION
An entry that represents an association for submit association trigger. -
NON_VERSIONING_UPDATE
An entry that represents an association which is used as a flag to avoid the versioning of an updated document.
-
-
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
-
getOpcode21
- Returns:
- a string representation in ebXML 2.1.
-
getOpcode30
- Returns:
- a string representation in ebXML 3.0.
-
getOpcode21
null
-safe version ofgetOpcode21()
.- Parameters:
type
- the type for which to get the opcode. Can benull
.- Returns:
- the opcode or
null
if type wasnull
.
-
getOpcode30
null
-safe version ofgetOpcode30()
.- Parameters:
type
- the type for which to get the opcode. Can benull
.- Returns:
- the opcode or
null
if type wasnull
.
-
valueOfOpcode21
Returns the association type that is represented by the given opcode.This method looks up the opcode via the ebXML 2.1 representations.
- Parameters:
opcode
- the string representation. Can benull
.- Returns:
- the association type or
null
if the opcode wasnull
.
-
valueOfOpcode30
Returns the association type that is represented by the given opcode.This method looks up the opcode via the ebXML 3.0 representations.
- Parameters:
opcode
- the string representation. Can benull
.- Returns:
- the association type or
null
if the opcode wasnull
.
-
isReplace
public boolean isReplace()- Returns:
true
if the association contains a replacement.
-