org.apache.xerces.impl.dtd

Class 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: DTDGrammarBucket.java,v 1.7 2004/10/04 21:57:30 mrglavas Exp $

Author: Neil Graham, IBM

UNKNOWN:

Field Summary
protected DTDGrammarfActiveGrammar
protected HashtablefGrammars
Grammars associated with element root name.
protected booleanfIsStandalone
Constructor Summary
DTDGrammarBucket()
Default constructor.
Method Summary
voidclear()
DTDGrammargetGrammar(XMLGrammarDescription desc)
voidputGrammar(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

fActiveGrammar

protected DTDGrammar fActiveGrammar

fGrammars

protected Hashtable fGrammars
Grammars associated with element root name.

fIsStandalone

protected boolean fIsStandalone

Constructor Detail

DTDGrammarBucket

public DTDGrammarBucket()
Default constructor.

Method Detail

clear

public void clear()

getGrammar

public DTDGrammar getGrammar(XMLGrammarDescription desc)

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.

Copyright © 1999-2005 Apache XML Project. All Rights Reserved.