public class

DTDGrammarBucket

extends Object
java.lang.Object
   ↳ org.apache.xerces.impl.dtd.DTDGrammarBucket

Class Overview

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.@xerces.internal

Summary

Fields
protected DTDGrammar fActiveGrammar
protected Hashtable fGrammars Grammars associated with element root name.
protected boolean fIsStandalone
Public Constructors
DTDGrammarBucket()
Default constructor.
Public Methods
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).
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected DTDGrammar fActiveGrammar

protected Hashtable fGrammars

Grammars associated with element root name.

protected boolean fIsStandalone

Public Constructors

public DTDGrammarBucket ()

Default constructor.

Public Methods

public void clear ()

public DTDGrammar getGrammar (XMLGrammarDescription desc)

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.