uk.org.ogsadai.client.toolkit.activity
Class ExampleActivity

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.activity.RequestComponent
        |
        +--uk.org.ogsadai.client.toolkit.activity.Activity
              |
              +--uk.org.ogsadai.client.toolkit.activity.ExampleActivity

public class ExampleActivity
extends Activity

This is a template class that can be used for writing new client toolkit activity.

Author:
The OGSA-DAI Project Team

Constructor Summary
ExampleActivity(java.lang.String settingA, int settingB)
          Constructs the activity.
 
Method Summary
protected  java.lang.String generateXML()
          Generates the XML representing the activity.
 ActivityOutput getOutput()
          Gets the activity output.
 int getSomething()
          Get the value of some attribute
 void setInput(ActivityOutput input)
          Connected the input of this activity to output of another activity.
 void setSettingC(java.lang.String setting)
           
 
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity
addInput, addOutput, addOutputs, getDataResourceID, getDataServiceStub, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setDataServiceStub, setInput
 
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleActivity

public ExampleActivity(java.lang.String settingA,
                       int settingB)
Constructs the activity.

Method Detail

setSettingC

public void setSettingC(java.lang.String setting)

setInput

public final void setInput(ActivityOutput input)
Connected the input of this activity to output of another activity. By this mechanism, activities can be chained to one another.

Parameters:
input - output from another activity
Throws:
java.lang.IllegalArgumentException - if the argument is null

getOutput

public ActivityOutput getOutput()
Gets the activity output.

Returns:
the activity output

getSomething

public int getSomething()
                 throws DataFormatException,
                        ActivityOutputException
Get the value of some attribute

Returns:
the value of some attribute
DataFormatException
ActivityOutputException

generateXML

protected java.lang.String generateXML()
Description copied from class: RequestComponent
Generates the XML representing the activity. This XML can then be inserted into a perform document that is sent to a data service.

Specified by:
generateXML in class Activity
Returns:
the XML for the activity