| java.lang.Object org.apache.xerces.util.ParserConfigurationSettings
All known Subclasses: org.apache.xerces.parsers.XML11Configuration, org.apache.xerces.parsers.BasicParserConfiguration, org.apache.xerces.parsers.XML11NonValidatingConfiguration, org.apache.xerces.jaxp.validation.XMLSchemaValidatorComponentManager, org.apache.xerces.dom.DOMConfigurationImpl, org.apache.xerces.parsers.XML11DTDConfiguration,
ParserConfigurationSettings | public class ParserConfigurationSettings implements XMLComponentManager(Code) | | This class implements the basic operations for managing parser
configuration features and properties. This utility class can
be used as a base class for parser configurations or separately
to encapsulate a number of parser settings as a component
manager.
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.
author: Andy Clark, IBM version: $Id: ParserConfigurationSettings.java 447241 2006-09-18 05:12:57Z mrglavas $ |
Method Summary | |
public void | addRecognizedFeatures(String[] featureIds) Allows a parser to add parser specific features to be recognized
and managed by the parser configuration. | public 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. | public boolean | getFeature(String featureId) Returns the state of a feature.
Parameters: featureId - The feature identifier. | public Object | getProperty(String propertyId) Returns the value of a property.
Parameters: propertyId - The property identifier. | public void | setFeature(String featureId, boolean state) Set the state of a feature.
Set the state of any feature in a SAX2 parser. | public void | setProperty(String propertyId, Object value) |
PARSER_SETTINGS | final protected static String PARSER_SETTINGS(Code) | | |
fRecognizedFeatures | protected ArrayList fRecognizedFeatures(Code) | | Recognized features.
|
fRecognizedProperties | protected ArrayList fRecognizedProperties(Code) | | Recognized properties.
|
ParserConfigurationSettings | public ParserConfigurationSettings()(Code) | | Default Constructor.
|
ParserConfigurationSettings | public ParserConfigurationSettings(XMLComponentManager parent)(Code) | | Constructs a parser configuration settings object with a
parent settings object.
|
addRecognizedFeatures | public void addRecognizedFeatures(String[] featureIds)(Code) | | Allows a parser to add parser specific features to be recognized
and managed by the parser configuration.
Parameters: featureIds - An array of the additional feature identifiers to be recognized. |
addRecognizedProperties | public void addRecognizedProperties(String[] propertyIds)(Code) | | Allows a parser to add parser specific properties to be recognized
and managed by the parser configuration.
Parameters: propertyIds - An array of the additional property identifiers to be recognized. |
getFeature | public boolean getFeature(String featureId) throws XMLConfigurationException(Code) | | Returns the state of a feature.
Parameters: featureId - The feature identifier. true if the feature is supported throws: XMLConfigurationException - Thrown for configuration error.In general, components shouldonly throw this exception ifit is reallya critical error. |
getProperty | public Object getProperty(String propertyId) throws XMLConfigurationException(Code) | | Returns the value of a property.
Parameters: propertyId - The property identifier. the value of the property throws: XMLConfigurationException - Thrown for configuration error.In general, components shouldonly throw this exception ifit is reallya critical error. |
setFeature | public void setFeature(String featureId, boolean state) throws XMLConfigurationException(Code) | | Set the state of a feature.
Set the state of any feature in a SAX2 parser. The parser
might not recognize the feature, and if it does recognize
it, it might not be able to fulfill the request.
Parameters: featureId - The unique identifier (URI) of the feature. Parameters: state - The requested state of the feature (true or false). exception: org.apache.xerces.xni.parser.XMLConfigurationException - If therequested feature is not known. |
|
|