Java Doc for SimpleXMLObjectImpl.java in  » J2EE » Enhydra-Application-Framework » org » enhydra » util » dom » 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 » J2EE » Enhydra Application Framework » org.enhydra.util.dom 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.enhydra.util.dom.SimpleXMLObjectImpl

All known Subclasses:   org.enhydra.util.jivan.JivanSimpleXMLObjectImpl,
SimpleXMLObjectImpl
public class SimpleXMLObjectImpl implements XMLObject(Code)

Title: SimpleXMLObjectImpl

Description: This class represents implementation of XMLObject interface. Its main purpose is to provide the way for creation of XMLObject object by passed org.w3c.dom.Document object implementation. The XMLCObject created by this manner can be used in already existing writeDOM() method of ServletHttpPresentationResponse object to perform http response. So, this class (or extemnsion of this class) may be used as suitable way to process the http response by using different org.w3c.dom.Document object implementations (for example Jivan implementation) via already existing XMLC writeDOM() methods. Note that this class was tested only in in http response, not in DOM manipulation, and some methods throw an exception because they are not implemented.

Copyright: Copyright (c) 2004

Company: Together


author:
   Vladimir Radisic
version:
   1.0



Constructor Summary
public  SimpleXMLObjectImpl()
     Constructor.

Method Summary
public  NodeadoptNode(Node source)
    
public  NodeappendChild(Node newChild)
    
public  voidbuildDocument()
     Method is not implemented yet.
protected  voidcloneDeepCheck(boolean deep)
     Check that cloneNode on an entire document is done with the deep option.
public  NodecloneNode(boolean parm1)
     Method is not implemented yet.
public  shortcompareDocumentPosition(Node arg0)
    
public  AttrcreateAttribute(String qualifiedName)
    
public  AttrcreateAttributeNS(String namespaceURI, String qualifiedName)
    
public  CDATASectioncreateCDATASection(String data)
    
public  CommentcreateComment(String data)
    
public  DocumentFragmentcreateDocumentFragment()
    
public  ElementcreateElement(String tagName)
    
public  ElementcreateElementNS(String namespaceURI, String qualifiedName)
    
public  EntityReferencecreateEntityReference(String name)
    
public  ProcessingInstructioncreateProcessingInstruction(String target, String data)
    
public  TextcreateTextNode(String data)
    
final protected  voiddoSetText(Element element, String text)
     Used internally to implement a setTextXXX() method.
public  NamedNodeMapgetAttributes()
    
public  StringgetBaseURI()
    
public  NodeListgetChildNodes()
    
public  XMLObjectgetDelegate()
    
public  DocumentTypegetDoctype()
    
public  DocumentgetDocument()
    
public  ElementgetDocumentElement()
    
public  StringgetDocumentURI()
    
public  DOMConfigurationgetDomConfig()
    
protected  XMLCDomFactorygetDomFactory()
     Method is not implemented yet.
public  ElementgetElementById(String elementId)
    
public  NodeListgetElementsByTagName(String tagname)
    
public  NodeListgetElementsByTagNameNS(String namespaceURI, String localName)
    
public  StringgetEncoding()
    
public  ObjectgetFeature(String arg0, String arg1)
    
public  NodegetFirstChild()
    
public  DOMImplementationgetImplementation()
    
public  StringgetInputEncoding()
    
public  NodegetLastChild()
    
public  StringgetLocalName()
    
public  StringgetMIMEType()
    
public  StringgetNamespaceURI()
    
public  NodegetNextSibling()
    
public  StringgetNodeName()
    
public  shortgetNodeType()
    
public  StringgetNodeValue()
    
public  DocumentgetOwnerDocument()
    
public  NodegetParentNode()
    
public  StringgetPrefix()
    
public  NodegetPreviousSibling()
    
public  booleangetStandalone()
    
public  booleangetStrictErrorChecking()
    
public  StringgetTextContent()
    
public  ObjectgetUserData(String arg0)
    
public  StringgetVersion()
    
public  StringgetXmlEncoding()
    
public  booleangetXmlStandalone()
    
public  StringgetXmlVersion()
    
public  booleanhasAttributes()
    
public  booleanhasChildNodes()
    
public  NodeimportNode(Node importedNode, boolean deep)
    
public  voidinitFields()
     Old method to initialize the fields used by the generated access methods from the current state of the document.
public  NodeinsertBefore(Node newChild, Node refChild)
    
public  booleanisDefaultNamespace(String arg0)
    
public  booleanisEqualNode(Node arg0)
    
public  booleanisSameNode(Node arg0)
    
public  booleanisSupported(String feature, String version)
    
public  booleanisURLAttribute(Element element, String attrName)
    
public  StringlookupNamespaceURI(String arg0)
    
public  StringlookupPrefix(String arg0)
    
public  voidnormalize()
    
public  voidnormalizeDocument()
    
public  NoderemoveChild(Node oldChild)
    
public  NoderenameNode(Node arg0, String arg1, String arg2)
    
public  NodereplaceChild(Node newChild, Node oldChild)
    
public  voidsetDelegate(XMLObject delegate)
    
public  voidsetDocument(Document document, String mimeType, String encoding)
     Set the DOM document associated with this object and optional encoding.
public  voidsetDocumentURI(String arg0)
    
public  voidsetEncoding(String encoding)
    
public  voidsetNodeValue(String nodeValue)
    
public  voidsetPrefix(String prefix)
    
public  voidsetStandalone(boolean standalone)
    
public  voidsetStrictErrorChecking(boolean strictErrorChecking)
    
public  voidsetTextContent(String arg0)
    
public  ObjectsetUserData(String arg0, Object arg1, UserDataHandler arg2)
    
public  voidsetVersion(String version)
    
public  voidsetXmlStandalone(boolean arg0)
    
public  voidsetXmlVersion(String arg0)
    
public  voidsyncAccessMethods()
    
protected  voidsyncWithDocument(Node node)
     Method is not implemented yet.
public  StringtoDocument()
    


Constructor Detail
SimpleXMLObjectImpl
public SimpleXMLObjectImpl()(Code)
Constructor. The setDocument() method must be called to associate a document with this object.




Method Detail
adoptNode
public Node adoptNode(Node source) throws DOMException(Code)
See org.w3c.dom.Document#adoptNode



appendChild
public Node appendChild(Node newChild) throws DOMException(Code)

See Also:   org.w3c.dom.Node.appendChild



buildDocument
public void buildDocument()(Code)
Method is not implemented yet.



cloneDeepCheck
protected void cloneDeepCheck(boolean deep)(Code)
Check that cloneNode on an entire document is done with the deep option.



cloneNode
public Node cloneNode(boolean parm1)(Code)
Method is not implemented yet.
Parameters:
  parm1 -



compareDocumentPosition
public short compareDocumentPosition(Node arg0) throws DOMException(Code)



createAttribute
public Attr createAttribute(String qualifiedName) throws DOMException(Code)

See Also:   org.w3c.dom.Document.createAttribute



createAttributeNS
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException(Code)

See Also:   org.w3c.dom.Document.createAttributeNS



createCDATASection
public CDATASection createCDATASection(String data) throws DOMException(Code)

See Also:   org.w3c.dom.Document.createCDATASection



createComment
public Comment createComment(String data)(Code)

See Also:   org.w3c.dom.Document.createComment



createDocumentFragment
public DocumentFragment createDocumentFragment()(Code)

See Also:   org.w3c.dom.Document.createDocumentFragment



createElement
public Element createElement(String tagName) throws DOMException(Code)

See Also:   org.w3c.dom.Document.createElement



createElementNS
public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException(Code)

See Also:   org.w3c.dom.Document.createElementNS



createEntityReference
public EntityReference createEntityReference(String name) throws DOMException(Code)

See Also:   org.w3c.dom.Document.createEntityReference



createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException(Code)

See Also:   org.w3c.dom.Document.createProcessingInstruction



createTextNode
public Text createTextNode(String data)(Code)

See Also:   org.w3c.dom.Document.createTextNode



doSetText
final protected void doSetText(Element element, String text)(Code)
Used internally to implement a setTextXXX() method. Adds check for for null value and helps to minimizes the amount of generated code.



getAttributes
public NamedNodeMap getAttributes()(Code)

See Also:   org.w3c.dom.Node.getAttributes



getBaseURI
public String getBaseURI()(Code)



getChildNodes
public NodeList getChildNodes()(Code)

See Also:   org.w3c.dom.Node.getChildNodes



getDelegate
public XMLObject getDelegate()(Code)

See Also:   XMLObject.getDelegate



getDoctype
public DocumentType getDoctype()(Code)

See Also:   org.w3c.dom.Document.getDoctype



getDocument
public Document getDocument()(Code)

See Also:   XMLObject.getDocument



getDocumentElement
public Element getDocumentElement()(Code)

See Also:   org.w3c.dom.Document.getDocumentElement



getDocumentURI
public String getDocumentURI()(Code)



getDomConfig
public DOMConfiguration getDomConfig()(Code)



getDomFactory
protected XMLCDomFactory getDomFactory()(Code)
Method is not implemented yet.



getElementById
public Element getElementById(String elementId)(Code)

See Also:   org.w3c.dom.Document.getElementById



getElementsByTagName
public NodeList getElementsByTagName(String tagname)(Code)

See Also:   org.w3c.dom.Document.getElementsByTagName



getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)(Code)

See Also:   org.w3c.dom.Document.getElementsByTagNameNS



getEncoding
public String getEncoding()(Code)
See org.w3c.dom.Document#getEncoding



getFeature
public Object getFeature(String arg0, String arg1)(Code)



getFirstChild
public Node getFirstChild()(Code)

See Also:   org.w3c.dom.Node.getFirstChild



getImplementation
public DOMImplementation getImplementation()(Code)

See Also:   org.w3c.dom.Document.getImplementation



getInputEncoding
public String getInputEncoding()(Code)



getLastChild
public Node getLastChild()(Code)

See Also:   org.w3c.dom.Node.getLastChild



getLocalName
public String getLocalName()(Code)

See Also:   org.w3c.dom.Node.getLocalName



getMIMEType
public String getMIMEType()(Code)

See Also:   XMLObject.getMIMEType



getNamespaceURI
public String getNamespaceURI()(Code)

See Also:   org.w3c.dom.Node.getNamespaceURI



getNextSibling
public Node getNextSibling()(Code)

See Also:   org.w3c.dom.Node.getNextSibling



getNodeName
public String getNodeName()(Code)

See Also:   org.w3c.dom.Node.getNodeName



getNodeType
public short getNodeType()(Code)

See Also:   org.w3c.dom.Node.getNodeType



getNodeValue
public String getNodeValue() throws DOMException(Code)

See Also:   org.w3c.dom.Node.getNodeValue



getOwnerDocument
public Document getOwnerDocument()(Code)

See Also:   org.w3c.dom.Node.getOwnerDocument



getParentNode
public Node getParentNode()(Code)

See Also:   org.w3c.dom.Node.getParentNode



getPrefix
public String getPrefix()(Code)

See Also:   org.w3c.dom.Node.getPrefix



getPreviousSibling
public Node getPreviousSibling()(Code)

See Also:   org.w3c.dom.Node.getPreviousSibling



getStandalone
public boolean getStandalone()(Code)
See org.w3c.dom.Document#getStandalone



getStrictErrorChecking
public boolean getStrictErrorChecking()(Code)
See org.w3c.dom.Document#getStrictErrorChecking



getTextContent
public String getTextContent() throws DOMException(Code)



getUserData
public Object getUserData(String arg0)(Code)



getVersion
public String getVersion()(Code)
See org.w3c.dom.Document#getVersion()



getXmlEncoding
public String getXmlEncoding()(Code)



getXmlStandalone
public boolean getXmlStandalone()(Code)



getXmlVersion
public String getXmlVersion()(Code)



hasAttributes
public boolean hasAttributes()(Code)

See Also:   org.w3c.dom.Node.hasAttributes



hasChildNodes
public boolean hasChildNodes()(Code)

See Also:   org.w3c.dom.Node.hasChildNodes



importNode
public Node importNode(Node importedNode, boolean deep) throws DOMException(Code)

See Also:   org.w3c.dom.Document.importNode



initFields
public void initFields()(Code)
Old method to initialize the fields used by the generated access methods from the current state of the document. This method was poorly named and is deprecated.
See Also:   SimpleXMLObjectImpl.syncAccessMethods



insertBefore
public Node insertBefore(Node newChild, Node refChild) throws DOMException(Code)

See Also:   org.w3c.dom.Node.insertBefore



isDefaultNamespace
public boolean isDefaultNamespace(String arg0)(Code)



isEqualNode
public boolean isEqualNode(Node arg0)(Code)



isSameNode
public boolean isSameNode(Node arg0)(Code)



isSupported
public boolean isSupported(String feature, String version)(Code)

See Also:   org.w3c.dom.Node.isSupported(StringString)



isURLAttribute
public boolean isURLAttribute(Element element, String attrName)(Code)

See Also:   DocumentInfo.isURLAttribute



lookupNamespaceURI
public String lookupNamespaceURI(String arg0)(Code)



lookupPrefix
public String lookupPrefix(String arg0)(Code)



normalize
public void normalize()(Code)

See Also:   org.w3c.dom.Node.normalize



normalizeDocument
public void normalizeDocument()(Code)



removeChild
public Node removeChild(Node oldChild) throws DOMException(Code)

See Also:   org.w3c.dom.Node.removeChild



renameNode
public Node renameNode(Node arg0, String arg1, String arg2) throws DOMException(Code)



replaceChild
public Node replaceChild(Node newChild, Node oldChild) throws DOMException(Code)

See Also:   org.w3c.dom.Node.replaceChild



setDelegate
public void setDelegate(XMLObject delegate)(Code)

See Also:   XMLObject.setDelegate



setDocument
public void setDocument(Document document, String mimeType, String encoding)(Code)
Set the DOM document associated with this object and optional encoding.
Parameters:
  document - org.w3c.dom.Document implementation which should beassociated with this object
Parameters:
  mimeType - The MIME type associated with the document.
Parameters:
  encoding - The encoding associated with the document.



setDocumentURI
public void setDocumentURI(String arg0)(Code)



setEncoding
public void setEncoding(String encoding)(Code)
See org.w3c.dom.Document#setEncoding



setNodeValue
public void setNodeValue(String nodeValue) throws DOMException(Code)

See Also:   org.w3c.dom.Node.setNodeValue



setPrefix
public void setPrefix(String prefix)(Code)

See Also:   org.w3c.dom.Node.setPrefix



setStandalone
public void setStandalone(boolean standalone)(Code)
See org.w3c.dom.Document#setStandalone



setStrictErrorChecking
public void setStrictErrorChecking(boolean strictErrorChecking)(Code)
See org.w3c.dom.Document#setStrictErrorChecking



setTextContent
public void setTextContent(String arg0) throws DOMException(Code)



setUserData
public Object setUserData(String arg0, Object arg1, UserDataHandler arg2)(Code)



setVersion
public void setVersion(String version)(Code)
See org.w3c.dom.Document#setVersion



setXmlStandalone
public void setXmlStandalone(boolean arg0) throws DOMException(Code)



setXmlVersion
public void setXmlVersion(String arg0) throws DOMException(Code)



syncAccessMethods
public void syncAccessMethods()(Code)

See Also:   XMLObject.syncAccessMethods



syncWithDocument
protected void syncWithDocument(Node node)(Code)
Method is not implemented yet.
Parameters:
  node -



toDocument
public String toDocument()(Code)

See Also:   XMLObject.toDocument



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.