Xindice API
version 1.1

org.apache.xindice.client.xmldb
Class CommonConfigurable

java.lang.Object
  |
  +--org.apache.xindice.client.xmldb.CommonConfigurable
All Implemented Interfaces:
org.xmldb.api.base.Configurable
Direct Known Subclasses:
CollectionManagementServiceImpl, DatabaseImpl, DatabaseImpl, DatabaseImpl, MetaService, QueryService, XindiceCollection

public abstract class CommonConfigurable
extends Object
implements org.xmldb.api.base.Configurable

Base class to handle property managment within the API implementation.

Version:
$Revision: 511426 $, $Date: 2007-02-24 22:25:02 -0500 (Sat, 24 Feb 2007) $

Field Summary
protected  Hashtable config
           
 
Constructor Summary
CommonConfigurable()
          Constructor for the CommonConfigurable object
CommonConfigurable(CommonConfigurable commonConfigurable)
          Constructor for the CommonConfigurable object
 
Method Summary
 String getProperty(String name)
          Gets the Property associated with name
 void setProperty(String name, String value)
          Sets a property value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

protected Hashtable config
Constructor Detail

CommonConfigurable

public CommonConfigurable()
Constructor for the CommonConfigurable object

CommonConfigurable

public CommonConfigurable(CommonConfigurable commonConfigurable)
Constructor for the CommonConfigurable object
Parameters:
commonConfigurable - from which the initial properties for this object are copied.
Method Detail

setProperty

public void setProperty(String name,
                        String value)
                 throws org.xmldb.api.base.XMLDBException
Sets a property value. If the property doesn't exist it is created, if it does exist it is overwritten.
Specified by:
setProperty in interface org.xmldb.api.base.Configurable
Parameters:
name - The Property name
value - The new Property value
Throws:
org.xmldb.api.base.XMLDBException -  

getProperty

public String getProperty(String name)
                   throws org.xmldb.api.base.XMLDBException
Gets the Property associated with name
Specified by:
getProperty in interface org.xmldb.api.base.Configurable
Parameters:
name - The name of the property to retrieve.
Returns:
The Property value
Throws:
org.xmldb.api.base.XMLDBException -  

Xindice API
version 1.1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.