Java Doc for NodeTree.java in  » UML » MetaBoss » com » jamonapi » utils » 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 » UML » MetaBoss » com.jamonapi.utils 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.jamonapi.utils.NodeTree

NodeTree
public class NodeTree extends java.lang.Object (Code)
A NodeTree works with Compositenodes and LeafNodes to create heirarchical object trees. An example is a file system where directories can be viewed LeafNodes and directories can be viewed as CompoisteNodes. TreeNodes can be viewed as the top level of the tree structures. For JAMon monitors are grouped in heirarchical with the CompositeNodes being MonitorComposite. MonitorComposites can contain other MonitorComposites or LeafNodes which are the actual Monitors. Monitors are identified by monitor lables which are strings seperated by a common delimiter for example "MyApp.jsp.homePage". The first two levels of the heirarchy are CompositeNodes/MonitorComposites (MyApp and jsp), and the entry after the last delimiter is always the LeafNode (in this case a Monitor). Note that NodeTrees/CompositeNodes/LeafNodes can represent ANY hierarchical/tree structure. JAMon uses this generic pattern to model Monitors. NodeTree's use the first non-alphanumeric to represent the token delimiter. For example any combination of the following are considered token delimiters. (i.e. the following are all valid) pages.homepage (token delimeter is .) pages\homepage (token delimeter is \) pages\homepage.button (token delimeter is \ not .) note - Exception to the rule that token delimeters are the first non-alphanumeric characters are - and _. They are considered part of the variable name. A token delimeter can be any of the following: !@#$%^&*()+=[]\\{}|;':\",./<>?`~



Constructor Summary
public  NodeTree(CompositeNode compositeNodeFactory)
    

Method Summary
public  booleancompositeNodeExists(String locator)
     Determine if the CompositeNode represented by the locator string exists.
public  CompositeNodegetCompositeNode(String locator)
     Return the NodeTree's CompositeNode object that is identified by the locator.
public  LeafNodegetLeafNode(String locator, String type)
     Return the NodeTree's LeafNode object that is identified by the locator and type.
public  CompositeNodegetRootNode()
     Return the highest level CompositeNode in the NodeTree.
public  booleanleafNodeExists(String locator)
     Determine if the leaf represented by the locator string exists.
public  booleannodeExists(String locator)
     Determine if the Node represented by the locator string exists.


Constructor Detail
NodeTree
public NodeTree(CompositeNode compositeNodeFactory)(Code)




Method Detail
compositeNodeExists
public boolean compositeNodeExists(String locator)(Code)
Determine if the CompositeNode represented by the locator string exists. Sample Call: if (nodeTree.compositeNodeExists("MyApp.jsp")) ...



getCompositeNode
public CompositeNode getCompositeNode(String locator)(Code)
Return the NodeTree's CompositeNode object that is identified by the locator. Also add it to the NodeTree. This method uses the StringTokenizer to parse the locator String. StringTokenizer is notoriously slow and this code could be replaced in the future. Sample Call: CompositeNode compositeNode=nodeTree.getCompositeNode("MyApp.jsp");



getLeafNode
public LeafNode getLeafNode(String locator, String type)(Code)
Return the NodeTree's LeafNode object that is identified by the locator and type. Also add it to the NodeTree. This method uses the StringTokenizer to parse the locator String. StringTokenizer is notoriously slow and this code could be replaced in the future. Sample Call: LeafNode leafNode=nodeTree.getLeafNode("MyApp.jsp.homePage", "type"); The variable "type" is can be any string that is useful to the developer when creating a LeafNode. Note: getLeafNode(...) recursively calls getCompositeNode(...) for each NodeTree in the label. In the above example getCompositeNode(...) would be called once for "MyApp" and once for "jsp".



getRootNode
public CompositeNode getRootNode()(Code)
Return the highest level CompositeNode in the NodeTree. i.e. the entry point to all other CompositeNodes and LeafNodes. To use the file system analogy then the root node would be the root directory in Unix or c:\ in Windows.



leafNodeExists
public boolean leafNodeExists(String locator)(Code)
Determine if the leaf represented by the locator string exists. Sample Call: if (nodeTree.leafNodeExists("MyApp.jsp.homePage")) ...



nodeExists
public boolean nodeExists(String locator)(Code)
Determine if the Node represented by the locator string exists. The node can be either a CompositeNode or LeafNode. Sample Call: if (nodeTree.nodeExists("MyApp.jsp.homePage")) ...



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.