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
public abstract class SimpleConfigurable extends java.lang.Object implements Configurable
Provides the ability to configure properties about an object.
-
-
Constructor Summary
Constructors Constructor Description SimpleConfigurable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getProperty(java.lang.String name)
Returns the value of the property identified byname
.void
setProperty(java.lang.String name, java.lang.String value)
Sets the propertyname
to have the value provided invalue
.
-
-
-
Method Detail
-
getProperty
public java.lang.String getProperty(java.lang.String name) throws XMLDBException
Returns the value of the property identified byname
.- Specified by:
getProperty
in 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_ERROR
for any vendor specific errors that occur.
-
setProperty
public void setProperty(java.lang.String name, java.lang.String value) throws XMLDBException
Sets the propertyname
to have the value provided invalue
.- Specified by:
setProperty
in 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_ERROR
for any vendor specific errors that occur.
-
-