|
BEA Systems, Inc. | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
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 Summary | |
XMLEntityResolver |
getEntityResolver()
Deprecated. Returns the registered entity resolver. |
XMLErrorHandler |
getErrorHandler()
Deprecated. Returns the registered error handler. |
boolean |
getFeature(String featureId)
Deprecated. Returns the state of a feature. |
Locale |
getLocale()
Deprecated. Return the Locale the XMLGrammarLoader is using. |
Object |
getProperty(String propertyId)
Deprecated. Returns the state of a property. |
String[] |
getRecognizedFeatures()
Deprecated. Returns a list of feature identifiers that are recognized by this XMLGrammarLoader. |
String[] |
getRecognizedProperties()
Deprecated. Returns a list of property identifiers that are recognized by this XMLGrammarLoader. |
Grammar |
loadGrammar(XMLInputSource source)
Deprecated. Returns a Grammar object by parsing the contents of the entity pointed to by source. |
void |
setEntityResolver(XMLEntityResolver entityResolver)
Deprecated. Sets the entity resolver. |
void |
setErrorHandler(XMLErrorHandler errorHandler)
Deprecated. Sets the error handler. |
void |
setFeature(String featureId,
boolean state)
Deprecated. Sets the state of a feature. |
void |
setLocale(Locale locale)
Deprecated. Set the locale to use for messages. |
void |
setProperty(String propertyId,
Object state)
Deprecated. Sets the state of a property. |
| Method Detail |
public XMLEntityResolver getEntityResolver()
public XMLErrorHandler getErrorHandler()
public boolean getFeature(String featureId)
throws XMLConfigurationException
featureId - The feature identifier.
XMLConfigurationException - Thrown on configuration error.public Locale getLocale()
public Object getProperty(String propertyId)
throws XMLConfigurationException
propertyId - The property identifier.
XMLConfigurationException - Thrown on configuration error.public String[] getRecognizedFeatures()
public String[] getRecognizedProperties()
public Grammar loadGrammar(XMLInputSource source)
throws IOException,
XNIException
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.
XNIExceptionpublic void setEntityResolver(XMLEntityResolver entityResolver)
entityResolver - The new entity resolver.public void setErrorHandler(XMLErrorHandler errorHandler)
errorHandler - The error handler.
public void setFeature(String featureId,
boolean state)
throws XMLConfigurationException
featureId - The feature identifier.state - The state of the feature.
XMLConfigurationException - Thrown when a feature is not
recognized or cannot be set.public void setLocale(Locale locale)
locale - The locale object to use for localization of messages.
XNIException - Thrown if the parser does not support the
specified locale.
public void setProperty(String propertyId,
Object state)
throws XMLConfigurationException
propertyId - The property identifier.state - The state of the property.
XMLConfigurationException - Thrown when a property is not
recognized or cannot be set.
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs91 Copyright 2005 BEA Systems Inc. |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||