public void putGrammar(DTDGrammar grammar){
  XMLDTDDescription desc=(XMLDTDDescription)grammar.getGrammarDescription();
  fGrammars.put(desc,grammar);
}

public void putGrammar ( DTDGrammar grammar ) { XMLDTDDescription desc = ( XMLDTDDescription ) grammar . getGrammarDescription ( ) ; fGrammars . put ( desc , grammar ) ; }
puts the specified grammar into the grammar pool and associate it to a root element name ( this being internal , the lack of generality is irrelevant ) .
