1 16 17 package org.apache.xerces.xni.grammars; 18 19 import org.apache.xerces.xni.parser.XMLConfigurationException; 20 import org.apache.xerces.xni.parser.XMLErrorHandler; 21 import org.apache.xerces.xni.parser.XMLEntityResolver; 22 import org.apache.xerces.xni.parser.XMLInputSource; 23 import org.apache.xerces.xni.XNIException; 24 25 import java.io.IOException ; 26 import java.util.Locale ; 27 28 38 39 public interface XMLGrammarLoader { 40 41 46 public String [] getRecognizedFeatures(); 47 48 55 public boolean getFeature(String featureId) 56 throws XMLConfigurationException; 57 58 67 public void setFeature(String featureId, 68 boolean state) throws XMLConfigurationException; 69 70 75 public String [] getRecognizedProperties(); 76 77 84 public Object getProperty(String propertyId) 85 throws XMLConfigurationException; 86 87 96 public void setProperty(String propertyId, 97 Object state) throws XMLConfigurationException; 98 99 107 public void setLocale(Locale locale); 108 109 110 public Locale getLocale(); 111 112 117 public void setErrorHandler(XMLErrorHandler errorHandler); 118 119 120 public XMLErrorHandler getErrorHandler(); 121 122 127 public void setEntityResolver(XMLEntityResolver entityResolver); 128 129 130 public XMLEntityResolver getEntityResolver(); 131 132 142 public Grammar loadGrammar(XMLInputSource source) 143 throws IOException , XNIException; 144 } 146 | Popular Tags |