java.lang.Object | |
↳ | org.apache.xerces.parsers.CachingParserPool.SynchronizedGrammarPool |
Synchronized grammar pool.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a synchronized grammar pool.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
return the final set of grammars that the validator ended up with. | |||||||||||
clear the grammar pool
| |||||||||||
lock the grammar pool
| |||||||||||
This method requests that the application retrieve a grammar corresponding to the given GrammarIdentifier from its cache. | |||||||||||
retrieve the initial known set of grammars. | |||||||||||
unlock the grammar pool
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.xerces.xni.grammars.XMLGrammarPool
|
Constructs a synchronized grammar pool.
return the final set of grammars that the validator ended up with. This method is called after the validation finishes. The application may then choose to cache some of the returned grammars.
grammarType | the type of the grammars being returned; |
---|---|
grammars | an array containing the set of grammars being returned; order is not significant. |
clear the grammar pool
lock the grammar pool
This method requests that the application retrieve a grammar corresponding to the given GrammarIdentifier from its cache. If it cannot do so it must return null; the parser will then call the EntityResolver. An application must not call its EntityResolver itself from this method; this may result in infinite recursions.
gDesc | The description of the Grammar being requested. |
---|
retrieve the initial known set of grammars. this method is called by a validator before the validation starts. the application can provide an initial set of grammars available to the current validation attempt.
grammarType | the type of the grammar, from the
org.apache.xerces.xni.grammars.Grammar interface. |
---|
unlock the grammar pool