org.apache.xerces.xni.grammars
public interface XMLGrammarLoader
Version: $Id: XMLGrammarLoader.java,v 1.2 2004/02/24 23:15:58 mrglavas Exp $
Method Summary | |
---|---|
XMLEntityResolver | getEntityResolver() Returns the registered entity resolver. |
XMLErrorHandler | getErrorHandler() Returns the registered error handler. |
boolean | getFeature(String featureId)
Returns the state of a feature.
|
Locale | getLocale() Return the Locale the XMLGrammarLoader is using. |
Object | getProperty(String propertyId)
Returns the state of a property.
|
String[] | getRecognizedFeatures()
Returns a list of feature identifiers that are recognized by
this XMLGrammarLoader. |
String[] | getRecognizedProperties()
Returns a list of property identifiers that are recognized by
this XMLGrammarLoader. |
Grammar | loadGrammar(XMLInputSource source)
Returns a Grammar object by parsing the contents of the
entity pointed to by source.
|
void | setEntityResolver(XMLEntityResolver entityResolver)
Sets the entity resolver.
|
void | setErrorHandler(XMLErrorHandler errorHandler)
Sets the error handler.
|
void | setFeature(String featureId, boolean state)
Sets the state of a feature.
|
void | setLocale(Locale locale)
Set the locale to use for messages.
|
void | setProperty(String propertyId, Object state)
Sets the state of a property.
|
Parameters: featureId The feature identifier.
Throws: XMLConfigurationException Thrown on configuration error.
Parameters: propertyId The property identifier.
Throws: XMLConfigurationException Thrown on configuration error.
Parameters: source the location of the entity which forms the starting point of the grammar to be constructed.
Throws: IOException When a problem is encountered reading the entity XNIException When a condition arises (such as a FatalError) that requires parsing of the entity be terminated.
Parameters: entityResolver The new entity resolver.
Parameters: errorHandler The error handler.
Parameters: featureId The feature identifier. state The state of the feature.
Throws: XMLConfigurationException Thrown when a feature is not recognized or cannot be set.
Parameters: locale The locale object to use for localization of messages.
Throws: XNIException Thrown if the parser does not support the specified locale.
Parameters: propertyId The property identifier. state The state of the property.
Throws: XMLConfigurationException Thrown when a property is not recognized or cannot be set.