| org.jfree.xml.FrontendDefaultHandler org.jfree.xml.parser.RootXmlReadHandler
Method Summary | |
protected void | addDefaultMappings() | protected void | addManualMapping(Class classToRead, Class handler) Adds a mapping between a class and the handler for the class. | protected void | addMultiplexMapping(Class baseClass, String typeAttr, MultiplexMappingEntry[] mdef) Adds a multiplex mapping. | public void | characters(char[] ch, int start, int length) Process character data. | public XmlReadHandler | createHandler(Class classToRead, String tagName, Attributes atts) Creates a SAX handler for the specified class.
Parameters: classToRead - the class. Parameters: tagName - the tag name. Parameters: atts - the attributes. | public void | delegate(XmlReadHandler handler, String tagName, Attributes attrs) Delegate to another handler. | public void | endElement(String uri, String localName, String qName) Finish processing an element. | protected XmlReadHandler | getCurrentHandler() Returns the current handler. | abstract public ObjectFactory | getFactoryLoader() Returns the object factory. | public Object | getHelperObject(String key) Returns an object from the registry.
Parameters: key - the key. | public Object | getResult() | protected XmlReadHandler | getRootHandler() Returns the root SAX handler. | protected Class | loadClass(String className) Loads the given class, and ignores all exceptions which may occur
during the loading. | protected XmlReadHandler | loadHandlerClass(String className) Loads the given class, and ignores all exceptions which may occur
during the loading. | public void | recurse(XmlReadHandler handler, String tagName, Attributes attrs) Start a new handler stack and delegate to another handler. | public void | setHelperObject(String key, Object value) Adds an object to the registry. | protected void | setRootHandler(XmlReadHandler handler) Sets the root SAX handler. | public void | startDocument() Starts processing a document. | public void | startElement(String uri, String localName, String qName, Attributes attributes) Starts processing an element. | public void | unwind(String tagName) Hand control back to the previous handler. |
RootXmlReadHandler | public RootXmlReadHandler()(Code) | | Creates a new root SAX handler.
|
addDefaultMappings | protected void addDefaultMappings()(Code) | | |
addManualMapping | protected void addManualMapping(Class classToRead, Class handler)(Code) | | Adds a mapping between a class and the handler for the class.
Parameters: classToRead - the class. Parameters: handler - the handler class. |
addMultiplexMapping | protected void addMultiplexMapping(Class baseClass, String typeAttr, MultiplexMappingEntry[] mdef)(Code) | | Adds a multiplex mapping.
Parameters: baseClass - the base class. Parameters: typeAttr - the type attribute. Parameters: mdef - the mapping entry. |
characters | public void characters(char[] ch, int start, int length) throws SAXException(Code) | | Process character data.
Parameters: ch - the character buffer. Parameters: start - the start index. Parameters: length - the length of the character data. throws: SAXException - if there is a parsing error. |
endElement | public void endElement(String uri, String localName, String qName) throws SAXException(Code) | | Finish processing an element.
Parameters: uri - the URI. Parameters: localName - the local name. Parameters: qName - the qName. throws: SAXException - if there is a parsing error. |
getCurrentHandler | protected XmlReadHandler getCurrentHandler()(Code) | | Returns the current handler.
The current handler. |
getFactoryLoader | abstract public ObjectFactory getFactoryLoader()(Code) | | Returns the object factory.
The object factory. |
getHelperObject | public Object getHelperObject(String key)(Code) | | Returns an object from the registry.
Parameters: key - the key. The object. |
getRootHandler | protected XmlReadHandler getRootHandler()(Code) | | Returns the root SAX handler.
the root SAX handler. |
loadClass | protected Class loadClass(String className) throws XmlReaderException(Code) | | Loads the given class, and ignores all exceptions which may occur
during the loading. If the class was invalid, null is returned instead.
Parameters: className - the name of the class to be loaded. the class or null. throws: XmlReaderException - if there is a reader error. |
loadHandlerClass | protected XmlReadHandler loadHandlerClass(String className) throws XmlReaderException(Code) | | Loads the given class, and ignores all exceptions which may occur
during the loading. If the class was invalid, null is returned instead.
Parameters: className - the name of the class to be loaded. the class or null. throws: XmlReaderException - if there is a reader error. |
setHelperObject | public void setHelperObject(String key, Object value)(Code) | | Adds an object to the registry.
Parameters: key - the key. Parameters: value - the object. |
setRootHandler | protected void setRootHandler(XmlReadHandler handler)(Code) | | Sets the root SAX handler.
Parameters: handler - the SAX handler. |
startElement | public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code) | | Starts processing an element.
Parameters: uri - the URI. Parameters: localName - the local name. Parameters: qName - the qName. Parameters: attributes - the attributes. throws: SAXException - if there is a parsing problem. |
Fields inherited from org.jfree.xml.FrontendDefaultHandler | final public static String CONTENTBASE_KEY(Code)(Java Doc)
|
|
|