org.apache.xerces.parsers
Class CachingParserPool.ShadowedGrammarPool
java.lang.Object
|
+--org.apache.xerces.impl.validation.XMLGrammarPoolImpl
|
+--org.apache.xerces.parsers.CachingParserPool.ShadowedGrammarPool
- All Implemented Interfaces:
- org.apache.xerces.xni.grammars.XMLGrammarPool
- Enclosing class:
- CachingParserPool
- public static final class CachingParserPool.ShadowedGrammarPool
- extends XMLGrammarPoolImpl
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.
- Author:
- Andy Clark, IBM, Neil Graham, IBM
Method Summary |
void |
cacheGrammars(java.lang.String grammarType,
org.apache.xerces.xni.grammars.Grammar[] grammars)
|
boolean |
containsGrammar(java.lang.String key)
Returns true if the grammar pool contains a grammar associated
to the specified key. |
org.apache.xerces.xni.grammars.Grammar |
getGrammar(java.lang.String key)
Returns the grammar associated to the specified key. |
org.apache.xerces.xni.grammars.Grammar |
retrieveGrammar(org.apache.xerces.xni.grammars.XMLGrammarDescription gDesc)
|
org.apache.xerces.xni.grammars.Grammar[] |
retrieveInitialGrammarSet(java.lang.String grammarType)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingParserPool.ShadowedGrammarPool
public CachingParserPool.ShadowedGrammarPool(org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
- Constructs a shadowed grammar pool.
retrieveInitialGrammarSet
public org.apache.xerces.xni.grammars.Grammar[] retrieveInitialGrammarSet(java.lang.String grammarType)
- Overrides:
retrieveInitialGrammarSet
in class XMLGrammarPoolImpl
retrieveGrammar
public org.apache.xerces.xni.grammars.Grammar retrieveGrammar(org.apache.xerces.xni.grammars.XMLGrammarDescription gDesc)
- Overrides:
retrieveGrammar
in class XMLGrammarPoolImpl
cacheGrammars
public void cacheGrammars(java.lang.String grammarType,
org.apache.xerces.xni.grammars.Grammar[] grammars)
- Overrides:
cacheGrammars
in class XMLGrammarPoolImpl
getGrammar
public org.apache.xerces.xni.grammars.Grammar getGrammar(java.lang.String key)
- Returns the grammar associated to the specified key.
- Overrides:
getGrammar
in class XMLGrammarPoolImpl
- Parameters:
key
- The key of the grammar.
containsGrammar
public boolean containsGrammar(java.lang.String key)
- Returns true if the grammar pool contains a grammar associated
to the specified key.
- Overrides:
containsGrammar
in class XMLGrammarPoolImpl
- Parameters:
key
- The key of the grammar.
Copyright © 1999-2002 Apache XML Project. All Rights Reserved.