Java Doc for XMLToolbox.java in  » Code-Analyzer » beautyJ » de » gulden » util » 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 » Code Analyzer » beautyJ » de.gulden.util.xml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.gulden.util.xml.XMLToolbox

XMLToolbox
public class XMLToolbox (Code)
Class XMLToolbox.
author:
   Jens Gulden
version:
   snapshot-beautyj-1.1


Field Summary
protected static  DocumentBuilderparseXMLDocumentBuilder
     The parse x m l document builder.


Method Summary
public static  DocumentBuildercreateDefaultDocumentBuilder()
     Creates the default document builder.
public static  DocumentBuildercreateDefaultDocumentBuilder(boolean validating, boolean namespaceAware, boolean ignoringElementContentWhitespace, boolean ignoringComments, boolean expandEntityReferences, boolean coalescing)
     Creates the default document builder.
public static  StringformatXML(Node xml, boolean indenting, boolean preserveSpace)
    
public static  StringgetAttribute(Element e, String name, String deflt)
    

Returns an attribute's value.

public static  StringgetAttribute(Element e, String name)
    

Returns an attribute's value.

public static  StringgetAttributeRequired(Element e, String att)
     Returns the attribute required.
public static  booleangetBooleanAttribute(Element e, String attr, boolean deflt)
     Returns the boolean attribute.
public static  ElementgetChild(Element e, String tagname)
     Returns the first child with the specified tagname.
public static  ElementgetChild(Element e, String tagname, String attributeName, String attributeValue)
     Returns the first child with the specified tagname and the named attribute set to the given value.
public static  ElementgetChildRequired(Element e, String tagname)
     Returns the child required.
public static  StringgetChildText(Element e, String tagname)
     Returns the child text.
public static  NodeListCollectiongetChildren(Element e, String tagname)
     Returns the children.
public static  NodeListCollectiongetChildren(Element e)
     Returns the children.
public static  NodeListCollectiongetChildren(Element e, String[] tagnames)
     Returns the children.
public static  ElementgetFirstChild(Element e)
     Returns the first child.
public static  ElementgetFollowingElement(Node n)
     Returns the following element.
public static  StringgetLangstring(Element element, String countryCode)
     Returns the langstring.
public static  StringgetLangstring(Element element)
     Returns the langstring.
public static  ElementgetNextSibling(Node n)
     Returns the next sibling.
public static  ElementgetSelfOrFollowingElement(Node n)
     Returns the self or following element.
public static  StringgetText(Element e)
     Returns the text.
public static  booleanisYesAttribute(Element e, String attr)
    
public static  ElementparseXML(String s)
     Parses the x m l.
public static  voidrequireTagName(Element element, String name)
    
public static  StringtranslateJavaNameToXMLName(String name)
    
public static  StringtranslateXMLNameToJavaName(String name)
    
public static  StringxmlEscape(String s)
    
public static  StringxmlEscapeAll(String s)
    

Field Detail
parseXMLDocumentBuilder
protected static DocumentBuilder parseXMLDocumentBuilder(Code)
The parse x m l document builder.





Method Detail
createDefaultDocumentBuilder
public static DocumentBuilder createDefaultDocumentBuilder()(Code)
Creates the default document builder.



createDefaultDocumentBuilder
public static DocumentBuilder createDefaultDocumentBuilder(boolean validating, boolean namespaceAware, boolean ignoringElementContentWhitespace, boolean ignoringComments, boolean expandEntityReferences, boolean coalescing)(Code)
Creates the default document builder.



formatXML
public static String formatXML(Node xml, boolean indenting, boolean preserveSpace)(Code)



getAttribute
public static String getAttribute(Element e, String name, String deflt)(Code)

Returns an attribute's value.




getAttribute
public static String getAttribute(Element e, String name)(Code)

Returns an attribute's value. Note that unlike org.w3c.dom.Element.getAttribute(name), this method returns null if the attribute does not exist on the element. The empty string is only returned if the attribute actually contains the empty string as value.


Parameters:
  e - The element which carries an attribute.


Parameters:
  name - The name of the attribute.

a String with the attribtue's value, null if theattribute is absent on the element.




getAttributeRequired
public static String getAttributeRequired(Element e, String att) throws XMLException(Code)
Returns the attribute required.



getBooleanAttribute
public static boolean getBooleanAttribute(Element e, String attr, boolean deflt)(Code)
Returns the boolean attribute.



getChild
public static Element getChild(Element e, String tagname)(Code)
Returns the first child with the specified tagname.



getChild
public static Element getChild(Element e, String tagname, String attributeName, String attributeValue)(Code)
Returns the first child with the specified tagname and the named attribute set to the given value.



getChildRequired
public static Element getChildRequired(Element e, String tagname) throws XMLException(Code)
Returns the child required.



getChildText
public static String getChildText(Element e, String tagname)(Code)
Returns the child text.



getChildren
public static NodeListCollection getChildren(Element e, String tagname)(Code)
Returns the children.



getChildren
public static NodeListCollection getChildren(Element e)(Code)
Returns the children.



getChildren
public static NodeListCollection getChildren(Element e, String[] tagnames)(Code)
Returns the children.



getFirstChild
public static Element getFirstChild(Element e)(Code)
Returns the first child.



getFollowingElement
public static Element getFollowingElement(Node n)(Code)
Returns the following element.



getLangstring
public static String getLangstring(Element element, String countryCode)(Code)
Returns the langstring.



getLangstring
public static String getLangstring(Element element)(Code)
Returns the langstring.



getNextSibling
public static Element getNextSibling(Node n)(Code)
Returns the next sibling.



getSelfOrFollowingElement
public static Element getSelfOrFollowingElement(Node n)(Code)
Returns the self or following element.



getText
public static String getText(Element e)(Code)
Returns the text.



isYesAttribute
public static boolean isYesAttribute(Element e, String attr)(Code)



parseXML
public static Element parseXML(String s) throws XMLException(Code)
Parses the x m l.



requireTagName
public static void requireTagName(Element element, String name) throws XMLException(Code)



translateJavaNameToXMLName
public static String translateJavaNameToXMLName(String name)(Code)



translateXMLNameToJavaName
public static String translateXMLNameToJavaName(String name)(Code)



xmlEscape
public static String xmlEscape(String s)(Code)



xmlEscapeAll
public static String xmlEscapeAll(String s)(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.