Package org.xmldb.api.sdk
Class SimpleConfigurable
java.lang.Object
org.xmldb.api.sdk.SimpleConfigurable
- All Implemented Interfaces:
Configurable
- Direct Known Subclasses:
CollectionManagementServiceImpl,SimpleCollection,SimpleDatabase,SimpleTransactionService,SimpleXPathQueryService,TransactionServiceImpl
Provides the ability to configure properties about an object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProperty(String name) Returns the value of the property identified byname.voidsetProperty(String name, String value) Sets the propertynameto have the value provided invalue.
-
Constructor Details
-
SimpleConfigurable
public SimpleConfigurable()
-
-
Method Details
-
getProperty
Returns the value of the property identified byname.- Specified by:
getPropertyin interfaceConfigurable- Parameters:
name- the name of the property to retrieve.- Returns:
- the property value or null if no property exists.
- Throws:
XMLDBException- with expected error codes.
ErrorCodes.VENDOR_ERRORfor any vendor specific errors that occur.
-
setProperty
Sets the propertynameto have the value provided invalue.- Specified by:
setPropertyin interfaceConfigurable- Parameters:
name- the name of the property to set.value- the value to set for the property.- Throws:
XMLDBException- with expected error codes.
ErrorCodes.VENDOR_ERRORfor any vendor specific errors that occur.
-