public abstract class Pointer extends Object
A Pointer is a placeholder used in parsing traditionally encoded messages
(which do not explicitly identify segment groups). Implementations of Pointer
include SegmentPointer, which "points" to a Segment slot. This pointer can
exist whether or not the underlying Segment object has been created. There is
only one pointer per slot - multiple repetitions are accessed through the
same pointer. prepNewInstance is used to create a new rep.
setSegment(String segment) is responsible for parsing the given
segment string into the current rep of the underlying Segment. Similarly
there is a subclass called GroupPointer that points to a Group slot.
GroupPointer's setSegment(...) method just forwards the request to
it's children (which are GroupPointers and SegmentPointers).
| Modifier and Type | Field and Description |
|---|---|
protected EncodingCharacters |
encodingChars
Deprecated.
|
static int |
FILL_FAILED_FULL
Deprecated.
|
static int |
FILL_FAILED_OUT_OF_ORDER
Deprecated.
|
static int |
FILL_FAILED_WRONG_SEGMENT
Deprecated.
|
static int |
FILL_OK
Deprecated.
|
protected Group |
parent
Deprecated.
|
protected int |
position
Deprecated.
|
protected boolean |
repeating
Deprecated.
|
| Constructor and Description |
|---|
Pointer()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
abstract 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 static final int FILL_FAILED_WRONG_SEGMENT
public static final int FILL_FAILED_FULL
public static final int FILL_OK
public static final int FILL_FAILED_OUT_OF_ORDER
protected int position
protected boolean repeating
protected EncodingCharacters encodingChars
public Pointer()
public abstract int setSegment(String segment, boolean correctOrder) throws HL7Exception
segment - 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.HL7ExceptionCopyright © 2001-2012 University Health Network. All Rights Reserved.