Package org.apache.xerces.impl.dtd
Class DTDGrammarBucket
java.lang.Object
org.apache.xerces.impl.dtd.DTDGrammarBucket
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.
INTERNAL:
- Usage of this class is not supported. It may be altered or removed at any time.
- Version:
- $Id: DTDGrammarBucket.java 699892 2008-09-28 21:08:27Z mrglavas $
- Author:
- Neil Graham, IBM
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DTDGrammar
protected final Hashtable
Grammars associated with element root name.protected boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
getGrammar
(org.apache.xerces.xni.grammars.XMLGrammarDescription desc) void
putGrammar
(DTDGrammar 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).
-
Field Details
-
fGrammars
Grammars associated with element root name. -
fActiveGrammar
-
fIsStandalone
protected boolean fIsStandalone
-
-
Constructor Details
-
DTDGrammarBucket
public DTDGrammarBucket()Default constructor.
-
-
Method Details
-
putGrammar
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).- Parameters:
grammar
- The grammar.
-
getGrammar
-
clear
public void clear()
-