|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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
This activity separates string blocks it receives into smaller blocks based upon a set of delimiters.
This activity has one input - the data to be tokenized - and one output - the tokenized data.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private java.lang.String |
mDelimiters
The delimiters to break up each block into sub-blocks |
| Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
| Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
| 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 an activity to tokenize the input using the specified delimiters. |
|
| Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
ActivityOutput |
getOutput()
Gets the activity's only output - the tokenized data. |
void |
setDelimiters(java.lang.String delimiters)
Sets the delimiters to use when breaking up the string. |
void |
setInput(ActivityOutput input)
Sets the input of this activity to be the output from another activity that will provide the data to be tokenized. |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
addInput, addOutput, addOutputs, getDataResourceID, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setInput |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getDataService, getName, getSession, setDataService, setSession |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private java.lang.String mDelimiters
| Constructor Detail |
public StringTokenizerActivity()
public StringTokenizerActivity(java.lang.String delimiters)
setInput should be called to set the activity that
provides input to this activity.
delimiters - The delimiters used to separate tokens
java.lang.IllegalArgumentException - If delimiters is null.
public StringTokenizerActivity(java.lang.String delimiters,
ActivityOutput input)
delimiters - The delimiters used to separate tokensinput - Output from another activity that will provide input to
this activity.
java.lang.IllegalArgumentException - If input or delimiters are.
null.| Method Detail |
public ActivityOutput getOutput()
public final void setInput(ActivityOutput input)
input - Output from another activity.
java.lang.IllegalArgumentException - If input is null.public final void setDelimiters(java.lang.String delimiters)
delimiters - The delimiters used to separate tokens
java.lang.IllegalArgumentException - If delimiters is null.protected java.lang.String generateXML()
RequestComponent
generateXML in class Activity
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||