Java Doc for AbstractModelReader.java in  » Graphic-Library » jcommon-components » org » jfree » xml » util » 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.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.xml.util.AbstractModelReader

All known Subclasses:   org.jfree.xml.generator.DefaultModelReader,  org.jfree.xml.util.ObjectFactoryLoader,
AbstractModelReader
abstract public class AbstractModelReader (Code)
Loads the class model from an previously written xml file set. This class provides abstract methods which get called during the parsing (similiar to the SAX parsing, but slightly easier to code). This will need a rewrite in the future, when the structure is finished.



Constructor Summary
public  AbstractModelReader()
     Default Constructor.

Method Summary
protected  voidendIncludeHandling()
     End handling an include.
abstract protected  voidendMultiplexMapping()
     Finializes the multiplexer mapping.
abstract protected  voidendObjectDefinition()
     Finializes the object definition.
protected  voidendRootDocument()
     End the root document.
protected  String[]getCloseComment()
     Returns the close comment.
protected  CommentHandlergetCommentHandler()
     Returns the comment handler.
protected  String[]getOpenComment()
     Returns the open comment.
abstract protected  voidhandleAttributeDefinition(String name, String attribName, String handlerClass)
     Handles an attribute definition.
abstract protected  voidhandleConstructorDefinition(String propertyName, String parameterClass)
     Handles a constructor definition.
abstract protected  voidhandleElementDefinition(String name, String element)
     Handles an element definition.
protected  voidhandleIgnoredProperty(String name)
     Callback method for ignored properties.
abstract protected  voidhandleLookupDefinition(String name, String lookupKey)
     Handles an lookup definition.
abstract protected  booleanhandleManualMapping(String className, String readHandler, String writeHandler)
     Handles a manual mapping definition.
abstract protected  voidhandleMultiplexMapping(String typeName, String className)
     Defines an entry for the multiplex mapping.
protected  ClassloadClass(String className)
     Loads the given class, and ignores all exceptions which may occur during the loading.
protected  voidparseXml(URL resource)
     Parses an XML document at the given URL.
protected  voidparseXmlDocument(URL resource, boolean isInclude)
     Parses the given specification and loads all includes specified in the files.
protected  voidsetCloseComment(String[] closeComment)
     Sets the close comment.
protected  voidsetOpenComment(String[] openComment)
     Sets the open comment.
protected  voidstartIncludeHandling(URL resource)
     Start handling an include.
abstract protected  voidstartMultiplexMapping(String className, String typeAttr)
     Starts a multiplex mapping.
abstract protected  booleanstartObjectDefinition(String className, String register, boolean ignored)
     Starts a object definition.
protected  voidstartRootDocument()
     Start the root document.


Constructor Detail
AbstractModelReader
public AbstractModelReader()(Code)
Default Constructor.




Method Detail
endIncludeHandling
protected void endIncludeHandling()(Code)
End handling an include.



endMultiplexMapping
abstract protected void endMultiplexMapping() throws ObjectDescriptionException(Code)
Finializes the multiplexer mapping.
throws:
  ObjectDescriptionException - if an error occurs.



endObjectDefinition
abstract protected void endObjectDefinition() throws ObjectDescriptionException(Code)
Finializes the object definition.
throws:
  ObjectDescriptionException - if an error occures.



endRootDocument
protected void endRootDocument()(Code)
End the root document.



getCloseComment
protected String[] getCloseComment()(Code)
Returns the close comment. The close comment.



getCommentHandler
protected CommentHandler getCommentHandler()(Code)
Returns the comment handler. The comment handler.



getOpenComment
protected String[] getOpenComment()(Code)
Returns the open comment. The open comment.



handleAttributeDefinition
abstract protected void handleAttributeDefinition(String name, String attribName, String handlerClass) throws ObjectDescriptionException(Code)
Handles an attribute definition. This method gets called after the object definition was started. The method will be called for every defined attribute property.
Parameters:
  name - the name of the property
Parameters:
  attribName - the xml-attribute name to use later.
Parameters:
  handlerClass - the attribute handler class.
throws:
  ObjectDescriptionException - if an error occured.



handleConstructorDefinition
abstract protected void handleConstructorDefinition(String propertyName, String parameterClass) throws ObjectDescriptionException(Code)
Handles a constructor definition. Only one constructor can be defined for a certain object type. The constructor will be filled using the given properties.
Parameters:
  propertyName - the property name of the referenced local property
Parameters:
  parameterClass - the parameter class for the parameter.
throws:
  ObjectDescriptionException - if an error occured.



handleElementDefinition
abstract protected void handleElementDefinition(String name, String element) throws ObjectDescriptionException(Code)
Handles an element definition. This method gets called after the object definition was started. The method will be called for every defined element property. Element properties are used to describe complex objects.
Parameters:
  name - the name of the property
Parameters:
  element - the xml-tag name for the child element.
throws:
  ObjectDescriptionException - if an error occurs.



handleIgnoredProperty
protected void handleIgnoredProperty(String name)(Code)
Callback method for ignored properties. Such properties get marked so that the information regarding these properties won't get lost.
Parameters:
  name - the name of the ignored property.



handleLookupDefinition
abstract protected void handleLookupDefinition(String name, String lookupKey) throws ObjectDescriptionException(Code)
Handles an lookup definition. This method gets called after the object definition was started. The method will be called for every defined lookup property. Lookup properties reference previously created object using the object's registry name.
Parameters:
  name - the property name of the base object
Parameters:
  lookupKey - the register key of the referenced object
throws:
  ObjectDescriptionException - if an error occured.



handleManualMapping
abstract protected boolean handleManualMapping(String className, String readHandler, String writeHandler) throws ObjectDescriptionException(Code)
Handles a manual mapping definition. The manual mapping maps specific read and write handlers to a given base class. Manual mappings always override any other definition.
Parameters:
  className - the base class name
Parameters:
  readHandler - the class name of the read handler
Parameters:
  writeHandler - the class name of the write handler true, if the mapping was accepted, false otherwise.
throws:
  ObjectDescriptionException - if an unexpected error occured.



handleMultiplexMapping
abstract protected void handleMultiplexMapping(String typeName, String className) throws ObjectDescriptionException(Code)
Defines an entry for the multiplex mapping. The new entry will be activated when the base mappers type attribute contains this typename and will resolve to the handler for the given classname.
Parameters:
  typeName - the type value for this mapping.
Parameters:
  className - the class name to which this mapping resolves.
throws:
  ObjectDescriptionException - if an error occurs.



loadClass
protected Class loadClass(String className)(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.



parseXml
protected void parseXml(URL resource) throws ObjectDescriptionException(Code)
Parses an XML document at the given URL.
Parameters:
  resource - the document URL.
throws:
  ObjectDescriptionException - ??



parseXmlDocument
protected void parseXmlDocument(URL resource, boolean isInclude) throws ObjectDescriptionException(Code)
Parses the given specification and loads all includes specified in the files. This implementation does not check for loops in the include files.
Parameters:
  resource - the url of the xml specification.
Parameters:
  isInclude - an include?
throws:
  org.jfree.xml.util.ObjectDescriptionException - if an error occured which prevented theloading of the specifications.



setCloseComment
protected void setCloseComment(String[] closeComment)(Code)
Sets the close comment.
Parameters:
  closeComment - the close comment.



setOpenComment
protected void setOpenComment(String[] openComment)(Code)
Sets the open comment.
Parameters:
  openComment - the open comment.



startIncludeHandling
protected void startIncludeHandling(URL resource)(Code)
Start handling an include.
Parameters:
  resource - the URL.



startMultiplexMapping
abstract protected void startMultiplexMapping(String className, String typeAttr)(Code)
Starts a multiplex mapping. Multiplex mappings are used to define polymorphic argument handlers. The mapper will collect all derived classes of the given base class and will select the corresponding mapping based on the given type attribute.
Parameters:
  className - the base class name
Parameters:
  typeAttr - the xml-attribute name containing the mapping key



startObjectDefinition
abstract protected boolean startObjectDefinition(String className, String register, boolean ignored) throws ObjectDescriptionException(Code)
Starts a object definition. The object definition collects all properties of an bean-class and defines, which constructor should be used when creating the class.
Parameters:
  className - the class name of the defined object
Parameters:
  register - the (optional) register name, to lookup and reference the objectlater.
Parameters:
  ignored - ??. true, if the definition was accepted, false otherwise.
throws:
  ObjectDescriptionException - if an unexpected error occured.



startRootDocument
protected void startRootDocument()(Code)
Start the root document.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.