public static final class CachingParserPool.ShadowedGrammarPool extends XMLGrammarPoolImpl
XMLGrammarPoolImpl.EntryfGrammarCount, fGrammars, fPoolIsLocked, TABLE_SIZE| Constructor and Description |
|---|
CachingParserPool.ShadowedGrammarPool(org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
Constructs a shadowed grammar pool.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cacheGrammars(java.lang.String grammarType,
org.apache.xerces.xni.grammars.Grammar[] grammars)
Give the grammarPool the option of caching these grammars.
|
boolean |
containsGrammar(org.apache.xerces.xni.grammars.XMLGrammarDescription desc)
Returns true if the grammar pool contains a grammar associated
to the specified description.
|
org.apache.xerces.xni.grammars.Grammar |
getGrammar(org.apache.xerces.xni.grammars.XMLGrammarDescription desc)
Returns the grammar associated to the specified description.
|
org.apache.xerces.xni.grammars.Grammar |
retrieveGrammar(org.apache.xerces.xni.grammars.XMLGrammarDescription gDesc)
Retrieve a particular grammar.
|
org.apache.xerces.xni.grammars.Grammar[] |
retrieveInitialGrammarSet(java.lang.String grammarType)
Retrieve the initial set of grammars for the validator to work with.
|
clear, equals, hashCode, lockPool, putGrammar, removeGrammar, unlockPoolpublic CachingParserPool.ShadowedGrammarPool(org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
public org.apache.xerces.xni.grammars.Grammar[] retrieveInitialGrammarSet(java.lang.String grammarType)
retrieveInitialGrammarSet in interface org.apache.xerces.xni.grammars.XMLGrammarPoolretrieveInitialGrammarSet in class XMLGrammarPoolImplgrammarType - Type of the grammars to be retrieved.public org.apache.xerces.xni.grammars.Grammar retrieveGrammar(org.apache.xerces.xni.grammars.XMLGrammarDescription gDesc)
retrieveGrammar in interface org.apache.xerces.xni.grammars.XMLGrammarPoolretrieveGrammar in class XMLGrammarPoolImplgDesc - Description of the grammar to be retrievedpublic void cacheGrammars(java.lang.String grammarType,
org.apache.xerces.xni.grammars.Grammar[] grammars)
cacheGrammars in interface org.apache.xerces.xni.grammars.XMLGrammarPoolcacheGrammars in class XMLGrammarPoolImplgrammarType - 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 org.apache.xerces.xni.grammars.Grammar getGrammar(org.apache.xerces.xni.grammars.XMLGrammarDescription desc)
getGrammar in class XMLGrammarPoolImpldesc - The description of the grammar.public boolean containsGrammar(org.apache.xerces.xni.grammars.XMLGrammarDescription desc)
containsGrammar in class XMLGrammarPoolImpldesc - The description of the grammar.Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.