|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.xineo.xml.handler.ObjectHandler
Implements the core of an object handler, and must be subclassed
to implement the ObjectHandlerInterface interface.
ObjectHandlerAdapter,
ObjectHandlerInterface| Constructor Summary | |
ObjectHandler()
|
|
| Method Summary | |
void |
addSubHandler(ObjectHandler subHandler)
Adds a sub-handler, that will handle elements embeded in the elements handled by this object handler. |
protected ObjectHandler |
findHandlerByElementName(ElementName elementName)
For internal use |
org.xml.sax.ContentHandler |
getAsContentHandler()
Returns a ContentHandler instance, which may be passed to
an XML reader in order to parse XML documents with this object handler acting as
the root handler. |
protected ElementNameStack |
getContext()
Returns the current parsing context, represented as a stack containing the consitutive elements of the current branch of the XML tree. |
java.lang.String |
getName()
|
protected java.util.Collection |
getParents()
Returns the parents of this object handler, that are the handlers for which this handler is registered as a child handler (usually only one). |
protected java.lang.Object |
getUserContext()
Returns the user context. |
void |
setUserContext(java.lang.Object userContext)
Sets the user context of this object handler, which will be transmitted to all its sub-handlers during parsing, and will be available via the getUserContext() method. |
java.lang.String |
toString()
|
protected void |
transmitContext(ObjectHandler subHandler)
For internal use |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.xineo.xml.handler.ObjectHandlerInterface |
endElement, handlesElement, initialize, startElement, subHandlerInitialized, subHandlerTerminated, terminate, text |
| Constructor Detail |
public ObjectHandler()
| Method Detail |
public void addSubHandler(ObjectHandler subHandler)
subHandler - The sub-handler to be added.public void setUserContext(java.lang.Object userContext)
getUserContext() method.
userContext - Any object to be used as the user context.getUserContext()public org.xml.sax.ContentHandler getAsContentHandler()
ContentHandler instance, which may be passed to
an XML reader in order to parse XML documents with this object handler acting as
the root handler.
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectprotected java.lang.Object getUserContext()
setUserContext(java.lang.Object)protected ElementNameStack getContext()
protected java.util.Collection getParents()
protected ObjectHandler findHandlerByElementName(ElementName elementName)
protected void transmitContext(ObjectHandler subHandler)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||