|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.client.toolkit.activity.RequestComponent | +--uk.org.ogsadai.client.toolkit.activity.Composite
An abstract class that maintains an ordered list of activities. It is the building block of complex requests where activities are to be explicitly executed in sequence or parallel.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private java.util.List |
mChildren
List of child components of this composite. |
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
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)
Add the outputs of each activity in the composite to the given map. |
protected RequestComponent |
getChild(int index)
Returns the request component 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 composite. |
protected RequestComponent |
removeChild(int index)
Removes the request component at the specified index from the composite. |
protected boolean |
removeChild(RequestComponent child)
Removes the specified request component from the list of children. |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
generateXML, getDataResourceID, getDataService, getName, getSession, setDataResourceID, setDataService, setSession |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private java.util.List mChildren
Constructor Detail |
public Composite()
public Composite(RequestComponent[] components)
components
- Request components.Method Detail |
public void addChild(RequestComponent child)
RequestComponent
, which can be an activity
or a flow or sequence component, to this composite.
child
- Request componentprotected void insertChild(int index, RequestComponent child)
index
- Insertion position of the new child component.child
- Request component to insert.protected RequestComponent removeChild(int index)
index
- Position of component to be removed.
protected boolean removeChild(RequestComponent child)
child
- Request component to remove
true
if the removal was successful,
false
otherwise.protected RequestComponent getChild(int index)
index
- Position of the request component.
protected int getSize()
protected void addOutputs(java.util.Map allOutputs)
java.lang.String
to
uk.org.ogsadai.client.toolkit.activity.ActivityOutput
.
addOutputs
in class RequestComponent
allOutputs
- Map from strings to activity outputs.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |