Class DTDGrammarBucket
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.dtd.DTDGrammarBucket
-
public class DTDGrammarBucket extends 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$
- Author:
- Neil Graham, IBM
-
-
Field Summary
Fields Modifier and Type Field Description protected DTDGrammar
fActiveGrammar
protected Hashtable
fGrammars
Grammars associated with element root name.protected boolean
fIsStandalone
-
Constructor Summary
Constructors Constructor Description DTDGrammarBucket()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
DTDGrammar
getGrammar(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 Detail
-
fGrammars
protected final Hashtable fGrammars
Grammars associated with element root name.
-
fActiveGrammar
protected DTDGrammar fActiveGrammar
-
fIsStandalone
protected boolean fIsStandalone
-
-
Method Detail
-
putGrammar
public 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).- Parameters:
grammar
- The grammar.
-
getGrammar
public DTDGrammar getGrammar(XMLGrammarDescription desc)
-
clear
public void clear()
-
-