public class SegmentPointer extends Pointer
FILL_FAILED_FULL, FILL_FAILED_OUT_OF_ORDER, FILL_FAILED_WRONG_SEGMENT, FILL_OK, position| Constructor and Description |
|---|
SegmentPointer(PipeParser parser,
Group parent,
int position,
EncodingCharacters encodingChars)
Deprecated.
Creates new SegmentPointer
|
| Modifier and Type | Method and Description |
|---|---|
int |
setSegment(String segment,
boolean correctOrder)
Deprecated.
Parses the given String, which must contain a single traditionally encoded
message segment, into the current repetition of the message Structure
underlying this Pointer.
|
public SegmentPointer(PipeParser parser, Group parent, int position, EncodingCharacters encodingChars) throws HL7Exception
parser - the PipeParser used to parse segmentsparent - the Group object that would be the parent of any instances of the
Segment underlying this SegmentPointerposition - the position (among siblings; from 0) of the underlying SegmentencodingChars - array of encoding characters, starting w/ field delimHL7Exceptionpublic int setSegment(String segment, boolean correctOrder) throws HL7Exception
setSegment in class Pointersegment - the segment to parsecorrectOrder - false if this segment should not actually be parsed because the
current location precedes the location of a segment that has already been
parsed. In this case, the return value should be either FILL_FAILED_FULL,
FILL_FAILED_WRONG_SEGMENT, or FILL_FAILED_OUT_OF_ORDER, but the segment should not
be parsed.HL7Exception - if there is an error during parsingCopyright © 2001-2013 University Health Network. All Rights Reserved.