protected class XMLDocumentFragmentScannerImpl.ElementStack
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
fCount |
protected int |
fDepth |
protected org.apache.xerces.xni.QName[] |
fElements
The stack data.
|
protected int[] |
fInt |
protected int |
fLastDepth |
protected int |
fMark |
protected int |
fPosition |
Constructor and Description |
---|
ElementStack()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the stack without throwing away existing QName objects.
|
org.apache.xerces.xni.QName |
getLastPoppedElement()
This function is as a result of optimization done for endElement --
we dont need to set the value for every end element encouterd.
|
org.apache.xerces.xni.QName |
getNext()
Note that this function is considerably different than nextElement()
This function just returns the previously stored elements
|
boolean |
matchElement(org.apache.xerces.xni.QName element)
Check if the element scanned during the start element
matches the stored element.
|
org.apache.xerces.xni.QName |
nextElement()
Returns the next element on the stack.
|
org.apache.xerces.xni.QName |
popElement()
Pops an element off of the stack by setting the values of
the specified QName.
|
void |
push()
This function should be called only when element was skipped sucessfully.
|
org.apache.xerces.xni.QName |
pushElement(org.apache.xerces.xni.QName element)
Pushes an element on the stack.
|
void |
reposition()
Reposition the stack.
|
protected org.apache.xerces.xni.QName[] fElements
protected int[] fInt
protected int fDepth
protected int fCount
protected int fPosition
protected int fMark
protected int fLastDepth
public org.apache.xerces.xni.QName pushElement(org.apache.xerces.xni.QName element)
Note: The QName values are copied into the stack. In other words, the caller does not orphan the element to the stack. Also, the QName object returned is not orphaned to the caller. It should be considered read-only.
element
- The element to push onto the stack.public org.apache.xerces.xni.QName getNext()
public void push()
public boolean matchElement(org.apache.xerces.xni.QName element)
public org.apache.xerces.xni.QName nextElement()
public org.apache.xerces.xni.QName popElement()
Note: The object returned is not orphaned to the caller. Therefore, the caller should consider the object to be read-only.
public void reposition()
public void clear()
public org.apache.xerces.xni.QName getLastPoppedElement()
Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.