TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.core.internal
Class DChildrenController

java.lang.Object
  extended by org.eclipse.tptp.platform.report.core.internal.DChildrenController

Deprecated. As of TPTP 4.5.0, use the TPTP Business Intelligence and Reporting Tools (BIRT) reporting infrastructure (org.eclipse.tptp.platform.report.birt).

public class DChildrenController
extends java.lang.Object

This class contains rules to check insertion of a IDItem child in a item. Call one of acceptChild() method to perfrom check. By default all rules for core IDItem are checked, if you want to add a rule, call installChildRule() or installChildrenRule() (for example if you create a new extended IDItem).


Field Summary
protected static java.util.HashMap rules
          Deprecated.  
 
Constructor Summary
DChildrenController()
          Deprecated.  
 
Method Summary
static boolean acceptChild(java.lang.Class _parent, IDItem _child)
          Deprecated. Return true if _child class is allowed to be a child of _paren's classt.
static boolean acceptChild(IDItem _parent, IDItem _child)
          Deprecated. Return true if _child is allowed to be a child of _parent.
static void installChildrenRule(java.lang.Class _parent, java.lang.Class[] _children)
          Deprecated. Add a rule to allow the insertion of children in given parent class.
static void installChildRule(java.lang.Class _parent, java.lang.Class _child)
          Deprecated. Add a rule to allow the insertion of a child in given parent class.
static boolean removeChildClass(java.lang.Class _parent, java.lang.Class _child)
          Deprecated. Remove a rule for given child in a _parent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rules

protected static java.util.HashMap rules
Deprecated. 
Constructor Detail

DChildrenController

public DChildrenController()
Deprecated. 
Method Detail

installChildrenRule

public static void installChildrenRule(java.lang.Class _parent,
                                       java.lang.Class[] _children)
Deprecated. 
Add a rule to allow the insertion of children in given parent class.

Parameters:
_parent - Class of parent
_children - array of Class object, classes of allowed children.

installChildRule

public static void installChildRule(java.lang.Class _parent,
                                    java.lang.Class _child)
Deprecated. 
Add a rule to allow the insertion of a child in given parent class.

Parameters:
_parent - Class of parent
_child - Class of allowed child.

removeChildClass

public static boolean removeChildClass(java.lang.Class _parent,
                                       java.lang.Class _child)
Deprecated. 
Remove a rule for given child in a _parent.


acceptChild

public static boolean acceptChild(IDItem _parent,
                                  IDItem _child)
Deprecated. 
Return true if _child is allowed to be a child of _parent.

Parameters:
_parent - Parent instance.
_child - Child instance to check.
Returns:
true if _child can be a child of _parent.

acceptChild

public static boolean acceptChild(java.lang.Class _parent,
                                  IDItem _child)
Deprecated. 
Return true if _child class is allowed to be a child of _paren's classt.

Parameters:
_parent - Parent class.
_child - Child class to check.
Returns:
true if _child can be a child of _parent.

TPTP 4.5.0 Platform Project
Internal API Specification