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 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 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 void | |
| protected void | checkProperty(String
The 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 org. |
| public Object | Returns: the value of the propertyThe property identifier. propertyId)Implements org. |
| 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 HashMap<K, V> fFeatures Features. | |
| fParentSettings | back to summary |
|---|---|
| protected XMLComponentManager fParentSettings Parent parser configuration settings. | |
| fProperties | back to summary |
|---|---|
| protected HashMap<K, V> fProperties Properties. | |
| fRecognizedFeatures | back to summary |
|---|---|
| protected ArrayList<E> fRecognizedFeatures Recognized features. | |
| fRecognizedProperties | back to summary |
|---|---|
| protected ArrayList<E> 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 void 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 void 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 org. Returns the state of a feature.
| |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String propertyId) throws XMLConfigurationException Implements org. Returns the value of a property.
| |
| 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
| |