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.
| Constructor and Description |
|---|
ParserConfigurationSettings() |
| Modifier and Type | Method and Description |
|---|---|
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) |
Object |
getProperty(String propertyId) |
void |
setFeature(String featureId,
boolean state)
Set the state of a feature.
|
void |
setProperty(String propertyId,
Object value)
setProperty
|
public void addRecognizedFeatures(String[] featureIds)
featureIds - An array of the additional feature identifiers to be
recognized.public void setFeature(String featureId, boolean state) throws XMLConfigurationException
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.public void addRecognizedProperties(String[] propertyIds)
propertyIds - An array of the additional property identifiers to be
recognized.public void setProperty(String propertyId, Object value) throws XMLConfigurationException
propertyId - the property idvalue - the valueXMLConfigurationException - If
the requested feature is not known.public boolean getFeature(String featureId) throws XMLConfigurationException
getFeature in interface XMLComponentManagerfeatureId - The feature identifier.XMLConfigurationException - Thrown on configuration error.public Object getProperty(String propertyId) throws XMLConfigurationException
getProperty in interface XMLComponentManagerpropertyId - The property identifier.XMLConfigurationException - Thrown on configuration error.protected void checkFeature(String featureId) throws XMLConfigurationException
featureId - The unique identifier (URI) of the feature.XMLConfigurationException - If
the requested feature is not known.protected void checkProperty(String propertyId) throws XMLConfigurationException
propertyId - The unique identifier (URI) of the property being set.XMLConfigurationException - If
the requested feature is not known.Copyright © 2024 HtmlUnit. All rights reserved.