|
|||||||||||
| 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.CSVProjection
This is activty performs a projection of CSV values based on a column index.
The activity has one input - the CSV values - and one output the projected values.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private int |
mColumnNo
Column to project |
private java.lang.String |
mDelimiter
The delimiter separating the CSV values. |
| Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
| Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
| Constructor Summary | |
CSVProjection(ActivityOutput input,
int columnNo)
Constructor. |
|
CSVProjection(ActivityOutput input,
int columnNo,
java.lang.String delimiter)
Constructor. |
|
| Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
ActivityOutput |
getOutput()
Gets the activity output - the projected CSV values. |
void |
setInput(ActivityOutput input)
Sets the input of this activity to be the output from another activity that will provide the data to be aggregated. |
| 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 int mColumnNo
private java.lang.String mDelimiter
,.
| Constructor Detail |
public CSVProjection(ActivityOutput input,
int columnNo)
, - is assumed to
separate the CSV values.
setInput should be called to set the activity that
provides input to this activity.
input - Output from another activity that will provide input to
this activity.
java.lang.IllegalArgumentException - If input is null or
columnNo is <= 0.
public CSVProjection(ActivityOutput input,
int columnNo,
java.lang.String delimiter)
, - is assumed to
separate the CSV values.
setInput should be called to set the activity that
provides input to this activity.
input - Output from another activity that will provide input to
this activity.
java.lang.IllegalArgumentException - If input or delimiter is
null or columNo is < 0.| Method Detail |
public final void setInput(ActivityOutput input)
input - Output from another activity.
java.lang.IllegalArgumentException - If input is null.public ActivityOutput getOutput()
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 | ||||||||||