Java Doc for XML2ObjectContentHandler.java in  » Database-DBMS » Ozone-1.1 » org » ozoneDB » core » xml » 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 » Database DBMS » Ozone 1.1 » org.ozoneDB.core.xml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ozoneDB.core.xml.XML2ObjectContentHandler

All known Subclasses:   org.ozoneDB.core.xml.HashtableContentHandler,
XML2ObjectContentHandler
public class XML2ObjectContentHandler implements ContentHandler,Consts(Code)
This class handles the XML and transform it into an Object.
version:
   $Revision: 1.1 $
author:
   SMB


Field Summary
protected  XML2ObjectContentHandlerCH
     CH (ContentHandler) is for handling a special part of the XML in a special ContentHandler.
final public static  booleandebug
    
protected  XML2ObjectDelegatedelegate
    
protected  Locatorlocator
    
protected static  HashtableobjCache
     Cache for the ref-elements.
protected  Stackstack
     All objs, members, values etc.

Constructor Summary
public  XML2ObjectContentHandler()
    
public  XML2ObjectContentHandler(XML2ObjectDelegate delegate)
    

Method Summary
protected  ObjectcastValue(String type, String valueStr)
     The method castValues casts the valueString into the real type.
public  voidcharacters(char[] ch, int start, int end)
     The method characters handles the text-elements.
public  voidendDocument()
     ...
public  voidendElement(String namespaceURI, String localName, String rawName)
     The method endElement handles all endElements.
public  voidendPrefixMapping(String prefix)
    
protected  voidhandleMemberEndElement()
     The method handleMemberEndElement gets the finished MemberElement and the value from the stack and put it in the object.
protected  voidhandleMemberStartElement(Attributes atts)
     The method handleMemberStartElement creates a MemberElement and put it the stack.
protected  voidhandleObjEndElement()
     The method handleObjEndElement gets the finished Object from the stack.
protected  voidhandleObjStartElement(Attributes atts)
     The method handleObjStartElement creates a new object and put it in the stack.
protected  voidhandleOzoneProxyMember(Attributes atts)
     This methode handles an OzoneProxy member.
protected  voidhandleSuperclassEndElement()
     The method handleSuperclassEndElement pop the superclass in the stack.
protected  voidhandleSuperclassStartElement(Attributes atts)
     The method handleSuperclassStartElement creates a SuperclassElement and put into the stack.
protected  voidhandleValueArrayEndElement()
     The method handleValueArrayEndElement joins the values to an array.
protected  voidhandleValueArrayStartElement(Attributes atts)
     The method handleValueArrayStartElement creates a ValueArrayElement and put it in the stack.
protected  voidhandleValueEndElement()
     The method handleValueEndElement gets the ValueElement from the stack.
protected  voidhandleValueObjEndElement()
    
protected  voidhandleValueObjStartElement(Attributes atts)
     The method handleValueObjStartElement creates a ValueObjElement and put it in the stack.
protected  voidhandleValueStartElement(Attributes atts)
     The method handleValueStartElement creates a ValueElement and put it the stack.
public  voidhandleValues(char[] ch, int start, int end)
     The method handleValues gets the ValueElement from the stack.
public  voidignorableWhitespace(char[] ch, int start, int end)
    
protected  voidmemberEndElement()
     The method memberEndElement refers to handleMemberEndElement.
protected  voidmemberStartElement(Attributes atts)
     The method memberStartElement refers to handleMemberStartElement.
protected  voidobjEndElement()
     The method objEndElement refers to handleObjEndElement.
protected  voidobjStartElement(Attributes atts)
     The method objStartElement refers to handleObjStartElement.
public  voidprocessingInstruction(String target, String data)
    
public  voidsetDocumentLocator(Locator locator)
     The method setDocumentLocator sets the locator.
protected  voidshowStack(Stack s)
    
public  voidskippedEntity(String name)
    
public  voidstartDocument()
     ...
public  voidstartElement(String namespaceURI, String localName, String rawName, Attributes atts)
     The method startElement handels all startElements.
public  voidstartPrefixMapping(String prefix, String uri)
    
protected  voidsuperclassEndElement()
     The method superclassEndElement refers to handleSuperclassEndElement.
protected  voidsuperclassStartElement(Attributes atts)
     The method superclassStartElement refers to handleSuperclassStartElement.
protected  voidvalueArrayEndElement()
     The method valueArrayEndElement refers to handleValueArrayEndElement.
protected  voidvalueArrayStartElement(Attributes atts)
     The method valueArrayStartElement refers to handleValueArrayStartElement.
protected  voidvalueEndElement()
     The method valueEndElement refers to handleValueEndElement.
protected  voidvalueObjEndElement()
     The method valueObjEndElement refers to handleValueObjEndElement.
protected  voidvalueObjStartElement(Attributes atts)
     The method valueObjStartElement refers to handleValueObjStartElement.
protected  voidvalueStartElement(Attributes atts)
     The method valueStartElement refers to handleValueStartElement.
protected  voidvalues(char[] ch, int start, int end)
     The method values refers to handleValues.

Field Detail
CH
protected XML2ObjectContentHandler CH(Code)
CH (ContentHandler) is for handling a special part of the XML in a special ContentHandler. (e.g. HashtableContentHandler)



debug
final public static boolean debug(Code)



delegate
protected XML2ObjectDelegate delegate(Code)



locator
protected Locator locator(Code)



objCache
protected static Hashtable objCache(Code)
Cache for the ref-elements.



stack
protected Stack stack(Code)
All objs, members, values etc. are saved in these stack.




Constructor Detail
XML2ObjectContentHandler
public XML2ObjectContentHandler()(Code)



XML2ObjectContentHandler
public XML2ObjectContentHandler(XML2ObjectDelegate delegate)(Code)




Method Detail
castValue
protected Object castValue(String type, String valueStr)(Code)
The method castValues casts the valueString into the real type.
Parameters:
  type - (the type)
Parameters:
  valueString - (start of the array)



characters
public void characters(char[] ch, int start, int end)(Code)
The method characters handles the text-elements.
Parameters:
  ch - (char-array)
Parameters:
  start - (start of the array)
Parameters:
  end - (end of the array)



endDocument
public void endDocument()(Code)
... end Document



endElement
public void endElement(String namespaceURI, String localName, String rawName)(Code)
The method endElement handles all endElements. It refers to the methods, which process the individual endElement in detail.
Parameters:
  namespaceURI -
Parameters:
  localName -
Parameters:
  rawName - (the tagname)



endPrefixMapping
public void endPrefixMapping(String prefix)(Code)



handleMemberEndElement
protected void handleMemberEndElement()(Code)
The method handleMemberEndElement gets the finished MemberElement and the value from the stack and put it in the object.



handleMemberStartElement
protected void handleMemberStartElement(Attributes atts)(Code)
The method handleMemberStartElement creates a MemberElement and put it the stack.
Parameters:
  atts - (the attributes)



handleObjEndElement
protected void handleObjEndElement()(Code)
The method handleObjEndElement gets the finished Object from the stack.



handleObjStartElement
protected void handleObjStartElement(Attributes atts)(Code)
The method handleObjStartElement creates a new object and put it in the stack.
Parameters:
  atts - (the attributes)



handleOzoneProxyMember
protected void handleOzoneProxyMember(Attributes atts)(Code)
This methode handles an OzoneProxy member.
Parameters:
  memberName - (name of the member)
Parameters:
  proxy - (the OzoneProxy object)



handleSuperclassEndElement
protected void handleSuperclassEndElement()(Code)
The method handleSuperclassEndElement pop the superclass in the stack.



handleSuperclassStartElement
protected void handleSuperclassStartElement(Attributes atts)(Code)
The method handleSuperclassStartElement creates a SuperclassElement and put into the stack.
Parameters:
  atts - (the attributes)



handleValueArrayEndElement
protected void handleValueArrayEndElement()(Code)
The method handleValueArrayEndElement joins the values to an array.



handleValueArrayStartElement
protected void handleValueArrayStartElement(Attributes atts)(Code)
The method handleValueArrayStartElement creates a ValueArrayElement and put it in the stack.
Parameters:
  atts - (the attributes)



handleValueEndElement
protected void handleValueEndElement()(Code)
The method handleValueEndElement gets the ValueElement from the stack. It casts the value (as String) in the special type and put the real value in the stack back.



handleValueObjEndElement
protected void handleValueObjEndElement()(Code)



handleValueObjStartElement
protected void handleValueObjStartElement(Attributes atts)(Code)
The method handleValueObjStartElement creates a ValueObjElement and put it in the stack. If the valueObj is from type java.util.Hashtable: -> new ContentHandler which creates a Hashtable (It is because of can not creating innerClasses!!)
Parameters:
  atts - (the attributes)



handleValueStartElement
protected void handleValueStartElement(Attributes atts)(Code)
The method handleValueStartElement creates a ValueElement and put it the stack.
Parameters:
  atts - (the attributes)



handleValues
public void handleValues(char[] ch, int start, int end)(Code)
The method handleValues gets the ValueElement from the stack. All values in the ValueElement are saved as String.
Parameters:
  ch - (char-array)
Parameters:
  start - (start of the array)
Parameters:
  end - (end of the array)



ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int end)(Code)



memberEndElement
protected void memberEndElement()(Code)
The method memberEndElement refers to handleMemberEndElement.



memberStartElement
protected void memberStartElement(Attributes atts)(Code)
The method memberStartElement refers to handleMemberStartElement.
Parameters:
  atts - (the attributes)



objEndElement
protected void objEndElement()(Code)
The method objEndElement refers to handleObjEndElement.



objStartElement
protected void objStartElement(Attributes atts)(Code)
The method objStartElement refers to handleObjStartElement.
Parameters:
  atts - (the attributes)



processingInstruction
public void processingInstruction(String target, String data)(Code)



setDocumentLocator
public void setDocumentLocator(Locator locator)(Code)
The method setDocumentLocator sets the locator.
Parameters:
  locator -



showStack
protected void showStack(Stack s)(Code)



skippedEntity
public void skippedEntity(String name)(Code)



startDocument
public void startDocument()(Code)
... start Document



startElement
public void startElement(String namespaceURI, String localName, String rawName, Attributes atts)(Code)
The method startElement handels all startElements. It refers to the methods, which process the individual startElement in detail.
Parameters:
  namespaceURI -
Parameters:
  localName -
Parameters:
  rawName - (the tagname)
Parameters:
  atts - (the attributes of the tag)



startPrefixMapping
public void startPrefixMapping(String prefix, String uri)(Code)



superclassEndElement
protected void superclassEndElement()(Code)
The method superclassEndElement refers to handleSuperclassEndElement.



superclassStartElement
protected void superclassStartElement(Attributes atts)(Code)
The method superclassStartElement refers to handleSuperclassStartElement.
Parameters:
  atts - (the attributes)



valueArrayEndElement
protected void valueArrayEndElement()(Code)
The method valueArrayEndElement refers to handleValueArrayEndElement.



valueArrayStartElement
protected void valueArrayStartElement(Attributes atts)(Code)
The method valueArrayStartElement refers to handleValueArrayStartElement.
Parameters:
  atts - (the attributes)



valueEndElement
protected void valueEndElement()(Code)
The method valueEndElement refers to handleValueEndElement.



valueObjEndElement
protected void valueObjEndElement()(Code)
The method valueObjEndElement refers to handleValueObjEndElement.



valueObjStartElement
protected void valueObjStartElement(Attributes atts)(Code)
The method valueObjStartElement refers to handleValueObjStartElement.
Parameters:
  atts - (the attributes)



valueStartElement
protected void valueStartElement(Attributes atts)(Code)
The method valueStartElement refers to handleValueStartElement.
Parameters:
  atts - (the attributes)



values
protected void values(char[] ch, int start, int end)(Code)
The method values refers to handleValues.
Parameters:
  ch - (char-array)
Parameters:
  start - (start of the array)
Parameters:
  end - (end of the array)



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.