|
|||||||||||
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.ActivityInputParameterImpl
Represents details of an activity input parameter.
Each activity can have a number of inputs and outputs. Inputs must be connected to the outputs from other activities.
Implements both the internally and externally visible interfaces to an activity input parameter. The internal view includes various setter methods that are excluded from the external view.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE Copyright statement |
private boolean |
mIsOptional Flags whether this input is optional or not |
private java.lang.String |
mName Parameter name. |
private java.lang.String |
mOutputName Name of output that is attached to this input. |
Constructor Summary | |
(package private) |
ActivityInputParameterImpl(java.lang.String parameterName) Create a new input parameter with the specified name. |
Method Summary | |
java.lang.String |
getName() Gets the name of the input parameter. |
java.lang.String |
getOutputName() Gets the name of the activity output that is the input to this parameter. |
boolean |
isOptional() Gets whether or not this input parameter can be regarded as optional or not. |
void |
setIsOptional(boolean isOptional) Sets whether or not this input is optional. |
void |
setOutputName(java.lang.String outputName) Sets the name of the output that will be the input to this parameter. |
java.lang.String |
toString() Returns a brief description of this activity input parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private java.lang.String mName
private java.lang.String mOutputName
private boolean mIsOptional
Constructor Detail |
ActivityInputParameterImpl(java.lang.String parameterName)
parameterName
- Name of parameter - this is purely a label that can be attached to the input if the inputs are being listed for some reason.Method Detail |
public java.lang.String getName()
ActivityInputParameter
This name has no real internal purpose. It is intended purely as a label that can be attached to the input if the inputs are to be displayed to the user.
getName
in interface ActivityInputParameter
public java.lang.String getOutputName()
ActivityInputParameter
Note that this is the name of the output not the name of the an output parameter. Multiple activities may have outputs that share the same parameter name (for example 'QueryResult') but each output for each activity will have a unique output name.
getOutputName
in interface ActivityInputParameter
null
if the output has not yet been specified.public void setOutputName(java.lang.String outputName)
ActivityInputParameterInternal
setOutputName
in interface ActivityInputParameterInternal
outputName
- Name of activity output.public boolean isOptional()
ActivityInputParameter
isOptional
in interface ActivityInputParameter
true
is the input is optional, false
otherwise.public void setIsOptional(boolean isOptional)
ActivityInputParameterInternal
setIsOptional
in interface ActivityInputParameterInternal
isOptional
- true
if the input is optional, false
otherwise.public java.lang.String toString()
ActivityInputParameter
[ActivityInputParameter: name = 'query' output = 'f6373a5f' optional = false]
toString
in interface ActivityInputParameter
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |