Package org.xmldb.api.base
Interface Configurable
-
- All Known Subinterfaces:
Collection,CollectionManagementService,Database,Service,TransactionService,XPathQueryService,XQueryService,XUpdateQueryService
- All Known Implementing Classes:
CollectionImpl,CollectionManagementServiceImpl,DatabaseImpl,SimpleCollection,SimpleConfigurable,SimpleDatabase,SimpleTransactionService,SimpleXPathQueryService,TransactionServiceImpl,XPathQueryServiceImpl
public interface ConfigurableProvides the ability to configure properties about an object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetProperty(java.lang.String name)Returns the value of the property identified byname.voidsetProperty(java.lang.String name, java.lang.String value)Sets the propertynameto have the value provided invalue.
-
-
-
Method Detail
-
getProperty
java.lang.String getProperty(java.lang.String name) throws XMLDBExceptionReturns the value of the property identified byname.- 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
void setProperty(java.lang.String name, java.lang.String value) throws XMLDBExceptionSets the propertynameto have the value provided invalue.- 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.
-
-