org.sixdml.excelon
Class xlnServiceBase

java.lang.Object
  |
  +--org.sixdml.excelon.xlnServiceBase
All Implemented Interfaces:
Configurable, Service, SixdmlConstants
Direct Known Subclasses:
xlnNamespaceAwareService, xlnSixdmlCollectionManagementService, xlnSixdmlTransactionService, xlnXsltTransformService

public abstract class xlnServiceBase
extends Object
implements Service, SixdmlConstants

  
 xlnServiceBase.java

 Base class of all services in the org.sixdml.excelon hierarchy. 
 
 Created: Tue Feb 04 04:07:37 2002

 

Version:
1.0
Author:
Dare Obasanjo

Field Summary
protected  org.sixdml.excelon.xlnSixdmlCollection collection
          The underlying collection object that provides the context for this service, if any.
protected  HashMap properties
          This is the table of properties for the needed by the Configurable interface.
 
Fields inherited from interface org.sixdml.SixdmlConstants
SIXDML_NS, SIXDML_VERSION
 
Constructor Summary
xlnServiceBase()
           
 
Method Summary
abstract  String getName()
          Gets the name of the service.
 String getProperty(String name)
          Returns the value of the property identified by name.
 String getVersion()
          Gets the version of the service.
 void setCollection(Collection col)
          Sets the Collection attribute of the Service object.
 void setProperty(String name, String value)
          Sets the property name to have the value provided in value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

collection

protected org.sixdml.excelon.xlnSixdmlCollection collection
The underlying collection object that provides the context for this service, if any.


properties

protected HashMap properties
This is the table of properties for the needed by the Configurable interface.

See Also:
Configurable
Constructor Detail

xlnServiceBase

public xlnServiceBase()
Method Detail

setCollection

public void setCollection(Collection col)
Sets the Collection attribute of the Service object. Does nothing because transactions exist across sessions and are not specific to collections.

Specified by:
setCollection in interface Service

getName

public abstract String getName()
Gets the name of the service.

Specified by:
getName in interface Service
Returns:
the name of the service.

getVersion

public String getVersion()
Gets the version of the service.

Specified by:
getVersion in interface Service
Returns:
the version of the service.

getProperty

public String getProperty(String name)
Returns the value of the property identified by name.

Specified by:
getProperty in interface Configurable
Returns:
the value of the property or null if there is no matching value for the key in hash table.

setProperty

public void setProperty(String name,
                        String value)
Sets the property name to have the value provided in value.

Specified by:
setProperty in interface Configurable
Parameters:
name - the name of the property to set.
value - the value to set for the property.