|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides setters and getters for metadata (features or properties) associated to an object.
The set of supported features and properties depends on vendors implementation.
For some objects, some configuration data may not be changed after the object creation.
An XMLDBCNotRecognizedException or XMLDBCNotSupportedException will be thrown if an object does not
support a metadata method.
Method Summary | |
boolean |
getFeature(java.lang.String featureId)
Get the state of a configuration feature. |
java.lang.String[] |
getFeatureList()
Get the list of supported configuration features |
java.lang.Object |
getProperty(java.lang.String propertyId)
Get the value of a configuration property (only properties set in this configuration). |
java.lang.String[] |
getPropertyList()
Get the list of supported properties |
void |
setFeature(java.lang.String featureId,
boolean state)
Set the state of a configuration feature. |
void |
setProperty(java.lang.String propertyId,
java.lang.Object value)
Set the state of a configuration property. |
Method Detail |
public void setFeature(java.lang.String featureId, boolean state) throws XMLDBCNotRecognizedException, XMLDBCNotSupportedException
featureId
- The unique identifier (URI) of the feature.state
- The requested state of the feature (true or false).
XMLDBCNotRecognizedException
- if feature does not exist for this object.
XMLDBCNotSupportedException
- if state for the feature is not supported by this object.public boolean getFeature(java.lang.String featureId) throws XMLDBCNotRecognizedException
featureId
- The unique identifier (URI) of the feature to get.
XMLDBCNotRecognizedException
- if feature does not exist for this object.public java.lang.String[] getFeatureList()
public void setProperty(java.lang.String propertyId, java.lang.Object value) throws XMLDBCNotRecognizedException, XMLDBCNotSupportedException
propertyId
- The unique identifier (URI) of the property.value
- The requested value of the property (can be null).
XMLDBCNotRecognizedException
- if property does not exist for this driver.
XMLDBCNotSupportedException
- if value for the property is not supported by this object.public java.lang.Object getProperty(java.lang.String propertyId) throws XMLDBCNotRecognizedException
propertyId
- The unique identifier (URI) of the feature to get.
XMLDBCNotRecognizedException
- if property does not exist for this object.public java.lang.String[] getPropertyList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |