Overview | Package | Class | Use | Tree | Deprecated | Index | Help
|  | BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

WebLogic Server 8.1 API Reference

## weblogic.apache.xerces.impl.dtd
Class DTDGrammarBucket

    java.lang.Object
      |
      +--weblogic.apache.xerces.impl.dtd.DTDGrammarBucket

public class DTDGrammarBucket
extends java.lang.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.

Field Summary
`protected DTDGrammar` | `fActiveGrammar`
`protected java.util.Hashtable` | `fGrammars` Grammars associated with element root name.
`protected boolean` | `fIsStandalone`

Constructor Summary
`DTDGrammarBucket()` Default constructor.

Method Summary
`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).

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### fGrammars

    protected java.util.Hashtable fGrammars

  Grammars associated with element root name.

### fActiveGrammar

    protected DTDGrammar fActiveGrammar

### fIsStandalone

    protected boolean fIsStandalone

Constructor Detail

### DTDGrammarBucket

    public DTDGrammarBucket()

  Default constructor.

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()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Documentation is available at http://e-docs.bea.com/wls/docs81
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD