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.XMLGrammarPool
retrieveInitialGrammarSet
in class LSPXMLGrammarPool
public void cacheGrammars(String grammarType, org.apache.xerces.xni.grammars.Grammar[] grammars)
cacheGrammars
in interface org.apache.xerces.xni.grammars.XMLGrammarPool
cacheGrammars
in class LSPXMLGrammarPool
public org.apache.xerces.xni.grammars.Grammar retrieveGrammar(org.apache.xerces.xni.grammars.XMLGrammarDescription desc)
retrieveGrammar
in interface org.apache.xerces.xni.grammars.XMLGrammarPool
retrieveGrammar
in class LSPXMLGrammarPool
public org.apache.xerces.xni.grammars.Grammar removeGrammar(org.apache.xerces.xni.grammars.XMLGrammarDescription desc)
LSPXMLGrammarPool
removeGrammar
in class LSPXMLGrammarPool
desc
- The Grammar Description.public void removeGrammar(String grammarURI)
removeGrammar
in class LSPXMLGrammarPool
public void lockPool()
lockPool
in interface org.apache.xerces.xni.grammars.XMLGrammarPool
lockPool
in class LSPXMLGrammarPool
public void unlockPool()
unlockPool
in interface org.apache.xerces.xni.grammars.XMLGrammarPool
unlockPool
in class LSPXMLGrammarPool
public void clear()
clear
in interface org.apache.xerces.xni.grammars.XMLGrammarPool
clear
in class LSPXMLGrammarPool
public boolean equals(org.apache.xerces.xni.grammars.XMLGrammarDescription desc1, org.apache.xerces.xni.grammars.XMLGrammarDescription desc2)
LSPXMLGrammarPool
equals
in class LSPXMLGrammarPool
desc1
- The grammar descriptiondesc2
- The grammar description of the grammar to be compared topublic int hashCode(org.apache.xerces.xni.grammars.XMLGrammarDescription desc)
LSPXMLGrammarPool
hashCode
in class LSPXMLGrammarPool
desc
- The grammar descriptionpublic boolean setInternalSubset(org.apache.xerces.impl.dtd.XMLDTDDescription grammarDesc, String internalSubset)
LSPXMLGrammarPool
setInternalSubset
in class LSPXMLGrammarPool
grammarDesc
- the XML DTD description.internalSubset
- the internal subset.Copyright © 2022. All rights reserved.