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.XMLGrammarDescription;
26 import com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarPool;
29 * Stores grammars in a pool associated to a specific key. This grammar pool
30 * implementation stores two types of grammars: those keyed by the root element
62 // the number of grammars in the pool
87 /* <p> Retrieve the initial known set of grammars. This method is
89 * can provide an initial set of grammars available to the current
93 * <code>com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarDescription</code>
95 * @return The set of grammars the validator may put in its "bucket"
115 /* <p> Return the final set of grammars that the validator ended up
117 * application may then choose to cache some of the returned grammars.</p>
120 * us not to accept any new grammars.</p>
122 * @param grammarType The type of the grammars being returned;
123 * @param grammars An array containing the set of grammars being
126 public void cacheGrammars(String grammarType, Grammar[] grammars) {
128 for (int i = 0; i < grammars.length; i++) {
131 Grammar temp = grammars[i] ;
134 putGrammar(grammars[i]);
193 * Currently, the root element name is used as the key for DTD grammars
194 * and the target namespace is used as the key for Schema grammars.
214 * is used as the key for DTD grammars and the target namespace is used
215 * as the key for Schema grammars.
245 * is used as the key for DTD grammars and the target namespace is used
246 * as the key for Schema grammars.
264 * no new grammars will be added until it is "unlocked".
271 * new grammars will be added when putGrammar or cacheGrammars
280 * to all the grammars in it.</p>
293 * This method checks whether two grammars are the same. Currently, we compare
294 * the root element names for DTD grammars and the target namespaces for Schema grammars.
299 * @return True if the grammars are equal, otherwise false