|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface defines the methods that have to be implementd by any object
handler. These methods will be called when parsing the XML document, and
must contain your XML data handling code. If you don't need th handle
all the events defined in the interface, you may want to use the
ObjectHandlerAdapter convenience class.
ObjectHandlerAdapter| Method Summary | |
void |
endElement(ElementName elementName,
java.lang.String characters)
This method is called when an element which is not handled by a sub-handler ends. |
boolean |
handlesElement(ElementName elementName)
Must return true if and only if this handler is able to handle elements designed by the given name. |
void |
initialize(org.xml.sax.Attributes attributes)
Called when a handled element starts. |
void |
startElement(ElementName elementName,
org.xml.sax.Attributes attributes)
This method is called when an element which is not handled by a sub-handler starts. |
void |
subHandlerInitialized(ObjectHandler subHandler)
Called when a sub-handler is about to be initialized |
void |
subHandlerTerminated(ObjectHandler subHandler)
Called when a sub-handler is about to be terminated |
void |
terminate(java.lang.String text)
Called when a handled element ends. |
void |
text(java.lang.String text)
Called when text is found (a la SAX). |
| Method Detail |
public boolean handlesElement(ElementName elementName)
elementName - The name of the element to handle.
public void startElement(ElementName elementName,
org.xml.sax.Attributes attributes)
throws HandlerException
elementName - The name of the element that startsattributes - The attributes of the element that starts
HandlerException - If any error occurs
public void endElement(ElementName elementName,
java.lang.String characters)
throws HandlerException
elementName - The name of the element that endscharacters - Concatenation of all text contained in this element
HandlerException - If any error occurs
public void text(java.lang.String text)
throws HandlerException
HandlerException
public void initialize(org.xml.sax.Attributes attributes)
throws HandlerException
attributes - The attributes of the element that starts
HandlerException - If any error occurs
public void terminate(java.lang.String text)
throws HandlerException
text - Concatenation of all text contained in this element
HandlerException - If any error occurs
public void subHandlerInitialized(ObjectHandler subHandler)
throws HandlerException
subHandler - The initialized sub-handler
HandlerException - In any error occurs
public void subHandlerTerminated(ObjectHandler subHandler)
throws HandlerException
subHandler - The terminated sub-handler
HandlerException - If any error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||