protected static class XMLDocumentFragmentScannerImpl.ElementStack
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.xerces.xni.QName[] |
fElements
The stack data.
|
protected int |
fSize
The size of the stack.
|
Constructor and Description |
---|
XMLDocumentFragmentScannerImpl.ElementStack()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the stack without throwing away existing QName objects.
|
void |
popElement(org.apache.xerces.xni.QName element)
Pops an element off of the stack by setting the values of
the specified QName.
|
org.apache.xerces.xni.QName |
pushElement(org.apache.xerces.xni.QName element)
Pushes an element on the stack.
|
protected org.apache.xerces.xni.QName[] fElements
protected int fSize
public XMLDocumentFragmentScannerImpl.ElementStack()
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 void popElement(org.apache.xerces.xni.QName element)
Note: The object returned is not orphaned to the caller. Therefore, the caller should consider the object to be read-only.
public void clear()
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.