1 57 package com.sun.org.apache.xerces.internal.jaxp.validation; 58 59 import com.sun.org.apache.xerces.internal.xni.grammars.Grammar; 60 import com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarDescription; 61 import com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarPool; 62 63 70 public class ReadonlyGrammarPool implements XMLGrammarPool { 71 72 private final XMLGrammarPool core; 73 74 public ReadonlyGrammarPool( XMLGrammarPool pool ) { 75 this.core = pool; 76 } 77 78 public void cacheGrammars(String grammarType, Grammar[] grammars) { 79 ; } 81 82 public void clear() { 83 ; } 85 86 public void lockPool() { 87 ; } 89 90 public Grammar retrieveGrammar(XMLGrammarDescription desc) { 91 return core.retrieveGrammar(desc); 92 } 93 94 public Grammar[] retrieveInitialGrammarSet(String grammarType) { 95 return core.retrieveInitialGrammarSet(grammarType); 96 } 97 98 public void unlockPool() { 99 ; } 101 102 } 103 | Popular Tags |