|
GXPARSE hosted by |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ElementStack<T extends Parser>
Stack of the elements that are currently being processed. Elements can be nested in entities or other elements. The element at the top of stack is the only active element. Lower entities become active again when all of the entities above them have been popped. Re-activating an element causes processing to continue from the point where processing was previous suspended to allow processing of another element or an element.
Method Summary | |
---|---|
Element |
getCurrentElement()
Get the CurrentElement at the top of the stack
without removing it from the stack. |
Element[] |
getElementStack()
Get a list of elements currently on the stack. |
boolean |
isEmpty()
Indicate whether element stack is empty. |
boolean |
isParsing(QName qName)
Indicate whether the named element is currently being parsed. |
Element |
pop()
Remove the current element from the top of the
stack. |
void |
push(CoroutineElement<T> coroutineElement)
Push a CoroutineElement on the element stack,
where it will become the current element . |
Method Detail |
---|
void push(CoroutineElement<T> coroutineElement)
Push a CoroutineElement
on the element stack,
where it will become the current element
.
coroutineElement
- the CoroutineElement
to be pushed..
NullPointerException
- if coroutineElement
is nullElement pop()
Remove the current element
from the top of the
stack. The element is no longer valid as an instance of
CurrentElement
. The element is normally popped
when it goes out of scope in the document, in which case it will not
be valid even as an instance of the superclass Element
.
EmptyStackException
- if the element stack is emptyboolean isEmpty()
Indicate whether element stack is empty.
Element getCurrentElement()
Get the CurrentElement
at the top of the stack
without removing it from the stack.
Element[] getElementStack()
Get a list of elements currently on the stack.
Element
instances that are on the
element stack, the first element is the document element,
the last element is the current element. The array will be of
zero length if no elements are currently being parsed.boolean isParsing(QName qName)
Indicate whether the named element is currently being parsed.
qName
- name of the desired element.
|
GXPARSE download | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |