1 16 17 package org.apache.xerces.jaxp.validation; 18 19 import org.apache.xerces.xni.grammars.Grammar; 20 import org.apache.xerces.xni.grammars.XMLGrammarDescription; 21 import org.apache.xerces.xni.grammars.XMLGrammarPool; 22 23 30 final class ReadOnlyGrammarPool implements XMLGrammarPool { 31 32 private final XMLGrammarPool core; 33 34 public ReadOnlyGrammarPool( XMLGrammarPool pool ) { 35 this.core = pool; 36 } 37 38 public void cacheGrammars(String grammarType, Grammar[] grammars) { 39 } 41 42 public void clear() { 43 } 45 46 public void lockPool() { 47 } 49 50 public Grammar retrieveGrammar(XMLGrammarDescription desc) { 51 return core.retrieveGrammar(desc); 52 } 53 54 public Grammar[] retrieveInitialGrammarSet(String grammarType) { 55 return core.retrieveInitialGrammarSet(grammarType); 56 } 57 58 public void unlockPool() { 59 } 61 62 } | Popular Tags |