|
|||||||||||
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.ExampleActivity
This is a template class that can be used for writing new client toolkit activity.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private java.lang.String |
mSettingA
A required setting. |
private int |
mSettingB
Another required setting. |
private java.lang.String |
mSettingC
An optional setting. |
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
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 someAttribute |
void |
setInput(ActivityOutput input)
Sets the name of the output of another activity in the same request that will provide data for a specific input of this activity. |
void |
setSettingC(java.lang.String setting)
Set value of optional setting |
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 mSettingA
private int mSettingB
private java.lang.String mSettingC
Constructor Detail |
public ExampleActivity(java.lang.String settingA, int settingB)
settingA
- Arbitrary value for first setting.settingB
- Arbitrary value for second setting.Method Detail |
public void setSettingC(java.lang.String setting)
setting
- Arbitrary value for optional setting.public final void setInput(ActivityOutput input)
input
- Output from another activity.
java.lang.IllegalArgumentException
- If input
is null
.public ActivityOutput getOutput()
public int getSomething() throws DataFormatException, NoActivityOutputException
someAttribute
DataFormatException
- if the XML output data for the activity's output cannot be
parsed.
NoActivityOutputException
- if there is no output data or the data has not yet been
processed to this output or the activity that generates
this output has not yet been executed.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 |