Java Doc for GrowingTreeList.java in  » Database-ORM » MMBase » org » mmbase » bridge » 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 » Database ORM » MMBase » org.mmbase.bridge.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.mmbase.bridge.util.TreeList
   org.mmbase.bridge.util.GrowingTreeList

GrowingTreeList
public class GrowingTreeList extends TreeList (Code)
This version of TreeList is automaticly growing with the same 'branch' every time when that is possible. For that it needs a kind of template query for every branch, which is defined by the constructor.
author:
   Michiel Meeuwissen
version:
   $Id: GrowingTreeList.java,v 1.19 2007/02/10 17:44:03 nklasens Exp $
since:
   MMBase-1.7


Field Summary
protected  ConstraintcleanConstraint
    
protected  ConstraintcleanLeafConstraint
    
protected  NodeQueryleafElementTemplate
    
protected  intmaxNumberOfSteps
    
protected  NodeQuerypathElementTemplate
    

Constructor Summary
public  GrowingTreeList(NodeQuery q, int maxDepth, NodeManager nodeManager, String role, String searchDir)
    
Parameters:
  q - The 'base' query defining the minimal depth of the tree elements.
public  GrowingTreeList(NodeQuery q, int maxDepth)
     This may be used in combination with Queries.addPath(tree.getTemplate(), (String) path.getValue(this), (String) searchDirs.getValue(this)); So you add a template constisting of a bunch of elements.
public  GrowingTreeList(TreeList tl, int maxDepth)
    

Method Summary
protected  voidaddPathElement()
     Grows the branches of the tree, with the leave.
protected  NodeListgetLeafList(int queryNumber)
    
public  NodeQuerygetLeafTemplate()
     The leave template is the 'last' template.
protected  NodeListgetList(int queryNumber)
    
public  NodeQuerygetTemplate()
     Returns the Query which is used as a template for the leaves to 'grow' the query.
public static  voidmain(String[] args)
    
public  voidsetMaxDepth(int maxDepth)
     As long as the tree is not 'started' yet, max depth can still be changed.
public  intsize()
    

Field Detail
cleanConstraint
protected Constraint cleanConstraint(Code)



cleanLeafConstraint
protected Constraint cleanLeafConstraint(Code)



leafElementTemplate
protected NodeQuery leafElementTemplate(Code)



maxNumberOfSteps
protected int maxNumberOfSteps(Code)



pathElementTemplate
protected NodeQuery pathElementTemplate(Code)




Constructor Detail
GrowingTreeList
public GrowingTreeList(NodeQuery q, int maxDepth, NodeManager nodeManager, String role, String searchDir)(Code)

Parameters:
  q - The 'base' query defining the minimal depth of the tree elements. The trunk of the tree.
Parameters:
  maxDepth - You must supply a maximal depth of the nodes, because MMBase is basicly a network rather then a tree, sotree representations could be infinitely deep.
Parameters:
  nodeManager - Destination Nodemanager in the tree
Parameters:
  role - Role of the relations in the tree
Parameters:
  searchDir - Direction of the relations in the tree
since:
   MMBase-1.7.1



GrowingTreeList
public GrowingTreeList(NodeQuery q, int maxDepth)(Code)
This may be used in combination with Queries.addPath(tree.getTemplate(), (String) path.getValue(this), (String) searchDirs.getValue(this)); So you add a template constisting of a bunch of elements.



GrowingTreeList
public GrowingTreeList(TreeList tl, int maxDepth)(Code)




Method Detail
addPathElement
protected void addPathElement()(Code)
Grows the branches of the tree, with the leave.



getLeafList
protected NodeList getLeafList(int queryNumber)(Code)



getLeafTemplate
public NodeQuery getLeafTemplate()(Code)
The leave template is the 'last' template. This is the same as getTemplate, only, the constraints set on this, are only used if the template is used 'on the end'. It boils down to the fact that constraints set on the query don't change the tree itself, but only constraint the 'leaves', so it makes for a kind of tree-search.
since:
   MMBase-1.8



getList
protected NodeList getList(int queryNumber)(Code)



getTemplate
public NodeQuery getTemplate()(Code)
Returns the Query which is used as a template for the leaves to 'grow' the query. You can change it, add sort-orders and add constraints before the tree is 'started'. All but the first step of this query are added. This query itself is never executed, though marked used, to avoid changes on it after the list has started. Query which is used as a template
since:
   MMBase-1.7.1



main
public static void main(String[] args)(Code)



setMaxDepth
public void setMaxDepth(int maxDepth)(Code)
As long as the tree is not 'started' yet, max depth can still be changed.
Parameters:
  maxDepth - max number of Steps
since:
   MMBase-1.7.1



size
public int size()(Code)



Fields inherited from org.mmbase.bridge.util.TreeList
final public static String REAL_NODES(Code)(Java Doc)
final protected List<Branch> branches(Code)(Java Doc)
protected Cloud cloud(Code)(Java Doc)
protected boolean foundEnd(Code)(Java Doc)
protected int leafConstraintOffset(Code)(Java Doc)
protected int max(Code)(Java Doc)
protected int numberOfSteps(Code)(Java Doc)
protected int topQuery(Code)(Java Doc)

Methods inherited from org.mmbase.bridge.util.TreeList
public static void doTest(java.io.Writer writer, NodeQuery q)(Code)(Java Doc)
public Cloud getCloud()(Code)(Java Doc)
protected NodeList getLeafList(int queryNumber)(Code)(Java Doc)
public NodeQuery getLeafQuery()(Code)(Java Doc)
protected NodeList getList(int queryNumber)(Code)(Java Doc)
public int getMax()(Code)(Java Doc)
public Node getNode(int i)(Code)(Java Doc)
protected static NodeQuery getQuery(String[] args)(Code)(Java Doc)
protected Node getRealNode(int queryIndex, int index)(Code)(Java Doc)
public RelationStep grow(NodeManager nodeManager, String role, String searchDir)(Code)(Java Doc)
public ListIterator<Node> listIterator(int ind)(Code)(Java Doc)
public static void main(String[] args)(Code)(Java Doc)
public NodeIterator nodeIterator()(Code)(Java Doc)
public void setLeafConstraint(Constraint constraint)(Code)(Java Doc)
public void setMax(int m)(Code)(Java Doc)
public int size()(Code)(Java Doc)
protected void sizeCheck()(Code)(Java Doc)
public NodeList subList(int start, int end)(Code)(Java Doc)
public NodeList subNodeList(int start, int end)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public TreeIterator treeIterator()(Code)(Java Doc)
protected TreeIterator treeIterator(int ind)(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.