|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
unsw.cse.mica.util.StackableHandler
public abstract class StackableHandler
A class providing support for XML handlers to be added and removed from a stack. This enables a handler to delegate parsing by placing a new handler above it on the stack, which allows re-using of handler components.
Constructor Summary | |
---|---|
StackableHandler()
|
Method Summary | |
---|---|
void |
onPopped(StackableHandler handler,
java.lang.Object obj)
Notify this handler that the handler above this one on the stack has popped itself off the stack. |
void |
pop()
Tell this handler to pop itself of the stack This method just calls pop(null) |
void |
pop(java.lang.Object msg)
Pop this handler off the stack, passing the object msg to the next handler down. |
void |
push(StackableHandler handler)
Push a child handler onto the stack associated with this handler |
void |
setStackHandler(StackHandler stack)
Set the stack for this handler |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StackableHandler()
Method Detail |
---|
public void setStackHandler(StackHandler stack)
stack
- public void push(StackableHandler handler)
handler
- public void pop() throws org.xml.sax.SAXException
pop(null)
- Throws:
org.xml.sax.SAXException
public void pop(java.lang.Object msg) throws org.xml.sax.SAXException
msg
- the message to be passed from this handler to the one below.
org.xml.sax.SAXException
public void onPopped(StackableHandler handler, java.lang.Object obj) throws org.xml.sax.SAXException
handler
-
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |