public static class FastParser.StructRef extends Object
| Constructor and Description |
|---|
FastParser.StructRef(FastParser.StructRef theParent,
String theRelativePath,
boolean isSegment,
int[] theFields) |
| Modifier and Type | Method and Description |
|---|---|
String |
getChildName() |
int[] |
getFields() |
String |
getFullPath() |
String |
getRelativePath() |
FastParser.StructRef |
getSuccessor(String theName) |
boolean |
isSegment() |
void |
reset()
Resets the StructRef to its starting state, before its first iteration, and resets
its children as well.
|
void |
setSuccessor(String theName,
FastParser.StructRef theSuccessor)
Indicates an immediately subsequent structure in parsing order.
|
public FastParser.StructRef(FastParser.StructRef theParent, String theRelativePath, boolean isSegment, int[] theFields)
theParent - a StructRef for the parent Group of the referenced StructuretheRelativePath - the relative (from the parent) Terser path to the referenced
structure. If the structure repeats, the rep number should be replaced with "*"
(it will be incremented as needed).isSegment - true iff the referenced Structure is a Segment (rather than a Group)theFields - a list of fields to be parsed for this segment (null or empty for groups)public void setSuccessor(String theName, FastParser.StructRef theSuccessor)
theName - name of the next Segment in this direction (ie if the next structure is a group,
not that one)theSuccessor - the immediately next StructRef in that directionpublic String getFullPath()
public String getRelativePath()
public FastParser.StructRef getSuccessor(String theName)
theName - name of a successor in parse order, as set in setSuccessor()public String getChildName()
public boolean isSegment()
public void reset()
public int[] getFields()
Copyright © 2001-2012 University Health Network. All Rights Reserved.