public enum AssociationType extends Enum<AssociationType>
Enum Constant and Description |
---|
APPEND
An entry that is appended to another one.
|
HAS_MEMBER
An entry that is a member of another one.
|
IS_SNAPSHOT_OF
An entry that represents a link to the On-Demand DocumentEntry.
|
REPLACE
An entry that replaced another one.
|
SIGNS
An entry that represents a signature of another one.
|
SUBMIT_ASSOCIATION
An entry that represents an association for submit association trigger.
|
TRANSFORM
An entry that transforms another one.
|
TRANSFORM_AND_REPLACE
An entry that transforms and replaces another one.
|
UPDATE_AVAILABILITY_STATUS
An entry that represents an association for update availability status trigger.
|
Modifier and Type | Method and Description |
---|---|
String |
getOpcode21() |
static String |
getOpcode21(AssociationType type)
null -safe version of getOpcode21() . |
String |
getOpcode30() |
static String |
getOpcode30(AssociationType type)
null -safe version of getOpcode30() . |
boolean |
isReplace() |
static AssociationType |
valueOf(String name)
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.
|
public static final AssociationType APPEND
public static final AssociationType REPLACE
public static final AssociationType TRANSFORM
public static final AssociationType TRANSFORM_AND_REPLACE
public static final AssociationType HAS_MEMBER
public static final AssociationType SIGNS
public static final AssociationType IS_SNAPSHOT_OF
public static final AssociationType UPDATE_AVAILABILITY_STATUS
public static final AssociationType SUBMIT_ASSOCIATION
public static AssociationType[] values()
for (AssociationType c : AssociationType.values()) System.out.println(c);
public static AssociationType 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 getOpcode21()
public String getOpcode30()
public static String getOpcode21(AssociationType type)
null
-safe version of getOpcode21()
.type
- the type for which to get the opcode. Can be null
.null
if type was null
.public static String getOpcode30(AssociationType type)
null
-safe version of getOpcode30()
.type
- the type for which to get the opcode. Can be null
.null
if type was null
.public static AssociationType valueOfOpcode21(String opcode)
This method looks up the opcode via the ebXML 2.1 representations.
opcode
- the string representation. Can be null
.null
if the opcode was null
.public static AssociationType valueOfOpcode30(String opcode)
This method looks up the opcode via the ebXML 3.0 representations.
opcode
- the string representation. Can be null
.null
if the opcode was null
.public boolean isReplace()
true
if the association contains a replacement.Copyright © 2018 Open eHealth Foundation. All rights reserved.