|
|||||||||||
| 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.
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:
| Constructor Summary | |
protected |
Activity()
Constructs an activity with no 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)
Adds the outputs of this component to the given hash map. |
protected abstract java.lang.String |
generateXML()
Generates the XML representing the activity. |
protected ResourceID |
getDataResourceID()
Returns the resource ID of the data service resource executing this activity, or null if there is no associated resource. |
protected Stub |
getDataServiceStub()
Returns the DataService object executing this
activity, or null if there is no associated service. |
ActivityInputParameter[] |
getInputParameters()
Gets details relating to the activity's input parameters. |
ActivityOutputParameter[] |
getOutputParameters()
Gets details relating to 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 entities. |
protected void |
setDataResourceID(ResourceID id)
Sets the ResourceID object which this activity is
being executed with. |
protected void |
setDataServiceStub(Stub stub)
Sets the DataService object which this activity is
being executed with. |
void |
setInput(int index,
java.lang.String outputName)
Sets the name of the output that will provide the specified input to this activity. |
| 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 |
protected Activity()
| Method Detail |
protected ActivityInputParameterInternal addInput(java.lang.String parameterName)
parameterName - Name of input parameter
java.lang.IllegalArgumentException - If argument is null.protected ActivityOutputParameterInternal addOutput(java.lang.String parameterName)
parameterName - Name of the output parameter.
java.lang.IllegalArgumentException - If argument 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 document is received.
public ActivityInputParameter[] getInputParameters()
Client programmers usually have no need for this method. The details
returned are useful for Request classes that wish to
validate its 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 Request classes that wish to
validate its 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 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 to use as input
java.lang.IndexOutOfBoundsException - If the index value is out of bounds.
java.lang.IllegalArgumentException - If any of the arguments are null.protected void setDataResourceID(ResourceID id)
RequestComponentResourceID object which this activity is
being executed with. If there is exactly one resource then this
method need not be called, and the ResourceID object
will be null.
setDataResourceID in class RequestComponentid - the resource IDprotected ResourceID getDataResourceID()
RequestComponentnull if there is no associated resource.
This method may be called by activities which need to know
the service object.
getDataResourceID in class RequestComponentprotected Stub getDataServiceStub()
RequestComponentDataService object executing this
activity, or null if there is no associated service.
This method may be called by activities which need to know
the service object.
getDataServiceStub in class RequestComponentDataService objectprotected void setDataServiceStub(Stub stub)
RequestComponentDataService object which this activity is
being executed with. If there is no service (i.e. the Activity Engine
is executing in a stand-alone environment) then this method need not
be called, and the DataService object will be null.
setDataServiceStub in class RequestComponentstub - the service objectprotected abstract java.lang.String generateXML()
RequestComponent
generateXML in class RequestComponentprotected java.lang.String replaceSpecialCharacters(java.lang.String input)
input - string to process
protected void addOutputs(java.util.Map allOutputs)
RequestComponent
addOutputs in class RequestComponentallOutputs -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||