public boolean hasMandatoryChildNodeDefinitions ( Name primaryType , Set < Name > mixinTypes ) { if ( mandatoryChildrenNodeTypes . containsKey ( primaryType ) ) return true ; for ( Name mixinType : mixinTypes ) { if ( mandatoryChildrenNodeTypes . containsKey ( mixinType ) ) return true ; } return false ; }
Determine if the named primary node type or mixin types has at least one mandatory child node definitions declared on it or any of its supertypes .