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

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.activity.RequestComponent
        |
        +--uk.org.ogsadai.client.toolkit.activity.Composite
Direct Known Subclasses:
Flow, Sequence

public abstract class Composite
extends RequestComponent

Author:
The OGSA-DAI Team.

Constructor Summary
Composite()
          Constructs an empty composite component.
Composite(RequestComponent[] components)
          Constructs a composite from an array of request components.
 
Method Summary
 void addChild(RequestComponent child)
          Adds a RequestComponent, which can be an Activity or a flow or sequence component, to this composite
protected  void addOutputs(java.util.Map allOutputs)
          Adds output from the contained activities to the given map
protected  RequestComponent getChild(int index)
          Returns the RequestComponent at the specified index
protected  int getSize()
          Returns the number of direct children of this composite component
protected  void insertChild(int index, RequestComponent child)
          Inserts a request component into the list
protected  RequestComponent removeChild(int index)
          Removes the request component at the specified index from the list of children
protected  boolean removeChild(RequestComponent child)
          Removes the specified object from the list of children
 
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent
generateXML, 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

Composite

public Composite()
Constructs an empty composite component.


Composite

public Composite(RequestComponent[] components)
Constructs a composite from an array of request components.

Parameters:
components -
Method Detail

addChild

public void addChild(RequestComponent child)
Adds a RequestComponent, which can be an Activity or a flow or sequence component, to this composite

Parameters:
child - the request component

insertChild

protected void insertChild(int index,
                           RequestComponent child)
Inserts a request component into the list

Parameters:
index - the position of the new child component
child - the request component to insert

removeChild

protected RequestComponent removeChild(int index)
Removes the request component at the specified index from the list of children

Parameters:
index -
Returns:
the removed RequestComponent

removeChild

protected boolean removeChild(RequestComponent child)
Removes the specified object from the list of children

Parameters:
child - the request component to remove
Returns:
true if the removal was successful, false otherwise

getChild

protected RequestComponent getChild(int index)
Returns the RequestComponent at the specified index

Parameters:
index -
Returns:
a request component

getSize

protected int getSize()
Returns the number of direct children of this composite component

Returns:
number of children

addOutputs

protected void addOutputs(java.util.Map allOutputs)
Adds output from the contained activities to the given map

Specified by:
addOutputs in class RequestComponent
Parameters:
allOutputs -