|
GXPARSE hosted by |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectca.gorman.xml.parse.toolkit.Coroutine_NoCallback<T>
ca.gorman.xml.parse.toolkit.Coroutine_Callback<T>
ca.gorman.xml.parse.toolkit.CoroutineElementStack<T>
public final class CoroutineElementStack<T extends Parser>
Element stack
implemented for coroutine parser.
| Constructor Summary | |
|---|---|
|
CoroutineElementStack()
Construct instance that cannot be used until initialized by setCoroutine,
setListener and
setParser. |
protected |
CoroutineElementStack(Coroutine coroutine)
Construct instance that cannot be used until initialized by setListener and
setParser. |
protected |
CoroutineElementStack(Coroutine coroutine,
ElementListener<T> elementListener)
Construct instance that cannot be used until initialized by setParser. |
| 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. |
ElementListener<T> |
getListener()
G the listener. |
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. |
void |
setListener(ElementListener<T> elementListener)
Set or reset the listener. |
| Methods inherited from class ca.gorman.xml.parse.toolkit.Coroutine_Callback |
|---|
getCoroutine, setCoroutine |
| Methods inherited from class ca.gorman.xml.parse.toolkit.Coroutine_NoCallback |
|---|
getParser, setParser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CoroutineElementStack()
Construct instance that cannot be used until initialized by
setCoroutine,
setListener and
setParser.
protected CoroutineElementStack(Coroutine coroutine)
Construct instance that cannot be used until initialized by
setListener and
setParser.
NullPointerException - if coroutine is null
protected CoroutineElementStack(Coroutine coroutine,
ElementListener<T> elementListener)
Construct instance that cannot be used until initialized by
setParser.
NullPointerException - if coroutine or elementListener is null| Method Detail |
|---|
public void setListener(ElementListener<T> elementListener)
Set or reset the listener.
NullPointerException - if elementListener is nullpublic ElementListener<T> getListener()
G the listener.
public void push(CoroutineElement<T> coroutineElement)
ElementStack
Push a CoroutineElement on the element stack,
where it will become the current element.
push in interface ElementStack<T extends Parser>coroutineElement - the CoroutineElement to be pushed..public Element pop()
ElementStack
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.
pop in interface ElementStack<T extends Parser>public Element getCurrentElement()
ElementStack
Get the CurrentElement at the top of the stack
without removing it from the stack.
getCurrentElement in interface ElementStack<T extends Parser>public Element[] getElementStack()
ElementStackGet a list of elements currently on the stack.
getElementStack in interface ElementStack<T extends Parser>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.public boolean isParsing(QName qName)
ElementStackIndicate whether the named element is currently being parsed.
isParsing in interface ElementStack<T extends Parser>qName - name of the desired element.
public boolean isEmpty()
ElementStackIndicate whether element stack is empty.
isEmpty in interface ElementStack<T extends Parser>
|
GXPARSE download | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||