protected void parseChildNodeDefinition ( TokenStream tokens , JcrNodeTypeTemplate nodeType ) throws ConstraintViolationException { tokens . consume ( ' ' ) ; Name name = parseName ( tokens ) ; JcrNodeDefinitionTemplate childDefn = new JcrNodeDefinitionTemplate ( context ) ; childDefn . setName ( string ( name ) ) ; parseRequiredPrimaryTypes ( tokens , childDefn ) ; parseDefaultType ( tokens , childDefn ) ; parseNodeAttributes ( tokens , childDefn , nodeType ) ; nodeType . getNodeDefinitionTemplates ( ) . add ( childDefn ) ; }
Parse a node type s child node definition from the next tokens on the stream .