final Collection < JcrNodeType > declaredSubtypesFor ( JcrNodeType nodeType ) { CheckArg . isNotNull ( nodeType , "nodeType" ) ; String nodeTypeName = nodeType . getName ( ) ; List < JcrNodeType > subtypes = new LinkedList < JcrNodeType > ( ) ; for ( JcrNodeType type : this . nodeTypes . values ( ) ) { if ( Arrays . asList ( type . getDeclaredSupertypeNames ( ) ) . contains ( nodeTypeName ) ) { subtypes . add ( type ) ; } } return subtypes ; }
Returns the list of declared subtypes for the given node .