Java Doc for TreeNode.java in  » Web-Framework » aranea-mvc-1.1.1 » org » araneaframework » http » support » 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 » Web Framework » aranea mvc 1.1.1 » org.araneaframework.http.support 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.araneaframework.http.support.TreeNode

TreeNode
public class TreeNode (Code)
Simplified implementation of a Node from a Document Object Model (DOM) parse of an XML document. This class is used to represent a DOM tree so that the XML parser's implementation of org.w3c.dom need not be visible to the remainder of Jasper.

WARNING - Construction of a new tree, or modifications to an existing one, are not thread-safe and such accesses must be synchronized.
author:
   Craig R. McClanahan
version:
   $Revision$ $Date$



Field Summary
protected  HashMapattributes
     The attributes of this node, keyed by attribute name, Instantiated only if required.
protected  Stringbody
     The body text associated with this node (if any).
protected  ArrayListchildren
     The children of this node, instantiated only if required.
protected  Stringname
     The name of this node.
protected  TreeNodeparent
     The parent node of this node.

Constructor Summary
public  TreeNode(String name)
     Construct a new node with no parent.
public  TreeNode(String name, TreeNode parent)
     Construct a new node with the specified parent.

Method Summary
public  voidaddAttribute(String name, String value)
     Add an attribute to this node, replacing any existing attribute with the same name.
public  voidaddChild(TreeNode node)
     Add a new child node to this node.
public  StringfindAttribute(String name)
     Return the value of the specified node attribute if it exists, or null otherwise.
public  IteratorfindAttributes()
     Return an Iterator of the attribute names of this node.
public  TreeNodefindChild(String name)
     Return the first child node of this node with the specified name, if there is one; otherwise, return null.
public  IteratorfindChildren()
     Return an Iterator of all children of this node.
public  IteratorfindChildren(String name)
     Return an Iterator over all children of this node that have the specified name.
public  StringgetBody()
     Return the body text associated with this node (if any).
public  StringgetName()
     Return the name of this node.
public  voidremoveAttribute(String name)
     Remove any existing value for the specified attribute name.
public  voidremoveNode(TreeNode node)
     Remove a child node from this node, if it is one.
public  voidsetBody(String body)
     Set the body text associated with this node (if any).
public  StringtoString()
     Return a String representation of this TreeNode.
protected  voidtoString(StringBuffer sb, int indent, TreeNode node)
     Append to the specified StringBuffer a character representation of this node, with the specified amount of indentation.

Field Detail
attributes
protected HashMap attributes(Code)
The attributes of this node, keyed by attribute name, Instantiated only if required.



body
protected String body(Code)
The body text associated with this node (if any).



children
protected ArrayList children(Code)
The children of this node, instantiated only if required.



name
protected String name(Code)
The name of this node.



parent
protected TreeNode parent(Code)
The parent node of this node.




Constructor Detail
TreeNode
public TreeNode(String name)(Code)
Construct a new node with no parent.
Parameters:
  name - The name of this node



TreeNode
public TreeNode(String name, TreeNode parent)(Code)
Construct a new node with the specified parent.
Parameters:
  name - The name of this node
Parameters:
  parent - The node that is the parent of this node




Method Detail
addAttribute
public void addAttribute(String name, String value)(Code)
Add an attribute to this node, replacing any existing attribute with the same name.
Parameters:
  name - The attribute name to add
Parameters:
  value - The new attribute value



addChild
public void addChild(TreeNode node)(Code)
Add a new child node to this node.
Parameters:
  node - The new child node



findAttribute
public String findAttribute(String name)(Code)
Return the value of the specified node attribute if it exists, or null otherwise.
Parameters:
  name - Name of the requested attribute



findAttributes
public Iterator findAttributes()(Code)
Return an Iterator of the attribute names of this node. If there are no attributes, an empty Iterator is returned.



findChild
public TreeNode findChild(String name)(Code)
Return the first child node of this node with the specified name, if there is one; otherwise, return null.
Parameters:
  name - Name of the desired child element



findChildren
public Iterator findChildren()(Code)
Return an Iterator of all children of this node. If there are no children, an empty Iterator is returned.



findChildren
public Iterator findChildren(String name)(Code)
Return an Iterator over all children of this node that have the specified name. If there are no such children, an empty Iterator is returned.
Parameters:
  name - Name used to select children



getBody
public String getBody()(Code)
Return the body text associated with this node (if any).



getName
public String getName()(Code)
Return the name of this node.



removeAttribute
public void removeAttribute(String name)(Code)
Remove any existing value for the specified attribute name.
Parameters:
  name - The attribute name to remove



removeNode
public void removeNode(TreeNode node)(Code)
Remove a child node from this node, if it is one.
Parameters:
  node - The child node to remove



setBody
public void setBody(String body)(Code)
Set the body text associated with this node (if any).
Parameters:
  body - The body text (if any)



toString
public String toString()(Code)
Return a String representation of this TreeNode.



toString
protected void toString(StringBuffer sb, int indent, TreeNode node)(Code)
Append to the specified StringBuffer a character representation of this node, with the specified amount of indentation.
Parameters:
  sb - The StringBuffer to append to
Parameters:
  indent - Number of characters of indentation
Parameters:
  node - The TreeNode to be printed



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.