FileDocCategorySizeDatePackage
ReadOnlyGrammarPool.javaAPI DocApache Xerces 3.0.12165Fri Sep 14 20:33:52 BST 2007org.apache.xerces.jaxp.validation

ReadOnlyGrammarPool

public final class ReadOnlyGrammarPool extends Object implements org.apache.xerces.xni.grammars.XMLGrammarPool

Filter {@link XMLGrammarPool} that exposes a read-only view of the underlying pool.

author
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
version
$Id: ReadOnlyGrammarPool.java 447235 2006-09-18 05:01:44Z mrglavas $

Fields Summary
private final org.apache.xerces.xni.grammars.XMLGrammarPool
core
Constructors Summary
public ReadOnlyGrammarPool(org.apache.xerces.xni.grammars.XMLGrammarPool pool)

        this.core = pool;
    
Methods Summary
public voidcacheGrammars(java.lang.String grammarType, org.apache.xerces.xni.grammars.Grammar[] grammars)

        // noop. don't let caching to happen
    
public voidclear()

        // noop. cache is read-only.
    
public voidlockPool()

        // noop. this pool is always read-only
    
public org.apache.xerces.xni.grammars.GrammarretrieveGrammar(org.apache.xerces.xni.grammars.XMLGrammarDescription desc)

        return core.retrieveGrammar(desc);
    
public org.apache.xerces.xni.grammars.Grammar[]retrieveInitialGrammarSet(java.lang.String grammarType)

        return core.retrieveInitialGrammarSet(grammarType);
    
public voidunlockPool()

        // noop. this pool is always read-only.