org.apache.xerces.xni.grammars.XMLGrammarLoader |
Known Indirect Subclasses |
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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the registered entity resolver.
| |||||||||||
Returns the registered error handler.
| |||||||||||
Returns the state of a feature.
| |||||||||||
Return the Locale the XMLGrammarLoader is using.
| |||||||||||
Returns the state of a property.
| |||||||||||
Returns a list of feature identifiers that are recognized by
this XMLGrammarLoader.
| |||||||||||
Returns a list of property identifiers that are recognized by
this XMLGrammarLoader.
| |||||||||||
Returns a Grammar object by parsing the contents of the
entity pointed to by source.
| |||||||||||
Sets the entity resolver.
| |||||||||||
Sets the error handler.
| |||||||||||
Sets the state of a feature.
| |||||||||||
Set the locale to use for messages.
| |||||||||||
Sets the state of a property.
|
Returns the state of a feature.
featureId | The feature identifier. |
---|
XMLConfigurationException | Thrown on configuration error. |
---|
Returns the state of a property.
propertyId | The property identifier. |
---|
XMLConfigurationException | Thrown on configuration error. |
---|
Returns a list of feature identifiers that are recognized by this XMLGrammarLoader. This method may return null if no features are recognized.
Returns a list of property identifiers that are recognized by this XMLGrammarLoader. This method may return null if no properties are recognized.
Returns a Grammar object by parsing the contents of the entity pointed to by source.
source | the location of the entity which forms the starting point of the grammar to be constructed. |
---|
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. |
---|---|
XNIException |
Sets the entity resolver.
entityResolver | The new entity resolver. |
---|
Sets the error handler.
errorHandler | The error handler. |
---|
Sets the state of a feature.
featureId | The feature identifier. |
---|---|
state | The state of the feature. |
XMLConfigurationException | Thrown when a feature is not recognized or cannot be set. |
---|
Set the locale to use for messages.
locale | The locale object to use for localization of messages. |
---|
XNIException | Thrown if the parser does not support the specified locale. |
---|
Sets the state of a property.
propertyId | The property identifier. |
---|---|
state | The state of the property. |
XMLConfigurationException | Thrown when a property is not recognized or cannot be set. |
---|