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

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.activity.RequestComponent
        |
        +--uk.org.ogsadai.client.toolkit.activity.Composite
              |
              +--uk.org.ogsadai.client.toolkit.activity.Sequence

public class Sequence
extends Composite

The client-side representation of a sequence component in a request. A sequence contains blocks of activities which are processed sequentially by the service.

Author:
The OGSA-DAI Team.

Constructor Summary
Sequence()
          Constructs an empty sequence.
Sequence(RequestComponent[] components)
          Constructs a sequence from an array of components.
 
Method Summary
 java.lang.String generateXML()
          Generates the XML representing the activity.
 void insertChild(int index, RequestComponent component)
          Inserts a request component into the list
 RequestComponent removeChild(int index)
          Removes the request component at the specified index from the list of children
 
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Composite
addChild, addOutputs, getChild, getSize, removeChild
 
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent
getDataResourceID, getDataServiceStub, getName, setDataResourceID, setDataServiceStub
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sequence

public Sequence()
Constructs an empty sequence.


Sequence

public Sequence(RequestComponent[] components)
Constructs a sequence from an array of components.

Parameters:
components -
Method Detail

insertChild

public void insertChild(int index,
                        RequestComponent component)
Description copied from class: Composite
Inserts a request component into the list

Overrides:
insertChild in class Composite
Parameters:
index - the position of the new child component
component - the request component to insert

removeChild

public RequestComponent removeChild(int index)
Description copied from class: Composite
Removes the request component at the specified index from the list of children

Overrides:
removeChild in class Composite
Parameters:
index -
Returns:
the removed RequestComponent

generateXML

public 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 RequestComponent
Returns:
the XML for the activity