org.eclipse.epsilon.emc.composite
Class Tree

java.lang.Object
  extended by org.eclipse.epsilon.emc.composite.Tree

public class Tree
extends java.lang.Object


Constructor Summary
Tree(java.lang.String label)
           
 
Method Summary
 Tree createChild(java.lang.String label)
           
 void createChildren(java.lang.String... children)
           
 java.util.ArrayList<Tree> getAllChildren()
           
 Tree getChild(java.lang.String label)
           
 java.util.ArrayList<Tree> getChildren()
           
 java.lang.String getLabel()
           
 void setLabel(java.lang.String label)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tree

public Tree(java.lang.String label)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getLabel

public java.lang.String getLabel()

setLabel

public void setLabel(java.lang.String label)

getChildren

public java.util.ArrayList<Tree> getChildren()

createChild

public Tree createChild(java.lang.String label)

getChild

public Tree getChild(java.lang.String label)

createChildren

public void createChildren(java.lang.String... children)

getAllChildren

public java.util.ArrayList<Tree> getAllChildren()