|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.apache.xerces.util.XMLGrammarPoolImpl
public class XMLGrammarPoolImpl
Stores grammars in a pool associated to a specific key. This grammar pool implementation stores two types of grammars: those keyed by the root element name, and those keyed by the grammar's target namespace. This is the default implementation of the GrammarPool interface. As we move forward, this will become more function-rich and robust.
Nested Class Summary | |
---|---|
protected static class |
XMLGrammarPoolImpl.Entry
Deprecated. This class is a grammar pool entry. |
Field Summary | |
---|---|
protected XMLGrammarPoolImpl.Entry[] |
fGrammars
Deprecated. Grammars. |
protected boolean |
fPoolIsLocked
Deprecated. |
protected static int |
TABLE_SIZE
Deprecated. Default size. |
Constructor Summary | |
---|---|
XMLGrammarPoolImpl()
Deprecated. Constructs a grammar pool with a default number of buckets. |
|
XMLGrammarPoolImpl(int initialCapacity)
Deprecated. Constructs a grammar pool with a specified number of buckets. |
Method Summary | |
---|---|
void |
cacheGrammars(String grammarType,
Grammar[] grammars)
Deprecated. |
void |
clear()
Deprecated. |
boolean |
containsGrammar(XMLGrammarDescription desc)
Deprecated. Returns true if the grammar pool contains a grammar associated to the specified grammar description. |
boolean |
equals(XMLGrammarDescription desc1,
XMLGrammarDescription desc2)
Deprecated. This method checks whether two grammars are the same. |
Grammar |
getGrammar(XMLGrammarDescription desc)
Deprecated. Returns the grammar associated to the specified grammar description. |
int |
hashCode(XMLGrammarDescription desc)
Deprecated. Returns the hash code value for the given grammar description. |
void |
lockPool()
Deprecated. |
void |
putGrammar(Grammar grammar)
Deprecated. Puts the specified grammar into the grammar pool and associates it to its root element name or its target namespace. |
Grammar |
removeGrammar(XMLGrammarDescription desc)
Deprecated. Removes the grammar associated to the specified grammar description from the grammar pool and returns the removed grammar. |
Grammar |
retrieveGrammar(XMLGrammarDescription desc)
Deprecated. |
Grammar[] |
retrieveInitialGrammarSet(String grammarType)
Deprecated. |
void |
unlockPool()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int TABLE_SIZE
protected XMLGrammarPoolImpl.Entry[] fGrammars
protected boolean fPoolIsLocked
Constructor Detail |
---|
public XMLGrammarPoolImpl()
public XMLGrammarPoolImpl(int initialCapacity)
Method Detail |
---|
public Grammar[] retrieveInitialGrammarSet(String grammarType)
retrieveInitialGrammarSet
in interface XMLGrammarPool
public void cacheGrammars(String grammarType, Grammar[] grammars)
cacheGrammars
in interface XMLGrammarPool
public Grammar retrieveGrammar(XMLGrammarDescription desc)
retrieveGrammar
in interface XMLGrammarPool
public void putGrammar(Grammar grammar)
grammar
- The Grammar.public Grammar getGrammar(XMLGrammarDescription desc)
desc
- The Grammar Description.public Grammar removeGrammar(XMLGrammarDescription desc)
desc
- The Grammar Description.
public boolean containsGrammar(XMLGrammarDescription desc)
desc
- The Grammar Description.public void lockPool()
lockPool
in interface XMLGrammarPool
public void unlockPool()
unlockPool
in interface XMLGrammarPool
public void clear()
clear
in interface XMLGrammarPool
public boolean equals(XMLGrammarDescription desc1, XMLGrammarDescription desc2)
gDesc1
- The grammar descriptiongDesc2
- The grammar description of the grammar to be compared to
public int hashCode(XMLGrammarDescription desc)
desc
- The grammar description
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs92 Copyright 2006 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |