Java Doc for RootXmlReadHandler.java in  » Graphic-Library » jcommon-components » org » jfree » xml » parser » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Graphic Library » jcommon components » org.jfree.xml.parser 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jfree.xml.FrontendDefaultHandler
   org.jfree.xml.parser.RootXmlReadHandler

RootXmlReadHandler
abstract public class RootXmlReadHandler extends FrontendDefaultHandler (Code)
A base root SAX handler.



Constructor Summary
public  RootXmlReadHandler()
     Creates a new root SAX handler.

Method Summary
protected  voidaddDefaultMappings()
    
protected  voidaddManualMapping(Class classToRead, Class handler)
     Adds a mapping between a class and the handler for the class.
protected  voidaddMultiplexMapping(Class baseClass, String typeAttr, MultiplexMappingEntry[] mdef)
     Adds a multiplex mapping.
public  voidcharacters(char[] ch, int start, int length)
     Process character data.
public  XmlReadHandlercreateHandler(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  voiddelegate(XmlReadHandler handler, String tagName, Attributes attrs)
     Delegate to another handler.
public  voidendElement(String uri, String localName, String qName)
     Finish processing an element.
protected  XmlReadHandlergetCurrentHandler()
     Returns the current handler.
abstract public  ObjectFactorygetFactoryLoader()
     Returns the object factory.
public  ObjectgetHelperObject(String key)
     Returns an object from the registry.
Parameters:
  key - the key.
public  ObjectgetResult()
    
protected  XmlReadHandlergetRootHandler()
     Returns the root SAX handler.
protected  ClassloadClass(String className)
     Loads the given class, and ignores all exceptions which may occur during the loading.
protected  XmlReadHandlerloadHandlerClass(String className)
     Loads the given class, and ignores all exceptions which may occur during the loading.
public  voidrecurse(XmlReadHandler handler, String tagName, Attributes attrs)
     Start a new handler stack and delegate to another handler.
public  voidsetHelperObject(String key, Object value)
     Adds an object to the registry.
protected  voidsetRootHandler(XmlReadHandler handler)
     Sets the root SAX handler.
public  voidstartDocument()
     Starts processing a document.
public  voidstartElement(String uri, String localName, String qName, Attributes attributes)
     Starts processing an element.
public  voidunwind(String tagName)
     Hand control back to the previous handler.


Constructor Detail
RootXmlReadHandler
public RootXmlReadHandler()(Code)
Creates a new root SAX handler.




Method Detail
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.



createHandler
public XmlReadHandler createHandler(Class classToRead, String tagName, Attributes atts) throws XmlReaderException(Code)
Creates a SAX handler for the specified class.
Parameters:
  classToRead - the class.
Parameters:
  tagName - the tag name.
Parameters:
  atts - the attributes. a SAX handler.
throws:
  XmlReaderException - if there is a problem with the reader.



delegate
public void delegate(XmlReadHandler handler, String tagName, Attributes attrs) throws XmlReaderException, SAXException(Code)
Delegate to another handler.
Parameters:
  handler - the new handler.
Parameters:
  tagName - the tag name.
Parameters:
  attrs - the attributes.
throws:
  XmlReaderException - if there is a problem with the reader.
throws:
  SAXException - if there is a problem with the parser.



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.



getResult
public Object getResult() throws SAXException(Code)



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.



recurse
public void recurse(XmlReadHandler handler, String tagName, Attributes attrs) throws XmlReaderException, SAXException(Code)
Start a new handler stack and delegate to another handler.
Parameters:
  handler - the handler.
Parameters:
  tagName - the tag name.
Parameters:
  attrs - the attributes.
throws:
  XmlReaderException - if there is a problem with the reader.
throws:
  SAXException - if there is a problem with the parser.



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.



startDocument
public void startDocument() throws SAXException(Code)
Starts processing a document.
throws:
  SAXException - not in this implementation.



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.



unwind
public void unwind(String tagName) throws SAXException, XmlReaderException(Code)
Hand control back to the previous handler.
Parameters:
  tagName - the tagname.
throws:
  SAXException - if there is a problem with the parser.
throws:
  XmlReaderException - if there is a problem with the reader.



Fields inherited from org.jfree.xml.FrontendDefaultHandler
final public static String CONTENTBASE_KEY(Code)(Java Doc)

Methods inherited from org.jfree.xml.FrontendDefaultHandler
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public Iterator findPropertyKeys(String prefix)(Code)(Java Doc)
public CommentHandler getCommentHandler()(Code)(Java Doc)
public Enumeration getConfigProperties()(Code)(Java Doc)
public String getConfigProperty(String key)(Code)(Java Doc)
public String getConfigProperty(String key, String defaultValue)(Code)(Java Doc)
public URL getContentBase()(Code)(Java Doc)
public Locator getLocator()(Code)(Java Doc)
abstract public Object getResult() throws SAXException(Code)(Java Doc)
abstract public FrontendDefaultHandler newInstance()(Code)(Java Doc)
public void setConfigProperty(String key, String value)(Code)(Java Doc)
public void setDocumentLocator(Locator locator)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.