Java Doc for Dom.java in  » ESB » cbesb-1.2 » com » bostechcorp » cbesb » common » 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 » ESB » cbesb 1.2 » com.bostechcorp.cbesb.common.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.bostechcorp.cbesb.common.util.Dom

Dom
public class Dom (Code)


Field Summary
protected static transient  Loglogger
    


Method Summary
public static  InputStreamSourceToInputStream(Source source)
    
public static  voidcreateAttribute(Document doc, Element currentNode, String attrName, String attrValue)
    
public static  DocumentcreateDocumentFromString(String xml)
    
public static  ElementcreateElement(Document doc, String elemName)
     This function creates a new element and adds it to document.
public static  ElementcreateElement(Document doc, Element parentElem, String elemName)
     This function creates a new element and adds it to parentElm.
public static  ElementcreateNode(Document doc, Element parentNode, String nodeName, String nodeValue)
     This function creates a new node and adds it to Parent Element in a given XML document.
public static  StringcreateStringFromDOMDocument(Document document, boolean isXml)
    
public static  StringcreateStringFromDOMDocument(Document document)
    
public static  StringcreateStringFromDOMDocumentWithXmlStyle(Document document)
    
public static  StringcreateStringFromDOMNode(Node node)
    
public static  NodefindChild(Node parent, String nodeName, boolean recursive)
     Search for a child with the given nodeName.
public static  NodefindChild(Node parent, String namespaceURI, String nodeName, boolean recursive)
     Search for a child with the given nodeName.
public static  NodeListfindChildren(Node parent, String namespaceURI, String nodeName, boolean recursive)
    
public static  NodeListfindChildren(Node parent, String nodeName, boolean recursive)
     Search for children with the given nodeName.
public static  StringgetAttributeValue(Node n, String attName)
    
public static  NodeListgetChildren(Node parent)
    
public static synchronized  DocumentgetDomTree(File inFile, File schemaFile)
    
public static synchronized  DocumentgetDomTree(String xml, File schemaFile)
    
public static synchronized  DocumentgetDomTree(InputStream s, File schemaFile)
    
public static synchronized  DocumentgetDomTree(Reader r, File schemaFile)
    
public static synchronized  DocumentgetDomTree(InputSource source, File schemaFile)
    
public static  NodegetFirstChild(Node node)
    
public static  StringgetNamespaceURIForPrefix(Node node, String prefix)
    
public static  StringgetNamespaceURIForPrefixRecursive(Node node, String prefix)
    
public static  NodegetNextSibling(Node node)
    
public static  StringgetPrefix(String nodeName)
    
public static  StringgetPrefixForNamespaceURI(Node node, String namespaceURI)
    
public static  StringgetPrefixForNamespaceURIRecursive(Node node, String namespaceURI)
    
public static  StringgetTextContent(Node node)
    
public static  StringparseToString(Node node)
    
public static  voidwriteDOMSource(DOMSource src, OutputStream os, String charSetName)
     Write the DOMSource to OutputStream.

Field Detail
logger
protected static transient Log logger(Code)





Method Detail
SourceToInputStream
public static InputStream SourceToInputStream(Source source) throws Exception(Code)



createAttribute
public static void createAttribute(Document doc, Element currentNode, String attrName, String attrValue) throws Exception(Code)
This function creates an Attribute
version:
   1.0



createDocumentFromString
public static Document createDocumentFromString(String xml)(Code)
Create a document from a String
Parameters:
  xml - xml string document representing the document



createElement
public static Element createElement(Document doc, String elemName) throws Exception(Code)
This function creates a new element and adds it to document.
version:
   1.0



createElement
public static Element createElement(Document doc, Element parentElem, String elemName) throws Exception(Code)
This function creates a new element and adds it to parentElm.
version:
   1.0



createNode
public static Element createNode(Document doc, Element parentNode, String nodeName, String nodeValue) throws Exception(Code)
This function creates a new node and adds it to Parent Element in a given XML document.
version:
   1.0



createStringFromDOMDocument
public static String createStringFromDOMDocument(Document document, boolean isXml) throws TransformerException(Code)
Create a String result from a DOM document
Parameters:
  document - the DOM Document a String representation of the DOM Document
throws:
  TransformerException -



createStringFromDOMDocument
public static String createStringFromDOMDocument(Document document) throws TransformerException(Code)
Create a String result from a DOM document
Parameters:
  document - the DOM Document a String representation of the DOM Document
throws:
  TransformerException -



createStringFromDOMDocumentWithXmlStyle
public static String createStringFromDOMDocumentWithXmlStyle(Document document) throws TransformerException(Code)
Create a String result from a DOM document
Parameters:
  document - the DOM Document a String representation of the DOM Document
throws:
  TransformerException -



createStringFromDOMNode
public static String createStringFromDOMNode(Node node) throws TransformerException(Code)
Create a String result from a DOM Node
Parameters:
  node - the DOM Node a String representation of the DOM Document
throws:
  TransformerException -



findChild
public static Node findChild(Node parent, String nodeName, boolean recursive)(Code)
Search for a child with the given nodeName. If recursive, search in all the child of firdt level, then if not found, search in the 2nd level of the first child, ...
Parameters:
  parent - parent node
Parameters:
  nodeName - node name
Parameters:
  recursive - boolean to know if we got through the xml tree a node



findChild
public static Node findChild(Node parent, String namespaceURI, String nodeName, boolean recursive)(Code)
Search for a child with the given nodeName. If recursive, search in all the child of firdt level, then if not found, search in the 2nd level of the first child, ...
Parameters:
  parent - parent node
Parameters:
  namespaceURI - The namespaceURI of the node
Parameters:
  nodeName - node name
Parameters:
  recursive - boolean to know if we got through the xml tree a node



findChildren
public static NodeList findChildren(Node parent, String namespaceURI, String nodeName, boolean recursive)(Code)



findChildren
public static NodeList findChildren(Node parent, String nodeName, boolean recursive)(Code)
Search for children with the given nodeName. If recursive, search in all the children of first level, then search in the 2nd level of the first children, ...
Parameters:
  parent - parent node
Parameters:
  nodeName - node name
Parameters:
  recursive - boolean to know if we got through the xml tree a node list of nodes with this name



getAttributeValue
public static String getAttributeValue(Node n, String attName)(Code)
Return the value of the attribute in the node
Parameters:
  n - the node
Parameters:
  attName - the name of the attribute the value of the attribute, null if not found



getChildren
public static NodeList getChildren(Node parent)(Code)



getDomTree
public static synchronized Document getDomTree(File inFile, File schemaFile) throws SAXException, ParserConfigurationException, IOException(Code)
This function creates a Dom tree from XML file and the XML file gets validated with schemaFile
version:
   1.0



getDomTree
public static synchronized Document getDomTree(String xml, File schemaFile) throws SAXException, ParserConfigurationException, IOException(Code)



getDomTree
public static synchronized Document getDomTree(InputStream s, File schemaFile) throws SAXException, ParserConfigurationException, IOException(Code)



getDomTree
public static synchronized Document getDomTree(Reader r, File schemaFile) throws SAXException, ParserConfigurationException, IOException(Code)



getDomTree
public static synchronized Document getDomTree(InputSource source, File schemaFile) throws SAXException, ParserConfigurationException, IOException(Code)



getFirstChild
public static Node getFirstChild(Node node)(Code)
Return the first child of a node, regardless text node
Parameters:
  node -



getNamespaceURIForPrefix
public static String getNamespaceURIForPrefix(Node node, String prefix)(Code)



getNamespaceURIForPrefixRecursive
public static String getNamespaceURIForPrefixRecursive(Node node, String prefix)(Code)



getNextSibling
public static Node getNextSibling(Node node)(Code)
Return the next sibling of a node, regardless text node
Parameters:
  node -



getPrefix
public static String getPrefix(String nodeName)(Code)



getPrefixForNamespaceURI
public static String getPrefixForNamespaceURI(Node node, String namespaceURI)(Code)
Search a document to see if a namespace is declared in it and if it is returns this namespace URI
Parameters:
  node -
Parameters:
  namespaceURI -
Parameters:
  deep -



getPrefixForNamespaceURIRecursive
public static String getPrefixForNamespaceURIRecursive(Node node, String namespaceURI)(Code)



getTextContent
public static String getTextContent(Node node)(Code)
Return the text element of a node The implmentation of the DOM3 getTextContent() API Axiom DOM implementation doesn't support it
Parameters:
  node -



parseToString
public static String parseToString(Node node) throws TransformerException(Code)



writeDOMSource
public static void writeDOMSource(DOMSource src, OutputStream os, String charSetName) throws Exception(Code)
Write the DOMSource to OutputStream.
Parameters:
  src - The DOM source.
Parameters:
  os - The OutputStream.
Parameters:
  charSetName - The character set name for encoding.
throws:
  Exception -



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.