public enum UnexpectedSegmentBehaviourEnum extends Enum<UnexpectedSegmentBehaviourEnum>
| Enum Constant and Description |
|---|
ADD_INLINE
Add the segment as a
nonstandard segment
at the current location, even if the current location is in a
child group within the message. |
DROP_TO_ROOT
Return the parser back to the root of the message (even if the last
segment was in a group) and add the unexpected segment as a
nonstandard segment. |
THROW_HL7_EXCEPTION
Throw an
HL7Exception |
| Modifier and Type | Method and Description |
|---|---|
static UnexpectedSegmentBehaviourEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnexpectedSegmentBehaviourEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnexpectedSegmentBehaviourEnum ADD_INLINE
Add the segment as a
nonstandard segment
at the current location, even if the current location is in a
child group within the message.
This is the default.
public static final UnexpectedSegmentBehaviourEnum DROP_TO_ROOT
nonstandard segment.public static final UnexpectedSegmentBehaviourEnum THROW_HL7_EXCEPTION
HL7Exceptionpublic static UnexpectedSegmentBehaviourEnum[] values()
for (UnexpectedSegmentBehaviourEnum c : UnexpectedSegmentBehaviourEnum.values()) System.out.println(c);
public static UnexpectedSegmentBehaviourEnum 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 nullCopyright © 2001–2017 University Health Network. All rights reserved.