|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<E>
java.util.Stack
org.jscience.architecture.traffic.xml.XMLStack
public class XMLStack
This class is used by the XMLLoader and the XMLSaver to remember where the parser is saving/loading in the XML tree. XMLStack is an extension of the normal java.util.Stack.
| Field Summary |
|---|
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
XMLStack()
Make a new XMLStack |
|
| Method Summary | |
|---|---|
void |
assertIsCurrentParent(java.lang.String s)
Make sure that the branch name equals a certain XML tag name |
void |
assertIsCurrentParent(XMLSerializable x)
Make sure that a certain XMLSerializable is at the top of the XML stack |
java.lang.String |
getBranchName()
DOCUMENT ME! |
boolean |
isARootParent(java.lang.String s)
Check if the branch name begins with a certain XML name |
boolean |
isARootParent(XMLSerializable x)
Check if a certain branch name is at the root of the stack |
boolean |
isCurrentParent(java.lang.String s)
Check if the branch name equals a certain XML tag name |
boolean |
isCurrentParent(XMLSerializable x)
Check if a certain branch name is currenly at control in the stack |
java.lang.Object |
pop()
Standard stack pop method |
java.lang.Object |
push(java.lang.Object x)
Standard stack push method |
protected void |
updateBranchName()
Internal method to update the branch name if the stack has changed |
| Methods inherited from class java.util.Stack |
|---|
empty, peek, search |
| Methods inherited from class java.util.Vector |
|---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
iterator, listIterator, listIterator |
| Constructor Detail |
|---|
public XMLStack()
| Method Detail |
|---|
public java.lang.Object push(java.lang.Object x)
push in class java.util.Stackx - DOCUMENT ME!
public java.lang.Object pop()
pop in class java.util.Stackpublic java.lang.String getBranchName()
public void assertIsCurrentParent(XMLSerializable x)
throws XMLTreeException
x - The XMLSerializable
XMLTreeException - If the XMLSerializable is not at the top of the
stack
public void assertIsCurrentParent(java.lang.String s)
throws XMLTreeException
s - The full XML tag name
XMLTreeException - If the XMLSerializable is not at the top of the
stackpublic boolean isCurrentParent(java.lang.String s)
s - The full XML name
public boolean isCurrentParent(XMLSerializable x)
x - The XMLSerializable
public boolean isARootParent(java.lang.String s)
s - The full XML name
public boolean isARootParent(XMLSerializable x)
x - The XMLSerializable
protected void updateBranchName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||