Lines Matching refs:grammars

24 import com.sun.org.apache.xerces.internal.xni.grammars.Grammar;
25 import com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarPool;
26 import com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarDescription;
34 * A parser pool that enables caching of grammars. The caching parser
36 * that has already been populated with the grammars used by the
105 * pool and are not allowed to add new grammars to the main
106 * grammar pool. New grammars are added to the shadow grammar
220 // retrieve the initial set of grammars for the validator
223 // @param grammarType type of the grammars to be retrieved.
241 // give the grammarPool the option of caching these grammars.
243 // @param grammarType The type of the grammars to be cached.
244 // @param grammars the Grammars that may be cached (unordered, Grammars previously
246 public void cacheGrammars(String grammarType, Grammar[] grammars) {
248 fGrammarPool.cacheGrammars(grammarType, grammars);
366 * Retrieve the initial set of grammars for the validator to work with.
369 * @param grammarType Type of the grammars to be retrieved.
373 Grammar [] grammars = super.retrieveInitialGrammarSet(grammarType);
374 if (grammars != null) return grammars;
392 * Give the grammarPool the option of caching these grammars.
395 * @param grammarType The type of the grammars to be cached.
396 * @param grammars The Grammars that may be cached (unordered, Grammars previously
399 public void cacheGrammars(String grammarType, Grammar[] grammars) {
400 // better give both grammars a shot...
401 super.cacheGrammars(grammarType, grammars);
402 fGrammarPool.cacheGrammars(grammarType, grammars);