uk.org.ogsadai.client.toolkit.activity
Class ActivityOutput

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.activity.ActivityOutput

public final class ActivityOutput
extends java.lang.Object

The output of an OGSA-DAI activity.

Provides a means of accessing the output data and also a means of referring the to the output when connecting activity inputs and outputs.

Author:
The OGSA-DAI Project Team

Field Summary
protected  boolean mProcessed
          Indicates whether data has been processed into this output.
 
Constructor Summary
ActivityOutput()
          Constructor.
 
Method Summary
 java.lang.String getData()
          Gets the output data as a String.
 java.lang.String getName()
          Gets the unique name of this activity output.
 boolean hasData()
          Gets whether data is available for this output.
 java.lang.String toString()
          Returns a brief description of this activity output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mProcessed

protected boolean mProcessed
Indicates whether data has been processed into this output.

Constructor Detail

ActivityOutput

public ActivityOutput()
Constructor. Constructs an activity output with a unique name.

Method Detail

getName

public java.lang.String getName()
Gets the unique name of this activity output.

Returns:
activity output name

hasData

public boolean hasData()
Gets whether data is available for this output.

Returns:
True if data is available, false otherwise.

getData

public java.lang.String getData()
                         throws ActivityOutputException
Gets the output data as a String.

Returns:
a String containing the output data
Throws:
ActivityOutputException - If data has not yet been processed to this output. The activity that generates this output has not yet been performed.

toString

public java.lang.String toString()
Returns a brief description of this activity output. The exact details of this are unspecified and subject to change but the following may be regarded as typical:
"[ActivityOutput: name=f83af69893 data chars=124 ]"

Overrides:
toString in class java.lang.Object
Returns:
brief description of the activity object