|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iscreen.impl.xml.PositionContext
public class PositionContext
Instances of this class track the position within a "stack" (such as an XML hierarchy) and is used for error messages, giving the user as much information about where the error occurred as possible.
| Field Summary | |
|---|---|
protected java.lang.String |
fileLocation
|
protected java.util.List |
nodes
|
| Constructor Summary | |
|---|---|
PositionContext(java.lang.String theFileLocation)
Constructor taking the location of the root "file" location. |
|
| Method Summary | |
|---|---|
java.lang.String |
getFileLocation()
Retrieves the root file location. |
java.lang.String |
getLocation()
Builds and returns the context path or full location of the "position" this instance represents. |
java.lang.String |
popNode()
Removes the top-most node from the context (and all associated attributes of that node). |
void |
pushAttr(java.lang.String attr,
java.lang.String value)
Pushes an attribute and its value onto the current node (the one at the top of the stack). |
void |
pushNode(java.lang.String node)
Pushes a node onto the top of the context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String fileLocation
protected java.util.List nodes
| Constructor Detail |
|---|
public PositionContext(java.lang.String theFileLocation)
theFileLocation - The root "file" location.| Method Detail |
|---|
public void pushNode(java.lang.String node)
node - The name of the node.
public void pushAttr(java.lang.String attr,
java.lang.String value)
attr - The name of the attribute.value - The value of the attribute.public java.lang.String popNode()
public java.lang.String getFileLocation()
public java.lang.String getLocation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||