1 57 58 package com.sun.org.apache.xerces.internal.xni.grammars; 59 60 import com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException; 61 import com.sun.org.apache.xerces.internal.xni.parser.XMLErrorHandler; 62 import com.sun.org.apache.xerces.internal.xni.parser.XMLEntityResolver; 63 import com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource; 64 import com.sun.org.apache.xerces.internal.xni.XNIException; 65 66 import java.io.IOException ; 67 import java.util.Locale ; 68 69 79 80 public interface XMLGrammarLoader { 81 82 87 public String [] getRecognizedFeatures(); 88 89 96 public boolean getFeature(String featureId) 97 throws XMLConfigurationException; 98 99 108 public void setFeature(String featureId, 109 boolean state) throws XMLConfigurationException; 110 111 116 public String [] getRecognizedProperties(); 117 118 125 public Object getProperty(String propertyId) 126 throws XMLConfigurationException; 127 128 137 public void setProperty(String propertyId, 138 Object state) throws XMLConfigurationException; 139 140 148 public void setLocale(Locale locale); 149 150 151 public Locale getLocale(); 152 153 158 public void setErrorHandler(XMLErrorHandler errorHandler); 159 160 161 public XMLErrorHandler getErrorHandler(); 162 163 168 public void setEntityResolver(XMLEntityResolver entityResolver); 169 170 171 public XMLEntityResolver getEntityResolver(); 172 173 183 public Grammar loadGrammar(XMLInputSource source) 184 throws IOException , XNIException; 185 } 187 | Popular Tags |