|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.org.ogsadai.client.toolkit.activity.BaseActivity
uk.org.ogsadai.client.toolkit.activities.management.BaseCreateDataX
public abstract class BaseCreateDataX
Abstract base class for for activities the data sink and data source creation activities.
| Field Summary | |
|---|---|
static java.lang.String |
OUTPUT
Result output name |
static java.lang.String |
RESOURCE_ID_INPUT
ResourceID input name |
| Constructor Summary | |
|---|---|
BaseCreateDataX(ActivityName defaultActivityName)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addResourceId(ResourceID resourceID)
Adds a resource ID. |
void |
connectResourceIdInput(SingleActivityOutput output)
Connects the resource ID input to the given output. |
protected ActivityInput[] |
getInputs()
Gets the inputs associated with the activity. |
protected ActivityOutput[] |
getOutputs()
Gets the outputs associated with the activity. |
SingleActivityOutput |
getResultOutput()
Gets the activity's output. |
boolean |
hasNextResult()
Gets whether or not there are any unread output values. |
ResourceID |
nextResult()
Gets the next resource ID from the output. |
protected void |
validateIOState()
Validates the state of the activity inputs and outputs. |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.BaseActivity |
|---|
buildRequest, getActivityName, getConnectedOutputs, getErrorMessages, getInputDescriptors, getInstanceName, getRequestAndStatusHandler, getServer, getStatus, getWarnings, hasErrorMessages, hasWarnings, processRequestStatus, setActivityName, setServer, toString, validateState, writeToString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String RESOURCE_ID_INPUT
public static final java.lang.String OUTPUT
| Constructor Detail |
|---|
public BaseCreateDataX(ActivityName defaultActivityName)
defaultActivityName - default activity name.| Method Detail |
|---|
public void addResourceId(ResourceID resourceID)
If no resource IDs are added then the activity will create a single data sink resource with a server generated resource ID.
resourceID - resource ID.public void connectResourceIdInput(SingleActivityOutput output)
output - output to connect the input to.public SingleActivityOutput getResultOutput()
public boolean hasNextResult()
throws DataStreamErrorException,
UnexpectedDataValueException,
DataSourceUsageException
true if there are unread output value,
false if there are none.
DataStreamErrorException - if there is an error on the data stream.
UnexpectedDataValueException - if there is an unexpected data value on the data stream.
DataSourceUsageException - if there is an error reading from a data source.
public ResourceID nextResult()
throws DataStreamErrorException,
UnexpectedDataValueException,
DataSourceUsageException
DataStreamErrorException - if there is an error on the data stream.
UnexpectedDataValueException - if there is an unexpected data value on the data stream.
DataSourceUsageException - if there is an error reading from a data source.
protected void validateIOState()
throws ActivityIOIllegalStateException
BaseActivity
validateIOState in class BaseActivityActivityIOIllegalStateException - if an activity input is not in a valid state.protected ActivityInput[] getInputs()
BaseActivity
getInputs in class BaseActivityprotected ActivityOutput[] getOutputs()
BaseActivity
getOutputs in class BaseActivity
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||