APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.dtd

public Class DTDGrammarBucket

extends Object
Class Inheritance
Imports
com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarDescription, java.util.HashMap, .Map

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.
Author
Neil Graham, IBM

Field Summary

Modifier and TypeField and Description
protected DTDGrammar
protected Map<XMLDTDDescription, DTDGrammar>
fGrammars

Grammars associated with element root name.

protected boolean

Constructor Summary

AccessConstructor and Description
public
DTDGrammarBucket()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public void
pack-priv DTDGrammar
public DTDGrammar
pack-priv boolean
public void
putGrammar(DTDGrammar
The grammar.
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).

pack-priv void
pack-priv void
setStandalone(boolean standalone)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fActiveGrammarback to summary
protected DTDGrammar fActiveGrammar
fGrammarsback to summary
protected Map<XMLDTDDescription, DTDGrammar> fGrammars

Grammars associated with element root name.

fIsStandaloneback to summary
protected boolean fIsStandalone

Constructor Detail

DTDGrammarBucketback to summary
public DTDGrammarBucket()

Default constructor.

Method Detail

clearback to summary
public void clear()
getActiveGrammarback to summary
pack-priv DTDGrammar getActiveGrammar()
getGrammarback to summary
public DTDGrammar getGrammar(XMLGrammarDescription desc)
getStandaloneback to summary
pack-priv boolean getStandalone()
putGrammarback to summary
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:DTDGrammar

The grammar.

setActiveGrammarback to summary
pack-priv void setActiveGrammar(DTDGrammar grammar)
setStandaloneback to summary
pack-priv void setStandalone(boolean standalone)