org.apache.xerces.util
public class ParserConfigurationSettings extends Object implements XMLComponentManager
This class can be constructed with a "parent" settings object
(in the form of an XMLComponentManager
) that allows
parser configuration settings to be "chained" together.
Version: $Id: ParserConfigurationSettings.java,v 1.11 2004/04/25 05:05:50 mrglavas Exp $
Field Summary | |
---|---|
protected HashMap | fFeatures Features. |
protected XMLComponentManager | fParentSettings Parent parser configuration settings. |
protected HashMap | fProperties Properties. |
protected ArrayList | fRecognizedFeatures Recognized features. |
protected ArrayList | fRecognizedProperties Recognized properties. |
protected static String | PARSER_SETTINGS |
Constructor Summary | |
---|---|
ParserConfigurationSettings() Default Constructor. | |
ParserConfigurationSettings(XMLComponentManager parent)
Constructs a parser configuration settings object with a
parent settings object. |
Method Summary | |
---|---|
void | addRecognizedFeatures(String[] featureIds)
Allows a parser to add parser specific features to be recognized
and managed by the parser configuration.
|
void | addRecognizedProperties(String[] propertyIds)
Allows a parser to add parser specific properties to be recognized
and managed by the parser configuration.
|
protected void | checkFeature(String featureId)
Check a feature. |
protected void | checkProperty(String propertyId)
Check a property. |
boolean | getFeature(String featureId)
Returns the state of a feature.
|
Object | getProperty(String propertyId)
Returns the value of a property.
|
void | setFeature(String featureId, boolean state)
Set the state of a feature.
|
void | setProperty(String propertyId, Object value)
setProperty
|
Parameters: featureIds An array of the additional feature identifiers to be recognized.
Parameters: propertyIds An array of the additional property identifiers to be recognized.
Parameters: featureId The unique identifier (URI) of the feature.
Throws: org.apache.xerces.xni.parser.XMLConfigurationException If the requested feature is not known.
Parameters: propertyId The unique identifier (URI) of the property being set.
Throws: org.apache.xerces.xni.parser.XMLConfigurationException If the requested feature is not known.
Parameters: featureId The feature identifier.
Returns: true if the feature is supported
Throws: XMLConfigurationException Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.
Parameters: propertyId The property identifier.
Returns: the value of the property
Throws: XMLConfigurationException Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.
Parameters: featureId The unique identifier (URI) of the feature. state The requested state of the feature (true or false).
Throws: org.apache.xerces.xni.parser.XMLConfigurationException If the requested feature is not known.
Parameters: propertyId value
Throws: org.apache.xerces.xni.parser.XMLConfigurationException If the requested feature is not known.