Package ca.uhn.hl7v2.parser
Enum Class UnexpectedSegmentBehaviourEnum
- All Implemented Interfaces:
Serializable,Comparable<UnexpectedSegmentBehaviourEnum>,Constable
Defines the behaviour to use when an unexpected
segment is discovered while parsing a message.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdd the segment as anonstandard segmentat the current location, even if the current location is in a child group within the message.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 anonstandard segment.Throw anHL7Exception -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static UnexpectedSegmentBehaviourEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD_INLINE
Add the segment as a
nonstandard segmentat the current location, even if the current location is in a child group within the message.This is the default.
-
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 anonstandard segment. -
THROW_HL7_EXCEPTION
Throw anHL7Exception
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-