com.metamatrix.common.tree
Class DefaultChildRules

java.lang.Object
  extended by com.metamatrix.common.tree.DefaultChildRules
All Implemented Interfaces:
ChildRules

public class DefaultChildRules
extends java.lang.Object
implements ChildRules

This interface is used to encapsulate the rules that govern which types of nodes may have children.


Constructor Summary
DefaultChildRules()
           
 
Method Summary
 boolean getAllowsChild(ObjectDefinition parentDefn, ObjectDefinition childDefn)
           
 boolean getAllowsChildren(ObjectDefinition defn)
           
 boolean isHidden(ObjectDefinition defn)
           
 void setValidName(TreeNode newNode, java.util.List children)
           
 void setValidName(TreeNode newNode, ObjectDefinition childType, java.util.List children)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultChildRules

public DefaultChildRules()
Method Detail

isHidden

public boolean isHidden(ObjectDefinition defn)
Specified by:
isHidden in interface ChildRules

getAllowsChildren

public boolean getAllowsChildren(ObjectDefinition defn)
Specified by:
getAllowsChildren in interface ChildRules

getAllowsChild

public boolean getAllowsChild(ObjectDefinition parentDefn,
                              ObjectDefinition childDefn)
Specified by:
getAllowsChild in interface ChildRules

setValidName

public void setValidName(TreeNode newNode,
                         java.util.List children)
Specified by:
setValidName in interface ChildRules

setValidName

public void setValidName(TreeNode newNode,
                         ObjectDefinition childType,
                         java.util.List children)
Specified by:
setValidName in interface ChildRules


Copyright © 2009. All Rights Reserved.