com.metamatrix.common.tree
Interface ChildRules

All Known Implementing Classes:
DefaultChildRules

public interface ChildRules

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


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)
           
 

Method Detail

isHidden

boolean isHidden(ObjectDefinition defn)

getAllowsChildren

boolean getAllowsChildren(ObjectDefinition defn)

getAllowsChild

boolean getAllowsChild(ObjectDefinition parentDefn,
                       ObjectDefinition childDefn)

setValidName

void setValidName(TreeNode newNode,
                  java.util.List children)

setValidName

void setValidName(TreeNode newNode,
                  ObjectDefinition childType,
                  java.util.List children)


Copyright © 2009. All Rights Reserved.