|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xerces.util.XMLGrammarPoolImpl org.apache.xerces.parsers.CachingParserPool.ShadowedGrammarPool
public static final class CachingParserPool.ShadowedGrammarPool
Shadowed grammar pool. This class is predicated on the existence of a concrete implementation; so using our own doesn't seem to bad an idea.
Constructor Summary | |
---|---|
CachingParserPool.ShadowedGrammarPool(XMLGrammarPool grammarPool)
Constructs a shadowed grammar pool. |
Method Summary | |
---|---|
void |
cacheGrammars(java.lang.String grammarType,
Grammar[] grammars)
Give the grammarPool the option of caching these grammars. |
boolean |
containsGrammar(XMLGrammarDescription desc)
Returns true if the grammar pool contains a grammar associated to the specified description. |
Grammar |
getGrammar(XMLGrammarDescription desc)
Returns the grammar associated to the specified description. |
Grammar |
retrieveGrammar(XMLGrammarDescription gDesc)
Retrieve a particular grammar. |
Grammar[] |
retrieveInitialGrammarSet(java.lang.String grammarType)
Retrieve the initial set of grammars for the validator to work with. |
Methods inherited from class org.apache.xerces.util.XMLGrammarPoolImpl |
---|
clear, equals, hashCode, lockPool, putGrammar, removeGrammar, unlockPool |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachingParserPool.ShadowedGrammarPool(XMLGrammarPool grammarPool)
Method Detail |
---|
public Grammar[] retrieveInitialGrammarSet(java.lang.String grammarType)
retrieveInitialGrammarSet
in interface XMLGrammarPool
retrieveInitialGrammarSet
in class XMLGrammarPoolImpl
grammarType
- Type of the grammars to be retrieved.
public Grammar retrieveGrammar(XMLGrammarDescription gDesc)
retrieveGrammar
in interface XMLGrammarPool
retrieveGrammar
in class XMLGrammarPoolImpl
gDesc
- Description of the grammar to be retrieved
public void cacheGrammars(java.lang.String grammarType, Grammar[] grammars)
cacheGrammars
in interface XMLGrammarPool
cacheGrammars
in class XMLGrammarPoolImpl
grammarType
- The type of the grammars to be cached.grammars
- The Grammars that may be cached (unordered, Grammars previously
given to the validator may be included).public Grammar getGrammar(XMLGrammarDescription desc)
getGrammar
in class XMLGrammarPoolImpl
desc
- The description of the grammar.public boolean containsGrammar(XMLGrammarDescription desc)
containsGrammar
in class XMLGrammarPoolImpl
desc
- The description of the grammar.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |