protected void parseDefaultType ( TokenStream tokens , JcrNodeDefinitionTemplate childDefn ) throws ConstraintViolationException { if ( tokens . canConsume ( ' ' ) ) { if ( ! tokens . canConsume ( ' ' ) ) { Name defaultType = parseName ( tokens ) ; childDefn . setDefaultPrimaryTypeName ( string ( defaultType ) ) ; } } }
Parse the child node definition s default type if they appear next on the token stream .