final Collection < JcrNodeType > subtypesFor ( JcrNodeType nodeType ) { List < JcrNodeType > subtypes = new LinkedList < JcrNodeType > ( ) ; for ( JcrNodeType type : this . nodeTypes . values ( ) ) { if ( type . supertypes ( ) . contains ( nodeType ) ) { subtypes . add ( type ) ; } } return subtypes ; }
Returns the list of subtypes for the given node .