java.lang.Object | |
↳ | org.apache.xerces.util.ParserConfigurationSettings |
Known Direct Subclasses |
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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | PARSER_SETTINGS |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
fFeatures | Features. | ||||||||||
fParentSettings | Parent parser configuration settings. | ||||||||||
fProperties | Properties. | ||||||||||
fRecognizedFeatures | Recognized features. | ||||||||||
fRecognizedProperties | Recognized properties. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default Constructor.
| |||||||||||
Constructs a parser configuration settings object with a
parent settings object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Allows a parser to add parser specific features to be recognized
and managed by the parser configuration.
| |||||||||||
Allows a parser to add parser specific properties to be recognized
and managed by the parser configuration.
| |||||||||||
Returns the state of a feature.
| |||||||||||
Returns the value of a property.
| |||||||||||
Set the state of a feature.
| |||||||||||
setProperty
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Check a feature.
| |||||||||||
Check a property.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.xerces.xni.parser.XMLComponentManager
|
Default Constructor.
Constructs a parser configuration settings object with a parent settings object.
Allows a parser to add parser specific features to be recognized and managed by the parser configuration.
featureIds | An array of the additional feature identifiers to be recognized. |
---|
Allows a parser to add parser specific properties to be recognized and managed by the parser configuration.
propertyIds | An array of the additional property identifiers to be recognized. |
---|
Returns the state of a feature.
featureId | The feature identifier. |
---|
XMLConfigurationException | Thrown for configuration error. In general, components should only throw this exception if it is really a critical error. |
---|
Returns the value of a property.
propertyId | The property identifier. |
---|
XMLConfigurationException | Thrown for configuration error. In general, components should only throw this exception if it is really a critical error. |
---|
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.
featureId | The unique identifier (URI) of the feature. |
---|---|
state | The requested state of the feature (true or false). |
XMLConfigurationException | If the requested feature is not known. |
---|
setProperty
XMLConfigurationException | If the requested feature is not known. |
---|
Check a feature. If feature is known and supported, this method simply returns. Otherwise, the appropriate exception is thrown.
featureId | The unique identifier (URI) of the feature. |
---|
XMLConfigurationException | If the requested feature is not known. |
---|
Check a property. If the property is known and supported, this method simply returns. Otherwise, the appropriate exception is thrown.
propertyId | The unique identifier (URI) of the property being set. |
---|
XMLConfigurationException | If the requested feature is not known. |
---|