public class LSPXMLGrammarPoolWrapper extends LSPXMLGrammarPool
LSPXMLGrammarPool.Entry| Constructor and Description |
|---|
LSPXMLGrammarPoolWrapper(LSPXMLGrammarPool delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheGrammars(String grammarType,
org.apache.xerces.xni.grammars.Grammar[] grammars) |
void |
clear()
Clear the cached grammar.
|
boolean |
equals(Object obj) |
boolean |
equals(org.apache.xerces.xni.grammars.XMLGrammarDescription desc1,
org.apache.xerces.xni.grammars.XMLGrammarDescription desc2)
This method checks whether two grammars are the same.
|
int |
hashCode() |
int |
hashCode(org.apache.xerces.xni.grammars.XMLGrammarDescription desc)
Returns the hash code value for the given grammar description.
|
void |
lockPool() |
void |
removeGrammar(String grammarURI) |
org.apache.xerces.xni.grammars.Grammar |
removeGrammar(org.apache.xerces.xni.grammars.XMLGrammarDescription desc)
Removes the grammar associated to the specified grammar description from the
grammar pool and returns the removed grammar.
|
org.apache.xerces.xni.grammars.Grammar |
retrieveGrammar(org.apache.xerces.xni.grammars.XMLGrammarDescription desc) |
org.apache.xerces.xni.grammars.Grammar[] |
retrieveInitialGrammarSet(String grammarType) |
boolean |
setInternalSubset(org.apache.xerces.impl.dtd.XMLDTDDescription grammarDesc,
String internalSubset)
Update the DTD internal subset entry for the given XML DTD description and
return true if the cached DTD grammar internal subset is equal to the given
internal subset and false otherwise.
|
String |
toString() |
void |
unlockPool() |
public LSPXMLGrammarPoolWrapper(LSPXMLGrammarPool delegate)
public org.apache.xerces.xni.grammars.Grammar[] retrieveInitialGrammarSet(String grammarType)
retrieveInitialGrammarSet in interface org.apache.xerces.xni.grammars.XMLGrammarPoolretrieveInitialGrammarSet in class LSPXMLGrammarPoolpublic void cacheGrammars(String grammarType, org.apache.xerces.xni.grammars.Grammar[] grammars)
cacheGrammars in interface org.apache.xerces.xni.grammars.XMLGrammarPoolcacheGrammars in class LSPXMLGrammarPoolpublic org.apache.xerces.xni.grammars.Grammar retrieveGrammar(org.apache.xerces.xni.grammars.XMLGrammarDescription desc)
retrieveGrammar in interface org.apache.xerces.xni.grammars.XMLGrammarPoolretrieveGrammar in class LSPXMLGrammarPoolpublic org.apache.xerces.xni.grammars.Grammar removeGrammar(org.apache.xerces.xni.grammars.XMLGrammarDescription desc)
LSPXMLGrammarPoolremoveGrammar in class LSPXMLGrammarPooldesc - The Grammar Description.public void removeGrammar(String grammarURI)
removeGrammar in class LSPXMLGrammarPoolpublic void lockPool()
lockPool in interface org.apache.xerces.xni.grammars.XMLGrammarPoollockPool in class LSPXMLGrammarPoolpublic void unlockPool()
unlockPool in interface org.apache.xerces.xni.grammars.XMLGrammarPoolunlockPool in class LSPXMLGrammarPoolpublic void clear()
clear in interface org.apache.xerces.xni.grammars.XMLGrammarPoolclear in class LSPXMLGrammarPoolpublic boolean equals(org.apache.xerces.xni.grammars.XMLGrammarDescription desc1,
org.apache.xerces.xni.grammars.XMLGrammarDescription desc2)
LSPXMLGrammarPoolequals in class LSPXMLGrammarPooldesc1 - The grammar descriptiondesc2 - The grammar description of the grammar to be compared topublic int hashCode(org.apache.xerces.xni.grammars.XMLGrammarDescription desc)
LSPXMLGrammarPoolhashCode in class LSPXMLGrammarPooldesc - The grammar descriptionpublic boolean setInternalSubset(org.apache.xerces.impl.dtd.XMLDTDDescription grammarDesc,
String internalSubset)
LSPXMLGrammarPoolsetInternalSubset in class LSPXMLGrammarPoolgrammarDesc - the XML DTD description.internalSubset - the internal subset.Copyright © 2024. All rights reserved.