FileDocCategorySizeDatePackage
ReadOnlyGrammarPool.javaAPI DocJava SE 6 API1994Tue Jun 10 00:22:48 BST 2008com.sun.org.apache.xerces.internal.jaxp.validation

ReadOnlyGrammarPool

public final class ReadOnlyGrammarPool extends Object implements 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,v 1.1.4.1 2005/09/09 10:11:39 sunithareddy Exp $

Fields Summary
private final XMLGrammarPool
core
Constructors Summary
public ReadOnlyGrammarPool(XMLGrammarPool pool)

        this.core = pool;
    
Methods Summary
public voidcacheGrammars(java.lang.String grammarType, com.sun.org.apache.xerces.internal.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 com.sun.org.apache.xerces.internal.xni.grammars.GrammarretrieveGrammar(com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarDescription desc)

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

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

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