FileDocCategorySizeDatePackage
ReadonlyGrammarPool.javaAPI DocJava SE 5 API3969Fri Aug 26 14:55:54 BST 2005com.sun.org.apache.xerces.internal.jaxp.validation

ReadonlyGrammarPool

public 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)

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.