|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.exist.validation.GrammarPool
public class GrammarPool
Wrapper around the Xerces XMLGrammarPoolImpl, so debugging of actions can be monitored. Javadoc copied from xml.apache.org.
XMLGrammarPool,
XMLGrammarPoolImpl,
Grammar,
XMLGrammarDescription| Constructor Summary | |
|---|---|
GrammarPool()
Constructs a grammar pool with a default number of buckets. |
|
GrammarPool(XMLGrammarPool pool)
Constructs a grammar pool with a default number of buckets. |
|
| Method Summary | |
|---|---|
void |
cacheGrammars(String type,
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. |
Grammar |
retrieveGrammar(XMLGrammarDescription xgd)
This method requests that the application retrieve a grammar corresponding to the given GrammarIdentifier from its cache. |
Grammar[] |
retrieveInitialGrammarSet(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(XMLGrammarPool pool)
| Method Detail |
|---|
public Grammar[] retrieveInitialGrammarSet(String type)
retrieveInitialGrammarSet in interface XMLGrammarPooltype - The type of the grammar, from the
org.apache.xerces.xni.grammars.Grammar interface.
XMLGrammarPool.retrieveInitialGrammarSet(String)
public void cacheGrammars(String type,
Grammar[] grammar)
cacheGrammars in interface XMLGrammarPooltype - The type of the grammars being returnedgrammar - an array containing the set of grammars being
returned; order is not significant.XMLGrammarPool.cacheGrammars(String,Grammar[])public void unlockPool()
unlockPool in interface XMLGrammarPoolXMLGrammarPool.unlockPool()public Grammar retrieveGrammar(XMLGrammarDescription xgd)
retrieveGrammar in interface XMLGrammarPoolxgd - The description of the Grammar being requested.
XMLGrammarPool.retrieveGrammar(XMLGrammarDescription)public void lockPool()
lockPool in interface XMLGrammarPoolXMLGrammarPool.lockPool()public void clear()
clear in interface XMLGrammarPoolXMLGrammarPool.clear()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||