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

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.DemoCreateInstance

public class DemoCreateInstance
extends Activity

Activity to request that a demo factory resource create a new demo instance resource.

The activity has zero inputs and one output - the name of the new demo instance resource.

Author:
The OGSA-DAI Project Team

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
private  java.lang.String mName
          The name to store in the demo instance resource
 
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity
 
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent
 
Constructor Summary
DemoCreateInstance(java.lang.String name)
          Constructs the activity.
 
Method Summary
protected  java.lang.String generateXML()
          Generates the XML representing the activity.
 java.lang.String getInstanceName()
          Gets the name of the new demo instance resource.
 ActivityOutput getOutput()
          Gets the activity output - the name of the new 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

mName

private java.lang.String mName
The name to store in the demo instance resource

Constructor Detail

DemoCreateInstance

public DemoCreateInstance(java.lang.String name)
Constructs the activity.

Parameters:
name - Name to store in the demo instance resource.
Throws:
java.lang.IllegalArgumentException - if name is null.
Method Detail

getOutput

public ActivityOutput getOutput()
Gets the activity output - the name of the new demo instance resource.

Returns:
the activity output

getInstanceName

public java.lang.String getInstanceName()
                                 throws DataFormatException,
                                        NoActivityOutputException
Gets the name of the new 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