uk.org.ogsadai.client.toolkit.activity.transform
Class StringTokenizerActivity

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

public class StringTokenizerActivity
extends Activity

This activity seperates the blocks of input data it receives into a sequence of tokens for output.

Author:
The OGSA-DAI Project Team

Constructor Summary
StringTokenizerActivity()
          Constructs an activity to tokenize the input.
StringTokenizerActivity(java.lang.String delimiters)
          Constructs an activity to tokenize the input using the specified delimiters.
StringTokenizerActivity(java.lang.String delimiters, ActivityOutput input)
          Constructs a request to perform an aggregation of the blocks generated by the output of another activity.
 
Method Summary
protected  java.lang.String generateXML()
          Generates the XML representing the activity.
 ActivityOutput getOutput()
          Gets the activity's only output.
 void setDelimiters(java.lang.String delimiters)
          Sets the delimiters to use when breaking up the string.
 void setInput(ActivityOutput input)
          Sets the name of the output that will provide the input to this activity.
 
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

StringTokenizerActivity

public StringTokenizerActivity()
Constructs an activity to tokenize the input.


StringTokenizerActivity

public StringTokenizerActivity(java.lang.String delimiters)
Constructs an activity to tokenize the input using the specified delimiters.

Parameters:
delimiters - the delimiters used to separate tokens

StringTokenizerActivity

public StringTokenizerActivity(java.lang.String delimiters,
                               ActivityOutput input)
Constructs a request to perform an aggregation of the blocks generated by the output of another activity.

Parameters:
delimiters - the delimiters used to separate tokens
input - the output from another activity
Method Detail

getOutput

public ActivityOutput getOutput()
Gets the activity's only output.

Returns:
the activity output

setInput

public final void setInput(ActivityOutput input)
Sets the name of the output that will provide the input to this activity.

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

setDelimiters

public final void setDelimiters(java.lang.String delimiters)
Sets the delimiters to use when breaking up the string.

Parameters:
delimiters - String containing the delimiter(s) used for tokenizing

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