com.metamatrix.common.tree
Class DefaultChildRules
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultChildRules
public DefaultChildRules()
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.