org.apache.xerces.impl.dtd
Class DTDGrammarBucket
java.lang.Object
|
+--org.apache.xerces.impl.dtd.DTDGrammarBucket
- public class DTDGrammarBucket
- extends java.lang.Object
This very simple class is the skeleton of what the DTDValidator could use
to store various grammars that it gets from the GrammarPool. As in the
case of XSGrammarBucket, one thinks of this object as being closely
associated with its validator; when fully mature, this class will be
filled from the GrammarPool when the DTDValidator is invoked on a
document, and, if a new DTD grammar is parsed, the new set will be
offered back to the GrammarPool for possible inclusion.
- Version:
- $Id: DTDGrammarBucket.java,v 1.3 2002/01/29 01:15:10 lehors Exp $
- Author:
- Neil Graham, IBM
Field Summary |
protected java.util.Hashtable |
fGrammars
Grammars associated with element root name. |
Method Summary |
void |
putGrammar(java.lang.String rootElement,
org.apache.xerces.xni.grammars.Grammar grammar)
Puts the specified grammar into the grammar pool and associate it to
a root element name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fGrammars
protected java.util.Hashtable fGrammars
- Grammars associated with element root name.
DTDGrammarBucket
public DTDGrammarBucket()
- Default constructor.
putGrammar
public void putGrammar(java.lang.String rootElement,
org.apache.xerces.xni.grammars.Grammar grammar)
- Puts the specified grammar into the grammar pool and associate it to
a root element name.
- Parameters:
rootElement
- Root element name.grammar
- The grammar.
Copyright © 1999-2002 Apache XML Project. All Rights Reserved.