Java Doc for Node.java in  » XML » kXML » org » kxml2 » kdom » 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 » XML » kXML » org.kxml2.kdom 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.kxml2.kdom.Node

All known Subclasses:   org.kxml2.kdom.Element,  org.kxml2.kdom.Document,
Node
public class Node (Code)
A common base class for Document and Element, also used for storing XML fragments.


Field Summary
final public static  intCDSECT
    
final public static  intCOMMENT
    
final public static  intDOCDECL
    
final public static  intDOCUMENT
    
final public static  intELEMENT
    
final public static  intENTITY_REF
    
final public static  intIGNORABLE_WHITESPACE
    
final public static  intPROCESSING_INSTRUCTION
    
final public static  intTEXT
    
protected  Vectorchildren
    
protected  StringBuffertypes
    


Method Summary
public  voidaddChild(int index, int type, Object child)
     inserts the given child object of the given type at the given index.
public  voidaddChild(int type, Object child)
    
public  ElementcreateElement(String namespace, String name)
     Builds a default element with the given properties.
public  ObjectgetChild(int index)
     Returns the child object at the given index.
public  intgetChildCount()
    
public  ElementgetElement(int index)
     returns the element at the given index.
public  ElementgetElement(String namespace, String name)
     Returns the element with the given namespace and name.
public  StringgetText(int index)
     Returns the text node with the given index or null if the node with the given index is not a text node.
public  intgetType(int index)
     Returns the type of the child at the given index.
public  intindexOf(String namespace, String name, int startIndex)
     Performs search for an element with the given namespace and name, starting at the given start index.
public  booleanisText(int i)
    
public  voidparse(XmlPullParser parser)
     Recursively builds the child elements from the given parser until an end tag or end document is found.
public  voidremoveChild(int idx)
    
public  voidwrite(XmlSerializer writer)
     Writes this node to the given XmlWriter.
public  voidwriteChildren(XmlSerializer writer)
     Writes the children of this node to the given XmlWriter.

Field Detail
CDSECT
final public static int CDSECT(Code)



COMMENT
final public static int COMMENT(Code)



DOCDECL
final public static int DOCDECL(Code)



DOCUMENT
final public static int DOCUMENT(Code)



ELEMENT
final public static int ELEMENT(Code)



ENTITY_REF
final public static int ENTITY_REF(Code)



IGNORABLE_WHITESPACE
final public static int IGNORABLE_WHITESPACE(Code)



PROCESSING_INSTRUCTION
final public static int PROCESSING_INSTRUCTION(Code)



TEXT
final public static int TEXT(Code)



children
protected Vector children(Code)



types
protected StringBuffer types(Code)





Method Detail
addChild
public void addChild(int index, int type, Object child)(Code)
inserts the given child object of the given type at the given index.



addChild
public void addChild(int type, Object child)(Code)
convenience method for addChild (getChildCount (), child)



createElement
public Element createElement(String namespace, String name)(Code)
Builds a default element with the given properties. Elements should always be created using this method instead of the constructor in order to enable construction of specialized subclasses by deriving custom Document classes. Please note: For no namespace, please use Xml.NO_NAMESPACE, null is not a legal value. Currently, null is converted to Xml.NO_NAMESPACE, but future versions may throw an exception.



getChild
public Object getChild(int index)(Code)
Returns the child object at the given index. For child elements, an Element object is returned. For all other child types, a String is returned.



getChildCount
public int getChildCount()(Code)
Returns the number of child objects



getElement
public Element getElement(int index)(Code)
returns the element at the given index. If the node at the given index is a text node, null is returned



getElement
public Element getElement(String namespace, String name)(Code)
Returns the element with the given namespace and name. If the element is not found, or more than one matching elements are found, an exception is thrown.



getText
public String getText(int index)(Code)
Returns the text node with the given index or null if the node with the given index is not a text node.



getType
public int getType(int index)(Code)
Returns the type of the child at the given index. Possible types are ELEMENT, TEXT, COMMENT, and PROCESSING_INSTRUCTION



indexOf
public int indexOf(String namespace, String name, int startIndex)(Code)
Performs search for an element with the given namespace and name, starting at the given start index. A null namespace matches any namespace, please use Xml.NO_NAMESPACE for no namespace). returns -1 if no matching element was found.



isText
public boolean isText(int i)(Code)



parse
public void parse(XmlPullParser parser) throws IOException, XmlPullParserException(Code)
Recursively builds the child elements from the given parser until an end tag or end document is found. The end tag is not consumed.



removeChild
public void removeChild(int idx)(Code)
Removes the child object at the given index



write
public void write(XmlSerializer writer) throws IOException(Code)
Writes this node to the given XmlWriter. For node and document, this method is identical to writeChildren, except that the stream is flushed automatically.



writeChildren
public void writeChildren(XmlSerializer writer) throws IOException(Code)
Writes the children of this node to the given XmlWriter.



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.