|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.org.ogsadai.client.toolkit.activity.SimpleActivityOutput
public class SimpleActivityOutput
Simple implementation of an activity output.
| Field Summary | |
|---|---|
static boolean |
OPTIONAL
Flag used to indicate an optional output. |
static boolean |
REQUIRED
Flag used to indicate a required output. |
| Constructor Summary | |
|---|---|
SimpleActivityOutput(java.lang.String outputName)
Constucts an non-optional activity output. |
|
SimpleActivityOutput(java.lang.String outputName,
boolean isOptional)
Constructs an activity output. |
|
| Method Summary | |
|---|---|
DataValueIterator |
getDataValueIterator()
Gets an iterator to the data values written to the first output occurrence. |
DataValueIterator |
getDataValueIterator(int index)
Gets a DataValueIterator |
int |
getNumberOfOutputs()
Gets the number of output occurrences |
java.lang.String |
getOutputName()
Gets the name of the output. |
java.lang.String |
getPipeName()
Gets the name of the pipe associated with the first output occurrence. |
java.lang.String |
getPipeName(int index)
Gets the pipe name that the occurrence at the specified index is connected to. |
SingleActivityOutput[] |
getSingleActivityOutputs()
Gets an array of SingleActivityOutput |
boolean |
hasData()
Gets whether data is available for the first output occurrence. |
boolean |
hasData(int index)
Indicates whether occurrence at the specified index has more data |
void |
setDataSourceResource(DataSourceResource dataSourceResource)
Deprecated. |
void |
setDataSourceResource(int index,
DataSourceResource dataSourceResource)
Deprecated. |
void |
setDataSourceResourceBlocksSize(int numBlocks)
Deprecated. |
void |
setDataSourceResourceBlocksSize(int index,
int numBlocks)
Deprecated. |
void |
setDataValueIterator(DataValueIterator dataValueIterator)
Sets the data value iterator to use when reading data from this input. |
void |
setDataValueIterator(int index,
DataValueIterator dataValueIterator)
Sets the data value iterator to use when reading data from this output. |
void |
setNumberOfOutputs(int count)
Sets the occurrences of this output. |
java.lang.String |
toString()
|
void |
validateState()
Validates the state of the output by validating all the occurtences of the output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean OPTIONAL
public static boolean REQUIRED
| Constructor Detail |
|---|
public SimpleActivityOutput(java.lang.String outputName)
outputName - output name.
public SimpleActivityOutput(java.lang.String outputName,
boolean isOptional)
outputName - output name.isOptional - true if output is optional, false
otherwise.| Method Detail |
|---|
public java.lang.String getOutputName()
ActivityOutput
getOutputName in interface ActivityOutputpublic java.lang.String getPipeName()
ActivityOutput
getPipeName in interface ActivityOutputpublic boolean hasData()
ActivityOutput
hasData in interface ActivityOutputtrue if data is available, false
otherwise.public DataValueIterator getDataValueIterator()
ActivityOutput
getDataValueIterator in interface ActivityOutput
public void validateState()
throws ActivityIOIllegalStateException
ActivityOutput
validateState in interface ActivityOutputActivityIOIllegalStateException - if the output is in an illegal state.public java.lang.String toString()
toString in class java.lang.Objectpublic int getNumberOfOutputs()
ActivityOutput
getNumberOfOutputs in interface ActivityOutputpublic SingleActivityOutput[] getSingleActivityOutputs()
ActivityOutputSingleActivityOutput
getSingleActivityOutputs in interface ActivityOutputSingleActivityOutput
public DataValueIterator getDataValueIterator(int index)
throws ActivityOutputUnreadableException,
java.lang.ArrayIndexOutOfBoundsException
ActivityOutputDataValueIterator. It can be iterated to get
DataValue objects
- Specified by:
getDataValueIterator in interface ActivityOutput
- Parameters:
index - the index of the output occurrence
- Returns:
- a
DataValueIterator
- Throws:
ActivityOutputUnreadableException - if the activity output cannot be read because the final request
status has yet to be received data from server.
java.lang.ArrayIndexOutOfBoundsException - if index is out of bounds
public boolean hasData(int index)
throws java.lang.ArrayIndexOutOfBoundsException
ActivityOutput
hasData in interface ActivityOutputindex - the index of the output occurrence
java.lang.ArrayIndexOutOfBoundsException
public java.lang.String getPipeName(int index)
throws java.lang.ArrayIndexOutOfBoundsException
ActivityOutput
getPipeName in interface ActivityOutputindex - the index of the output occurrence
java.lang.ArrayIndexOutOfBoundsExceptionpublic void setNumberOfOutputs(int count)
ActivityOutput
setNumberOfOutputs in interface ActivityOutputcount - the count of output occurrences
public void setDataSourceResource(int index,
DataSourceResource dataSourceResource)
ActivityOutput
setDataSourceResource in interface ActivityOutputindex - the index of the output occurrencedataSourceResource - data source resource.
public void setDataSourceResourceBlocksSize(int index,
int numBlocks)
ActivityOutput
setDataSourceResourceBlocksSize in interface ActivityOutputindex - index of the output occurrencenumBlocks - maximum number of blocks to receive each call.public void setDataSourceResource(DataSourceResource dataSourceResource)
ActivityOutput
setDataSourceResource in interface ActivityOutputdataSourceResource - data source resource.public void setDataSourceResourceBlocksSize(int numBlocks)
ActivityOutput
setDataSourceResourceBlocksSize in interface ActivityOutputnumBlocks - maximum number of blocks to receive each call.public void setDataValueIterator(DataValueIterator dataValueIterator)
ActivityOutput
setDataValueIterator in interface ActivityOutputdataValueIterator - data value iterator that gives access to the data the output
produced.
public void setDataValueIterator(int index,
DataValueIterator dataValueIterator)
ActivityOutput
setDataValueIterator in interface ActivityOutputindex - the index of the output occurrencedataValueIterator - data value iterator that gives access to the data the output
produced.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||