org.apache.cayenne.project
Class FlatProjectView

java.lang.Object
  extended by org.apache.cayenne.project.FlatProjectView

public class FlatProjectView
extends Object

FlatProjectView converts a project tree into a list of nodes, thus flattening the tree. Normally used as a singleton.


Field Summary
protected static FlatProjectView instance
           
 
Constructor Summary
FlatProjectView()
           
 
Method Summary
 List<ProjectPath> flattenProjectTree(Object rootNode)
          Returns flat tree view.
static FlatProjectView getInstance()
          Returns a FlatProjectView singleton.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static FlatProjectView instance
Constructor Detail

FlatProjectView

public FlatProjectView()
Method Detail

getInstance

public static FlatProjectView getInstance()
Returns a FlatProjectView singleton.


flattenProjectTree

public List<ProjectPath> flattenProjectTree(Object rootNode)
Returns flat tree view.



Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.