Home » Xerces-J-src.2.9.1 » org.apache.xerces » xni » grammars » [javadoc | source]
org.apache.xerces.xni.grammars
public interface: XMLGrammarLoader [javadoc | source]

All Known Implementing Classes:
    XMLDTDLoader, XMLSchemaLoader, XML11DTDProcessor

The intention of this interface is to provide a generic means by which Grammar objects may be created without parsing instance documents. Implementations of this interface will know how to load specific types of grammars (e.g., DTD's or schemas); a wrapper will be provided for user applications to interact with these implementations.
Method from org.apache.xerces.xni.grammars.XMLGrammarLoader Summary:
getEntityResolver,   getErrorHandler,   getFeature,   getLocale,   getProperty,   getRecognizedFeatures,   getRecognizedProperties,   loadGrammar,   setEntityResolver,   setErrorHandler,   setFeature,   setLocale,   setProperty
Method from org.apache.xerces.xni.grammars.XMLGrammarLoader Detail:
 public XMLEntityResolver getEntityResolver()
    Returns the registered entity resolver.
 public XMLErrorHandler getErrorHandler()
    Returns the registered error handler.
 public boolean getFeature(String featureId) throws XMLConfigurationException
    Returns the state of a feature.
 public Locale getLocale()
    Return the Locale the XMLGrammarLoader is using.
 public Object getProperty(String propertyId) throws XMLConfigurationException
    Returns the state of a property.
 public String[] getRecognizedFeatures()
    Returns a list of feature identifiers that are recognized by this XMLGrammarLoader. This method may return null if no features are recognized.
 public String[] getRecognizedProperties()
    Returns a list of property identifiers that are recognized by this XMLGrammarLoader. This method may return null if no properties are recognized.
 public Grammar loadGrammar(XMLInputSource source) throws IOException, XNIException
    Returns a Grammar object by parsing the contents of the entity pointed to by source.
 public  void setEntityResolver(XMLEntityResolver entityResolver)
    Sets the entity resolver.
 public  void setErrorHandler(XMLErrorHandler errorHandler)
    Sets the error handler.
 public  void setFeature(String featureId,
    boolean state) throws XMLConfigurationException
    Sets the state of a feature.
 public  void setLocale(Locale locale)
    Set the locale to use for messages.
 public  void setProperty(String propertyId,
    Object state) throws XMLConfigurationException
    Sets the state of a property.