|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.validation.GrammarPool
Wrapper around the Xerces XMLGrammarPoolImpl, so debugging of actions can be monitored. Javadoc copied from xml.apache.org.
XMLGrammarPool
Constructor Summary | |
GrammarPool()
Constructs a grammar pool with a default number of buckets. |
|
GrammarPool(org.apache.xerces.xni.grammars.XMLGrammarPool pool)
Constructs a grammar pool with a default number of buckets. |
Method Summary | |
void |
cacheGrammars(java.lang.String type,
org.apache.xerces.xni.grammars.Grammar[] grammar)
Return the final set of grammars that the validator ended up with. |
void |
clear()
Removes all grammars from the pool. |
void |
lockPool()
Causes the XMLGrammarPool not to store any grammars when the cacheGrammars(String, Grammar[[]) method is called. |
org.apache.xerces.xni.grammars.Grammar |
retrieveGrammar(org.apache.xerces.xni.grammars.XMLGrammarDescription xgd)
This method requests that the application retrieve a grammar corresponding to the given GrammarIdentifier from its cache. |
org.apache.xerces.xni.grammars.Grammar[] |
retrieveInitialGrammarSet(java.lang.String type)
Retrieve the initial known set of grammars. |
void |
unlockPool()
Allows the XMLGrammarPool to store grammars when its cacheGrammars(String, Grammar[]) method is called. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GrammarPool()
public GrammarPool(org.apache.xerces.xni.grammars.XMLGrammarPool pool)
Method Detail |
public org.apache.xerces.xni.grammars.Grammar[] retrieveInitialGrammarSet(java.lang.String type)
retrieveInitialGrammarSet
in interface org.apache.xerces.xni.grammars.XMLGrammarPool
type
- The type of the grammar, from the
org.apache.xerces.xni.grammars.Grammar interface.
public void cacheGrammars(java.lang.String type, org.apache.xerces.xni.grammars.Grammar[] grammar)
cacheGrammars
in interface org.apache.xerces.xni.grammars.XMLGrammarPool
type
- The type of the grammars being returnedgrammar
- an array containing the set of grammars being
returned; order is not significant.public void unlockPool()
unlockPool
in interface org.apache.xerces.xni.grammars.XMLGrammarPool
public org.apache.xerces.xni.grammars.Grammar retrieveGrammar(org.apache.xerces.xni.grammars.XMLGrammarDescription xgd)
retrieveGrammar
in interface org.apache.xerces.xni.grammars.XMLGrammarPool
xgd
- The description of the Grammar being requested.
public void lockPool()
lockPool
in interface org.apache.xerces.xni.grammars.XMLGrammarPool
public void clear()
clear
in interface org.apache.xerces.xni.grammars.XMLGrammarPool
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |