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.
| Modifier and Type | Field and Description |
|---|---|
| protected Map | fFeatures
Features. |
| protected XMLComponentManager | fParentSettings
Parent parser configuration settings. |
| protected Map | fProperties
Properties. |
| protected List | fRecognizedFeatures
Recognized features. |
| protected List | fRecognizedProperties
Recognized properties. |
| protected static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ParserConfigurationSettings(XMLComponentManager parent)
Constructs a parser configuration settings object with a parent settings object. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addRecognizedFeatures(String[]
An array of the additional feature identifiers
to be recognized. featureIds)Allows a parser to add parser specific features to be recognized and managed by the parser configuration. |
| public void | addRecognizedProperties(String[]
An array of the additional property identifiers
to be recognized. propertyIds)Allows a parser to add parser specific properties to be recognized and managed by the parser configuration. |
| protected FeatureState | |
| protected PropertyState | Returns: the PropertyStateThe unique identifier (URI) of the property
being set. propertyId)Check a property. |
| public boolean | Returns: true if the feature is supportedThe feature identifier. featureId)Implements com. Returns the state of a feature. |
| public final boolean | getFeature(String featureId, boolean defaultValue)
Implements com. Returns the state of a feature. |
| public FeatureState | |
| public Object | Returns: the value of the propertyThe property identifier. propertyId)Implements com. Returns the value of a property. |
| public final Object | getProperty(String propertyId, Object defaultValue)
Implements com. Returns the value of a property. |
| public PropertyState | |
| public void | setFeature(String
The unique identifier (URI) of the feature. featureId, boolean The requested state of the feature (true or false). state)Set the state of a feature. |
| public void |
| fFeatures | back to summary |
|---|---|
| protected Map<String, Boolean> fFeatures Features. | |
| fParentSettings | back to summary |
|---|---|
| protected XMLComponentManager fParentSettings Parent parser configuration settings. | |
| fProperties | back to summary |
|---|---|
| protected Map<String, Object> fProperties Properties. | |
| fRecognizedFeatures | back to summary |
|---|---|
| protected List<String> fRecognizedFeatures Recognized features. | |
| fRecognizedProperties | back to summary |
|---|---|
| protected List<String> fRecognizedProperties Recognized properties. | |
| PARSER_SETTINGS | back to summary |
|---|---|
| protected static final String PARSER_SETTINGS | |
| ParserConfigurationSettings | back to summary |
|---|---|
| public ParserConfigurationSettings() Default Constructor. | |
| ParserConfigurationSettings | back to summary |
|---|---|
| public ParserConfigurationSettings(XMLComponentManager parent) Constructs a parser configuration settings object with a parent settings object. | |
| addRecognizedFeatures | back to summary |
|---|---|
| public void addRecognizedFeatures(String[] featureIds) Allows a parser to add parser specific features to be recognized and managed by the parser configuration.
| |
| addRecognizedProperties | back to summary |
|---|---|
| public void addRecognizedProperties(String[] propertyIds) Allows a parser to add parser specific properties to be recognized and managed by the parser configuration.
| |
| checkFeature | back to summary |
|---|---|
| protected FeatureState checkFeature(String featureId) throws XMLConfigurationException Check a feature. If feature is known and supported, this method simply returns. Otherwise, the appropriate exception is thrown.
| |
| checkProperty | back to summary |
|---|---|
| protected PropertyState checkProperty(String propertyId) throws XMLConfigurationException Check a property. If the property is known and supported, this method simply returns. Otherwise, the appropriate exception is thrown.
| |
| getFeature | back to summary |
|---|---|
| public boolean getFeature(String featureId) throws XMLConfigurationException Implements com. Returns the state of a feature.
| |
| getFeature | back to summary |
|---|---|
| public final boolean getFeature(String featureId, boolean defaultValue) Implements com. Doc from com. Returns the state of a feature. Does not throw exceptions.
| |
| getFeatureState | back to summary |
|---|---|
| public FeatureState getFeatureState(String featureId) Implements com.
| |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String propertyId) throws XMLConfigurationException Implements com. Returns the value of a property.
| |
| getProperty | back to summary |
|---|---|
| public final Object getProperty(String propertyId, Object defaultValue) Implements com. Doc from com. Returns the value of a property. Does not throw exceptions.
| |
| getPropertyState | back to summary |
|---|---|
| public PropertyState getPropertyState(String propertyId) Implements com.
| |
| setFeature | back to summary |
|---|---|
| public void setFeature(String featureId, boolean state) throws XMLConfigurationException 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.
| |
| setProperty | back to summary |
|---|---|
| public void setProperty(String propertyId, Object value) throws XMLConfigurationException setProperty
| |