Java Doc for XMLDocument.java in  » Content-Management-System » harmonise » org » openharmonise » commons » 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 » Content Management System » harmonise » org.openharmonise.commons.xml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openharmonise.commons.xml.XMLDocument

All known Subclasses:   org.openharmonise.rm.publishing.HarmoniseOutput,  org.openharmonise.rm.publishing.State,
XMLDocument
public class XMLDocument implements Document(Code)
This class is a Proxy implementation of the org.w3c.dom.Document interface which allows a single class to wrap up whatever implementation of the interface is currently used with in the Harmonise framework, and adding a couple of utility methods.
author:
   Michael Bell
version:
   $Revision: 1.2 $


Field Summary
 Documentm_xml
    

Constructor Summary
public  XMLDocument()
     Constructs an XMLDocument from a w3c Document.
public  XMLDocument(org.w3c.dom.Document document)
     Constructs an XMLDocument from a w3c Document.

Method Summary
public  NodeappendChild(Node arg0)
    
public  NodecloneNode(boolean arg0)
    
public static  booleancompareElement(Element origEl, Element compEl)
     Compares the two given elements and returns true if they match.
public  voidcopyChildren(Element parent_destination, Element parent_source)
     Copies XML child nodes from parent source to parent_destination element in this document.
public  voidcopyChildren(Element parent_destination, Element parent_source, Vector ignoreTags)
     Copies XML child nodes from parent source to parent_destination element.
public  NodecopyNode(Node originalEl)
     Returns a copy of the given node, copied to this document.
public  AttrcreateAttribute(String arg0)
    
public  AttrcreateAttributeNS(String arg0, String arg1)
    
public  CDATASectioncreateCDATASection(String arg0)
    
public  CommentcreateComment(String arg0)
    
public  DocumentFragmentcreateDocumentFragment()
    
public  ElementcreateElement(String arg0)
    
public  ElementcreateElementNS(String arg0, String arg1)
    
public  EntityReferencecreateEntityReference(String arg0)
    
public  ProcessingInstructioncreateProcessingInstruction(String arg0, String arg1)
    
public  TextcreateTextNode(String arg0)
    
public static  StringelementInfo(Element element)
     Convenience method to display top form element, for logging purposes only.
public  booleanequals(Object arg0)
    
public static  ElementfindElement(Element sourceEl, Element toFindEl)
     Finds element in one element which matches the another element.
public  NamedNodeMapgetAttributes()
    
public  NodeListgetChildNodes()
    
public static  StringgetChildTextNodeValue(Element xmlElement)
     Returns the String value of the Text Node which is a child of the given element.
public  DocumentTypegetDoctype()
    
public  ElementgetDocumentElement()
    
public  ElementgetElementById(String arg0)
    
public  NodeListgetElementsByTagName(String arg0)
    
public  NodeListgetElementsByTagNameNS(String arg0, String arg1)
    
public  NodegetFirstChild()
    
public  DOMImplementationgetImplementation()
    
public  NodegetLastChild()
    
public  StringgetLocalName()
    
public  StringgetNamespaceURI()
    
public  NodegetNextSibling()
    
public  StringgetNodeName()
    
public  shortgetNodeType()
    
public  StringgetNodeValue()
    
public  DocumentgetOwnerDocument()
    
public  NodegetParentNode()
    
public  StringgetPrefix()
    
public  NodegetPreviousSibling()
    
public static  org.w3c.dom.DocumentgetXMLDocumentFromString(String sXML)
     Returns org.w3c.dom.Document from the given String.
public  booleanhasAttributes()
    
public  booleanhasChildNodes()
    
public  inthashCode()
    
public  NodeimportNode(Node arg0, boolean arg1)
    
public  NodeinsertBefore(Node arg0, Node arg1)
    
public  booleanisSupported(String arg0, String arg1)
    
public  voidnormalize()
    
public static  StringprintNode(Node node)
     Takes XML node and prints to String.
public  NoderemoveChild(Node arg0)
    
public  NodereplaceChild(Node arg0, Node arg1)
    
public  voidsetNodeValue(String arg0)
    
public  voidsetPrefix(String arg0)
    
public  StringtoString()
    

Field Detail
m_xml
Document m_xml(Code)




Constructor Detail
XMLDocument
public XMLDocument()(Code)
Constructs an XMLDocument from a w3c Document.
Parameters:
  document - - The document to use



XMLDocument
public XMLDocument(org.w3c.dom.Document document)(Code)
Constructs an XMLDocument from a w3c Document.
Parameters:
  document - - The document to use




Method Detail
appendChild
public Node appendChild(Node arg0) throws DOMException(Code)



cloneNode
public Node cloneNode(boolean arg0)(Code)



compareElement
public static boolean compareElement(Element origEl, Element compEl)(Code)
Compares the two given elements and returns true if they match.
Parameters:
  origEl -
Parameters:
  compEl -



copyChildren
public void copyChildren(Element parent_destination, Element parent_source)(Code)
Copies XML child nodes from parent source to parent_destination element in this document.
Parameters:
  parent_destination - Element to have child nodes copied to
Parameters:
  parent_source - Element with child nodes to be copied
Parameters:
  destination_xml_document - XML document containingparent_destination



copyChildren
public void copyChildren(Element parent_destination, Element parent_source, Vector ignoreTags)(Code)
Copies XML child nodes from parent source to parent_destination element.
Parameters:
  parent_destination - Element to have child nodes copied to
Parameters:
  parent_source - Element with child nodes to be copied
Parameters:
  destination_xml_document - XML document containingparent_destination
Parameters:
  ignoreTags - List of node names to be ignored (not copied over)



copyNode
public Node copyNode(Node originalEl)(Code)
Returns a copy of the given node, copied to this document.
Parameters:
  originalEl - Node to be copied



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



createAttributeNS
public Attr createAttributeNS(String arg0, String arg1) throws DOMException(Code)



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



createComment
public Comment createComment(String arg0)(Code)



createDocumentFragment
public DocumentFragment createDocumentFragment()(Code)



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



createElementNS
public Element createElementNS(String arg0, String arg1) throws DOMException(Code)



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



createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(String arg0, String arg1) throws DOMException(Code)



createTextNode
public Text createTextNode(String arg0)(Code)



elementInfo
public static String elementInfo(Element element)(Code)
Convenience method to display top form element, for logging purposes only.
Parameters:
  element - The element to display info for



equals
public boolean equals(Object arg0)(Code)



findElement
public static Element findElement(Element sourceEl, Element toFindEl)(Code)
Finds element in one element which matches the another element.
Parameters:
  el - Element to match
Parameters:
  state - XML representation Matching Element found



getAttributes
public NamedNodeMap getAttributes()(Code)



getChildNodes
public NodeList getChildNodes()(Code)



getChildTextNodeValue
public static String getChildTextNodeValue(Element xmlElement)(Code)
Returns the String value of the Text Node which is a child of the given element.
Parameters:
  xmlElement -



getDoctype
public DocumentType getDoctype()(Code)



getDocumentElement
public Element getDocumentElement()(Code)



getElementById
public Element getElementById(String arg0)(Code)



getElementsByTagName
public NodeList getElementsByTagName(String arg0)(Code)



getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String arg0, String arg1)(Code)



getFirstChild
public Node getFirstChild()(Code)



getImplementation
public DOMImplementation getImplementation()(Code)



getLastChild
public Node getLastChild()(Code)



getLocalName
public String getLocalName()(Code)



getNamespaceURI
public String getNamespaceURI()(Code)



getNextSibling
public Node getNextSibling()(Code)



getNodeName
public String getNodeName()(Code)



getNodeType
public short getNodeType()(Code)



getNodeValue
public String getNodeValue() throws DOMException(Code)



getOwnerDocument
public Document getOwnerDocument()(Code)



getParentNode
public Node getParentNode()(Code)



getPrefix
public String getPrefix()(Code)



getPreviousSibling
public Node getPreviousSibling()(Code)



getXMLDocumentFromString
public static org.w3c.dom.Document getXMLDocumentFromString(String sXML) throws SAXException, IOException, ParserConfigurationException, FactoryConfigurationError(Code)
Returns org.w3c.dom.Document from the given String.
Parameters:
  sXML -
throws:
  SAXException -
throws:
  IOException -
throws:
  ParserConfigurationException -
throws:
  FactoryConfigurationError -



hasAttributes
public boolean hasAttributes()(Code)



hasChildNodes
public boolean hasChildNodes()(Code)



hashCode
public int hashCode()(Code)



importNode
public Node importNode(Node arg0, boolean arg1) throws DOMException(Code)



insertBefore
public Node insertBefore(Node arg0, Node arg1) throws DOMException(Code)



isSupported
public boolean isSupported(String arg0, String arg1)(Code)



normalize
public void normalize()(Code)



printNode
public static String printNode(Node node)(Code)
Takes XML node and prints to String.
Parameters:
  node - Element to print to String XML node as String



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



replaceChild
public Node replaceChild(Node arg0, Node arg1) throws DOMException(Code)



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



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



toString
public String toString()(Code)



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.