|
Hilbert II - Version 0.03.01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.qedeq.kernel.xml.parser.AbstractSimpleHandler
Simple handler that gets SAX parser events. These events were received by the
SaxDefaultHandler
and are delegated to the
current AbstractSimpleHandler
.
Constructor Summary | |
AbstractSimpleHandler(AbstractSimpleHandler handler)
Constructor, should be used for creating handlers within handlers. |
|
AbstractSimpleHandler(AbstractSimpleHandler handler,
String startTag)
Constructor, should be used for creating handlers within handlers. |
|
AbstractSimpleHandler(SaxDefaultHandler defaultHandler)
Constructor. |
|
AbstractSimpleHandler(SaxDefaultHandler defaultHandler,
String startTag)
Constructor. |
Method Summary | |
void |
changeHandler(AbstractSimpleHandler newHandler,
String elementName,
SimpleAttributes attributes)
Change current handler to new one. |
void |
characters(String elementName,
String value)
Called at end of element elementName . |
abstract void |
endElement(String elementName)
Called at end of element elementName . |
int |
getLevel()
Get current tag level. |
String |
getStartTag()
Get start tag for this handler. |
abstract void |
init()
Must be called before a handler should parse a new section. |
abstract void |
startElement(String elementName,
SimpleAttributes attributes)
Called at begin of element elementName . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractSimpleHandler(SaxDefaultHandler defaultHandler, String startTag)
defaultHandler
- Original SAX event handler.startTag
- Start tag for this handler.public AbstractSimpleHandler(SaxDefaultHandler defaultHandler)
defaultHandler
- Original SAX event handler.public AbstractSimpleHandler(AbstractSimpleHandler handler, String startTag)
handler
- Already existing simple handler.startTag
- Start tag for this handler.public AbstractSimpleHandler(AbstractSimpleHandler handler)
handler
- Already existing simple handler.Method Detail |
public abstract void init()
public abstract void startElement(String elementName, SimpleAttributes attributes) throws SyntaxException
elementName
. Must be overwritten.
elementName
- Tag name.attributes
- Tag attributes.
SyntaxException
- There is a semantic error in this event occurrence.public abstract void endElement(String elementName) throws SyntaxException
elementName
. Must be overwritten.
elementName
- Tag name.
SyntaxException
- There is a semantic error in this event occurrence.public void characters(String elementName, String value) throws SyntaxException
elementName
. Must be overwritten if you expect
character data.
elementName
- Tag name.value
- String value.
SyntaxException
- There is a semantic error in this event occurrence.public final void changeHandler(AbstractSimpleHandler newHandler, String elementName, SimpleAttributes attributes) throws SyntaxException
beginElement
event.
newHandler
- Handler that gets all the events now.elementName
- Current element name.attributes
- Current element attributes.
SyntaxException
- New handler detected semantical problems.public final int getLevel()
public final String getStartTag()
null
if there is no specific start tag.
|
Hilbert II - Version 0.03.01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
©left GNU General Public Licence All Rights Reserved. |