public static boolean canAcceptChild ( Class < ? extends ElementBase > parentClass , Class < ? extends ElementBase > childClass ) { return allowedChildClasses . isRelated ( parentClass , childClass ) ; }
Returns true if childClass can be a child of the parentClass .