public interface XMLComponent
XMLComponentManager
Modifier and Type | Method and Description |
---|---|
Boolean |
getFeatureDefault(String featureId)
Returns the default state for a feature, or null if this
component does not want to report a default value for this
feature.
|
Object |
getPropertyDefault(String propertyId)
Returns the default state for a property, or null if this
component does not want to report a default value for this
property.
|
String[] |
getRecognizedFeatures()
Returns a list of feature identifiers that are recognized by
this component.
|
String[] |
getRecognizedProperties()
Returns a list of property identifiers that are recognized by
this component.
|
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.XMLConfigurationException
String[] 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 © 2017 JBoss by Red Hat. All rights reserved.