public interface XMLComponent
XMLComponentManager| Modifier and Type | Method and Description |
|---|---|
Boolean |
getFeatureDefault(String featureId) |
Object |
getPropertyDefault(String propertyId) |
String[] |
getRecognizedFeatures() |
String[] |
getRecognizedProperties() |
void |
reset(XMLComponentManager componentManager)
Resets the component.
|
void |
setFeature(String featureId,
boolean state)
Sets the state of a feature.
|
void |
setProperty(String propertyId,
Object value)
Sets the value of a property.
|
void reset(XMLComponentManager componentManager) throws XMLConfigurationException
componentManager - The component manager.XNIException - Thrown by component on initialization error.XMLConfigurationExceptionString[] getRecognizedFeatures()
void setFeature(String featureId, boolean state) throws XMLConfigurationException
Note: Components should silently ignore features that do not affect the operation of the component.
featureId - The feature identifier.state - The state of the feature.XMLConfigurationException - Thrown for configuration error. In general,
components should only throw this exception
if it is really a critical
error.String[] getRecognizedProperties()
void setProperty(String propertyId, Object value) throws XMLConfigurationException
Note: Components should silently ignore properties that do not affect the operation of the component.
propertyId - The property identifier.value - The value of the property.XMLConfigurationException - Thrown for configuration error. In general,
components should only throw this exception
if it is really a critical
error.Boolean getFeatureDefault(String featureId)
featureId - The feature identifier.Copyright © 2024 HtmlUnit. All rights reserved.