org.oddjob.arooa.design
Class SimpleHierarchy<T>

java.lang.Object
  extended by org.oddjob.arooa.design.SimpleHierarchy<T>

public class SimpleHierarchy<T>
extends Object


Constructor Summary
SimpleHierarchy(Class<T> of)
           
SimpleHierarchy(String name, Class<T> of)
           
 
Method Summary
 SimpleHierarchy<T> addHierarchy(SimpleHierarchy<T> hierarchy)
           
 SimpleHierarchy<T> addLeaf(T child)
           
 SimpleHierarchy<T> addToHierarchy(String named, T child)
           
<U> SimpleHierarchy<U>
convert(HierarchyConversion<T,U> conversion, Class<U> of)
           
 String getName()
           
 void iterate(HierarchyVisitor<T> v)
           
 SimpleHierarchy<T> setName(String name)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleHierarchy

public SimpleHierarchy(String name,
                       Class<T> of)

SimpleHierarchy

public SimpleHierarchy(Class<T> of)
Method Detail

size

public int size()

getName

public String getName()

setName

public SimpleHierarchy<T> setName(String name)

addLeaf

public SimpleHierarchy<T> addLeaf(T child)

addToHierarchy

public SimpleHierarchy<T> addToHierarchy(String named,
                                         T child)

addHierarchy

public SimpleHierarchy<T> addHierarchy(SimpleHierarchy<T> hierarchy)

iterate

public void iterate(HierarchyVisitor<T> v)

convert

public <U> SimpleHierarchy<U> convert(HierarchyConversion<T,U> conversion,
                                      Class<U> of)