public static final class CachingParserPool.ShadowedGrammarPool extends XMLGrammarPoolImpl
XMLGrammarPoolImpl.EntryfGrammarCount, fGrammars, fPoolIsLocked, TABLE_SIZE| Constructor and Description |
|---|
ShadowedGrammarPool(XMLGrammarPool grammarPool)
Constructs a shadowed grammar pool.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cacheGrammars(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(String grammarType)
Retrieve the initial set of grammars for the validator to work with.
|
clear, equals, hashCode, lockPool, putGrammar, removeGrammar, unlockPoolpublic ShadowedGrammarPool(XMLGrammarPool grammarPool)
public Grammar[] retrieveInitialGrammarSet(String grammarType)
retrieveInitialGrammarSet in interface XMLGrammarPoolretrieveInitialGrammarSet in class XMLGrammarPoolImplgrammarType - Type of the grammars to be retrieved.public Grammar retrieveGrammar(XMLGrammarDescription gDesc)
retrieveGrammar in interface XMLGrammarPoolretrieveGrammar in class XMLGrammarPoolImplgDesc - Description of the grammar to be retrievedpublic void cacheGrammars(String grammarType, Grammar[] grammars)
cacheGrammars in interface 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 Grammar getGrammar(XMLGrammarDescription desc)
getGrammar in class XMLGrammarPoolImpldesc - The description of the grammar.public boolean containsGrammar(XMLGrammarDescription desc)
containsGrammar in class XMLGrammarPoolImpldesc - The description of the grammar.Copyright © 2017 JBoss by Red Hat. All rights reserved.