|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.jfree.xml.parser.RootXmlReadHandler
A base root SAX handler.
Constructor Summary | |
RootXmlReadHandler()
Creates a new root SAX handler. |
Method Summary | |
protected void |
addManualMapping(java.lang.Class classToRead,
java.lang.Class handler)
Adds a mapping between a class and the handler for the class. |
protected void |
addMultiplexMapping(java.lang.Class baseClass,
java.lang.String typeAttr,
MultiplexMappingEntry[] mdef)
|
void |
characters(char[] ch,
int start,
int length)
|
XmlReadHandler |
createHandler(java.lang.Class classToRead,
java.lang.String tagName,
org.xml.sax.Attributes atts)
Creates a SAX handler for the specified class. |
void |
delegate(XmlReadHandler handler,
java.lang.String tagName,
org.xml.sax.Attributes attrs)
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
|
protected XmlReadHandler |
getCurrentHandler()
|
abstract ObjectFactory |
getFactoryLoader()
|
org.xml.sax.Locator |
getLocator()
Returns the current locator. |
java.lang.Object |
getObject(java.lang.String key)
|
protected XmlReadHandler |
getRootHandler()
Returns the root SAX handler. |
protected java.lang.Class |
loadClass(java.lang.String className)
Loads the given class, and ignores all exceptions which may occur during the loading. |
protected XmlReadHandler |
loadHandlerClass(java.lang.String className)
Loads the given class, and ignores all exceptions which may occur during the loading. |
void |
putObject(java.lang.String key,
java.lang.Object value)
|
void |
recurse(XmlReadHandler handler,
java.lang.String tagName,
org.xml.sax.Attributes attrs)
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
Receive an object for locating the origin of SAX document events. |
protected void |
setRootHandler(XmlReadHandler handler)
Sets the root SAX handler. |
void |
startDocument()
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
|
void |
unwind(java.lang.String tagName)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RootXmlReadHandler()
Method Detail |
public abstract ObjectFactory getFactoryLoader()
protected void addManualMapping(java.lang.Class classToRead, java.lang.Class handler)
classToRead
- the class.handler
- the handler class.protected void addMultiplexMapping(java.lang.Class baseClass, java.lang.String typeAttr, MultiplexMappingEntry[] mdef)
public void putObject(java.lang.String key, java.lang.Object value)
public java.lang.Object getObject(java.lang.String key)
public XmlReadHandler createHandler(java.lang.Class classToRead, java.lang.String tagName, org.xml.sax.Attributes atts) throws XmlReaderException
classToRead
- the class.tagName
- the tag name.
XmlReaderException
protected void setRootHandler(XmlReadHandler handler)
handler
- the SAX handler.protected XmlReadHandler getRootHandler()
public void recurse(XmlReadHandler handler, java.lang.String tagName, org.xml.sax.Attributes attrs) throws XmlReaderException, org.xml.sax.SAXException
XmlReaderException
org.xml.sax.SAXException
public void delegate(XmlReadHandler handler, java.lang.String tagName, org.xml.sax.Attributes attrs) throws XmlReaderException, org.xml.sax.SAXException
XmlReaderException
org.xml.sax.SAXException
public void unwind(java.lang.String tagName) throws org.xml.sax.SAXException, XmlReaderException
org.xml.sax.SAXException
XmlReaderException
protected XmlReadHandler getCurrentHandler()
public void startDocument() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected XmlReadHandler loadHandlerClass(java.lang.String className) throws XmlReaderException
className
- the name of the class to be loaded.
XmlReaderException
protected java.lang.Class loadClass(java.lang.String className) throws XmlReaderException
className
- the name of the class to be loaded.
XmlReaderException
public void setDocumentLocator(org.xml.sax.Locator locator)
locator
- the locator.public org.xml.sax.Locator getLocator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |