public class GenericReadHandler extends AbstractXmlReadHandler
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap |
createdHandler
The created handler.
|
private java.lang.Object |
object
The object under construction.
|
private GenericObjectFactory |
objectFactory
The generic object factory.
|
private java.util.ArrayList |
objectRefHandlers
The object reference handlers.
|
Constructor and Description |
---|
GenericReadHandler(GenericObjectFactory factory)
Creates a new handler.
|
Modifier and Type | Method and Description |
---|---|
protected XmlReadHandler |
getHandlerForChild(java.lang.String tagName,
org.xml.sax.Attributes atts)
Returns the child handler.
|
java.lang.Object |
getObject()
Returns the object.
|
protected void |
startParsing(org.xml.sax.Attributes attrs)
Called at the start of parsing.
|
characters, doneParsing, endElement, getRootHandler, getTagName, init, startElement
private java.lang.Object object
private GenericObjectFactory objectFactory
private java.util.ArrayList objectRefHandlers
private java.util.HashMap createdHandler
public GenericReadHandler(GenericObjectFactory factory)
factory
- the generic object factory.protected void startParsing(org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startParsing
in class AbstractXmlReadHandler
attrs
- the attributes.org.xml.sax.SAXException
- if there is a parsing error.protected XmlReadHandler getHandlerForChild(java.lang.String tagName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
getHandlerForChild
in class AbstractXmlReadHandler
tagName
- the tag name.atts
- the attributes.org.xml.sax.SAXException
- if there is a parsing problem.public java.lang.Object getObject() throws XmlReaderException
XmlReaderException
- ???