| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| UnexpectedSegmentBehaviourEnum |
|
| 0.0;0 |
| 1 | package ca.uhn.hl7v2.parser; | |
| 2 | ||
| 3 | /** | |
| 4 | * Defines the behaviour to use when an unexpected | |
| 5 | * segment is discovered while parsing a message. | |
| 6 | * | |
| 7 | * @see ParserConfiguration#setUnexpectedSegmentBehaviour(UnexpectedSegmentBehaviourEnum) | |
| 8 | */ | |
| 9 | 25 | public enum UnexpectedSegmentBehaviourEnum { |
| 10 | ||
| 11 | /** | |
| 12 | * <p> | |
| 13 | * Add the segment as a | |
| 14 | * {@link ca.uhn.hl7v2.model.Message#addNonstandardSegment(String) nonstandard segment} | |
| 15 | * at the current location, even if the current location is in a | |
| 16 | * child group within the message. | |
| 17 | * </p> | |
| 18 | * <p> | |
| 19 | * This is the default. | |
| 20 | * </p> | |
| 21 | */ | |
| 22 | 5 | ADD_INLINE, |
| 23 | ||
| 24 | /** | |
| 25 | * Return the parser back to the root of the message (even if the last | |
| 26 | * segment was in a group) and add the unexpected segment as a | |
| 27 | * {@link ca.uhn.hl7v2.model.Message#addNonstandardSegment(String) nonstandard segment}. | |
| 28 | */ | |
| 29 | 5 | DROP_TO_ROOT, |
| 30 | ||
| 31 | /** | |
| 32 | * Throw an {@link ca.uhn.hl7v2.HL7Exception} | |
| 33 | */ | |
| 34 | 5 | THROW_HL7_EXCEPTION |
| 35 | } |