org.semwebcentral.sweetrules.infrastructure
Class SweetInvocationDescriptor

java.lang.Object
  extended byorg.semwebcentral.sweetrules.infrastructure.SweetInvocationDescriptor
All Implemented Interfaces:
ISweetInvocationDescriptor

public class SweetInvocationDescriptor
extends java.lang.Object
implements ISweetInvocationDescriptor

Created on Nov 15, 2004 An implementation of the Invocation descriptor In this implementation only String option, value pairs are supported

Author:
Shashidhara K Ganjugunte, Dr. Benjamin Grosof, Dr. Said Tabet, Chitravanu Neogy

Field Summary
private  java.util.Properties optionNameValueStore
          The option name value stored as a property object
 
Fields inherited from interface org.semwebcentral.sweetrules.infrastructure.ISweetInvocationDescriptor
FORCE_INVOKE_COURTEOUS_COMPILER_OPTIONNAME, RESET_FORCE_INVOKE_COURTEOUS_COMPILER, SET_FORCE_INVOKE_COURTEOUS_COMPILER
 
Constructor Summary
SweetInvocationDescriptor()
          The invocation descriptor constructor
 
Method Summary
 java.lang.Object clone()
          The clone method to clone this object
 java.lang.Object retrieveOption(java.lang.Object optionName)
          Retreives the stored value for the stored option
 void storeOption(java.lang.Object optionName, java.lang.Object optionValue)
          Stores the specified option
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

optionNameValueStore

private java.util.Properties optionNameValueStore
The option name value stored as a property object

Constructor Detail

SweetInvocationDescriptor

public SweetInvocationDescriptor()
The invocation descriptor constructor

Method Detail

storeOption

public void storeOption(java.lang.Object optionName,
                        java.lang.Object optionValue)
Description copied from interface: ISweetInvocationDescriptor
Stores the specified option

Specified by:
storeOption in interface ISweetInvocationDescriptor
Parameters:
optionName - The name of the option to be stored
optionValue - The value of the option

retrieveOption

public java.lang.Object retrieveOption(java.lang.Object optionName)
Description copied from interface: ISweetInvocationDescriptor
Retreives the stored value for the stored option

Specified by:
retrieveOption in interface ISweetInvocationDescriptor
Parameters:
optionName - The option name whose value is to be retrieved
Returns:
The value for stored option name

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
The clone method to clone this object

Specified by:
clone in interface ISweetInvocationDescriptor
Returns:
The cloned object
Throws:
java.lang.CloneNotSupportedException - if an error occurs