|
|||||||||||
?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
An OGSA-DAI activity - a request component.
An activity is a operation than can be manipulate data in some way. OGSA-DAI requests consist of a sequence of activities with connected inputs and outputs. Example activites are:
Field Summary | |
private static?java.lang.String |
COPYRIGHT_NOTICE ??????????Copyright statement |
private ?java.util.List |
mInputParams ??????????A list of the activity's input parameters ( ActivityInputParameter ) |
private ?java.util.List |
mOutputParams ??????????A list of the activity's output parameters ( ActivityOuyputParameter ) |
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
Constructor Summary | |
protected |
Activity() ??????????Constructs an activity with no inputs or outputs. |
Method Summary | |
protected ?ActivityInputParameterInternal |
addInput(java.lang.String?parameterName) ??????????Adds a new input to the activity. |
protected ?ActivityOutputParameterInternal |
addOutput(java.lang.String?parameterName) ??????????Adds a new output to the activity. |
protected ?void |
addOutputs(java.util.Map?allOutputs) ??????????Add the outputs of this request component to the given map. |
protected abstract ?java.lang.String |
generateXML() ??????????Generates the XML representing the activity. |
protected ?ResourceID |
getDataResourceID() ??????????Gets the ID of the data service resource executing this activity, or null if there is no associated resource. |
?ActivityInputParameter[] |
getInputParameters() ??????????Gets the activity's input parameters. |
?ActivityOutputParameter[] |
getOutputParameters() ??????????Gets the activity's output parameters. |
protected ?ActivityOutput[] |
getOutputs() ??????????Gets the activity outputs. |
protected ?java.lang.String |
replaceSpecialCharacters(java.lang.String?input) ??????????Replaces the special characters (&, >, <, ", ') in the given input with the equivalent predefined XML entities. |
protected ?void |
setDataResourceID(ResourceID?id) ??????????Sets the ID of the data service resource executing this activity, or null if there is no associated resource. |
?void |
setInput(int?index, java.lang.String?outputName) ??????????Sets the name of the output of another activity in the same request that will provide data for a specific input of this activity. |
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.util.List mInputParams
ActivityInputParameter
)
private java.util.List mOutputParams
ActivityOuyputParameter
)
Constructor Detail |
protected Activity()
Method Detail |
protected ActivityInputParameterInternal addInput(java.lang.String?parameterName)
parameterName
- Name of input parameter.java.lang.IllegalArgumentException
- If parameterName
is null
.protected ActivityOutputParameterInternal addOutput(java.lang.String?parameterName)
parameterName
- Name of output parameter.java.lang.IllegalArgumentException
- If parameterName
is null
.protected ActivityOutput[] getOutputs()
This mechanism to obtain the activity outputs is required so that these outputs can be populated appropriate result data when a response to a request is received.
public ActivityInputParameter[] getInputParameters()
Client programmers usually have no need for this method. The details returned are useful for uk.org.ogsadai.client.toolkit.Request
classes that wish to validate their activities, for example to check for cycles or unspecified inputs. The details would also be useful in developing a tool that allows users to interactively connect activities.
public ActivityOutputParameter[] getOutputParameters()
Client programmers usually have no need for this method. The details returned are useful for uk.org.ogsadai.client.toolkit.Request
classes that wish to validate their activities, for example to check for cycles. The details would also be useful in developing a tool that allows users to interactively connect activities.
public void setInput(int?index, java.lang.String?outputName)
index
- Index of the input - corresponds to the appropriate index into the array returned by getInputParameters
. Value must be in range 0..n-1 where n is the number of inputs.outputName
- Name of output of another activity that will provide the input data.java.lang.IndexOutOfBoundsException
- If index
is out of bounds.java.lang.IllegalArgumentException
- If outputName
is null
.protected void setDataResourceID(ResourceID?id)
RequestComponent
null
if there is no associated resource.
setDataResourceID
in class RequestComponent
id
- Resource IDprotected ResourceID getDataResourceID()
RequestComponent
null
if there is no associated resource.
This method may be called by activities which need to know information about the resource.
getDataResourceID
in class RequestComponent
protected abstract java.lang.String generateXML()
RequestComponent
generateXML
in class RequestComponent
protected java.lang.String replaceSpecialCharacters(java.lang.String?input)
input
- String to process.protected void addOutputs(java.util.Map?allOutputs)
RequestComponent
java.lang.String
to uk.org.ogsadai.client.toolkit.activity.ActivityOutput
.
addOutputs
in class RequestComponent
allOutputs
- Map from strings to activity outputs.
|
|||||||||||
?PREV CLASS? ?NEXT CLASS | FRAMES ? ?NO FRAMES ? ? | ||||||||||
SUMMARY:?NESTED?|?FIELD?|?CONSTR?|?METHOD | DETAIL:?FIELD?|?CONSTR?|?METHOD |