protected class XMLStreamWriterImpl.ElementStack
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected short |
fDepth
The size of the stack.
|
protected com.sun.xml.stream.writers.XMLStreamWriterImpl.ElementState[] |
fElements
The stack data.
|
Constructor and Description |
---|
ElementStack()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the stack without throwing away existing QName objects.
|
boolean |
empty() |
com.sun.xml.stream.writers.XMLStreamWriterImpl.ElementState |
peek()
This function is as a result of optimization done for endElement --
we dont need to set the value for every end element we encouter.
|
com.sun.xml.stream.writers.XMLStreamWriterImpl.ElementState |
pop()
Pops an element off of the stack by setting the values of
the specified QName.
|
com.sun.xml.stream.writers.XMLStreamWriterImpl.ElementState |
push(java.lang.String prefix,
java.lang.String localpart,
java.lang.String rawname,
java.lang.String uri,
boolean isEmpty) |
com.sun.xml.stream.writers.XMLStreamWriterImpl.ElementState |
push(com.sun.xml.stream.writers.XMLStreamWriterImpl.ElementState element)
Pushes an element on the stack.
|
protected com.sun.xml.stream.writers.XMLStreamWriterImpl.ElementState[] fElements
protected short fDepth
public com.sun.xml.stream.writers.XMLStreamWriterImpl.ElementState push(com.sun.xml.stream.writers.XMLStreamWriterImpl.ElementState 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 com.sun.xml.stream.writers.XMLStreamWriterImpl.ElementState push(java.lang.String prefix, java.lang.String localpart, java.lang.String rawname, java.lang.String uri, boolean isEmpty)
prefix
- localpart
- rawname
- uri
- isEmpty
- public com.sun.xml.stream.writers.XMLStreamWriterImpl.ElementState pop()
Note: The object returned is not orphaned to the caller. Therefore, the caller should consider the object to be read-only.
public void clear()
public com.sun.xml.stream.writers.XMLStreamWriterImpl.ElementState peek()
public boolean empty()
Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.