|
|||||||||||
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
Superclass for components of a request.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private DataService |
mDataService
The data service associated with the request component. |
private java.lang.String |
mName
Unique name of the activity - auto-generated |
private ResourceID |
mResource
ID of data service resource to which the request of which this component is a part has been submitted, or null if
there is no associated resource. |
private Session |
mSession
Session within which the request of which this component is a part, was executed. |
Constructor Summary | |
RequestComponent()
|
Method Summary | |
protected abstract void |
addOutputs(java.util.Map allOutputs)
Add the outputs of this request component to the given map. |
protected abstract java.lang.String |
generateXML()
Generates the XML representing the activity. |
private java.lang.String |
getClassName()
Gets the unqualified name of this class. |
protected ResourceID |
getDataResourceID()
Gets the ID of the data service resource executing this activity, or null if there is no associated
resource. |
protected DataService |
getDataService()
|
java.lang.String |
getName()
Gets the activity name. |
protected Session |
getSession()
Gets the session that the request to which this request component belongs has been executed within. |
protected void |
setDataResourceID(ResourceID id)
Sets the ID of the data service resource executing this activity, or null if there is no associated
resource. |
protected void |
setDataService(DataService dataService)
|
protected void |
setSession(Session session)
Sets the session that the request to which this request component belongs has been executed within. |
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.lang.String mName
private ResourceID mResource
null
if
there is no associated resource.
private DataService mDataService
private Session mSession
Constructor Detail |
public RequestComponent()
Method Detail |
private java.lang.String getClassName()
public java.lang.String getName()
protected ResourceID getDataResourceID()
null
if there is no associated
resource.
This method may be called by activities which need to know information about the resource.
protected void setDataResourceID(ResourceID id)
null
if there is no associated
resource.
id
- Resource IDprotected void setSession(Session session)
session
- Session within which the request component was executed.
java.lang.IllegalArgumentException
- If session
is null
.
All request components are executed within a session.protected Session getSession() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if the method is invoked before the request to which this
component belongs has been executed.protected void setDataService(DataService dataService)
protected DataService getDataService()
protected abstract java.lang.String generateXML()
protected abstract void addOutputs(java.util.Map allOutputs)
java.lang.String
to
uk.org.ogsadai.client.toolkit.activity.ActivityOutput
.
allOutputs
- Map from strings to activity outputs.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |