uk.org.ogsadai.client.toolkit.activity.factory.demo
Class DemoQueryInstance

java.lang.Object
  extended byuk.org.ogsadai.client.toolkit.activity.RequestComponent
      extended byuk.org.ogsadai.client.toolkit.activity.Activity
          extended byuk.org.ogsadai.client.toolkit.activity.factory.demo.DemoQueryInstance

public class DemoQueryInstance
extends Activity

Activity to query a demo instance resource created by a demo factory resource.

The activity has zero inputs and one output - the name stored in the demo instance resource.

Author:
The OGSA-DAI Project Team

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
 
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity
 
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent
 
Constructor Summary
DemoQueryInstance()
          Constructs the activity.
 
Method Summary
protected  java.lang.String generateXML()
          Generates the XML representing the activity.
 java.lang.String getNameValue()
          Gets the name stored in the demo instance resource.
 ActivityOutput getOutput()
          Gets the activity output - the name stored in the demo instance resource.
 
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity
addInput, addOutput, addOutputs, getDataResourceID, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setInput
 
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent
getDataService, getName, getSession, setDataService, setSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values
Constructor Detail

DemoQueryInstance

public DemoQueryInstance()
Constructs the activity.

Method Detail

getOutput

public ActivityOutput getOutput()
Gets the activity output - the name stored in the demo instance resource.

Returns:
the activity output

getNameValue

public java.lang.String getNameValue()
                              throws DataFormatException,
                                     NoActivityOutputException
Gets the name stored in the demo instance resource.

Returns:
name
Throws:
DataFormatException
NoActivityOutputException

generateXML

protected java.lang.String generateXML()
Description copied from class: RequestComponent
Generates the XML representing the activity. This XML can then be inserted into a perform document that is sent to a data service.

Specified by:
generateXML in class Activity