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.
author: Neil Graham, IBM version: $Id: XMLGrammarLoader.java 447245 2006-09-18 05:22:10Z mrglavas $
Returns a Grammar object by parsing the contents of the
entity pointed to by source.
Parameters: source - the location of the entity which formsthe starting point of the grammar to be constructed. throws: IOException - When a problem is encountered reading the entityXNIException When a condition arises (such as a FatalError) that requires parsingof the entity be terminated.
Sets the state of a feature.
Parameters: featureId - The feature identifier. Parameters: state - The state of the feature. throws: XMLConfigurationException - Thrown when a feature is notrecognized or cannot be set.
Set the locale to use for messages.
Parameters: locale - The locale object to use for localization of messages. exception: XNIException - Thrown if the parser does not support thespecified locale.
Sets the state of a property.
Parameters: propertyId - The property identifier. Parameters: state - The state of the property. throws: XMLConfigurationException - Thrown when a property is notrecognized or cannot be set.