|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.server.core.TaskModel
A task model represents a model that can be shared between multiple tasks in a common workflow.
The task model contains information about the overall task flow and allows tasks to store and retreive data. Its usage allows mutliple tasks to be chained together and share data from the output of one task to the input of another.
Field Summary | |
---|---|
static java.lang.String |
TASK_LAUNCH_MODE
Task model id for a launch mode. |
static java.lang.String |
TASK_MODULES
Task model id for an array of modules. |
static java.lang.String |
TASK_RUNTIME
Task model id for an IRuntime. |
static java.lang.String |
TASK_SERVER
Task model id for an IServer. |
Constructor Summary | |
---|---|
TaskModel()
|
Method Summary | |
---|---|
java.lang.Object |
getObject(java.lang.String id)
Returns the object in the task model with the given id. |
void |
putObject(java.lang.String id,
java.lang.Object obj)
Put an object into the task model with the given id. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String TASK_RUNTIME
getObject(String)
,
putObject(String, Object)
,
Constant Field Valuespublic static final java.lang.String TASK_SERVER
getObject(String)
,
putObject(String, Object)
,
Constant Field Valuespublic static final java.lang.String TASK_MODULES
getObject(String)
,
putObject(String, Object)
,
Constant Field Valuespublic static final java.lang.String TASK_LAUNCH_MODE
getObject(String)
,
putObject(String, Object)
,
Constant Field ValuesConstructor Detail |
public TaskModel()
Method Detail |
public java.lang.Object getObject(java.lang.String id)
The id can be any of the predefined ids within TaskModel, or any other key to retreive task-specific data.
id
- an id for the object
null
if no object could be found with that idpublic void putObject(java.lang.String id, java.lang.Object obj)
The id can be any of the predefined ids within TaskModel, or any other key to store task-specific data.
id
- the id to associate the object withobj
- an object, or null
to reset (clear) the id
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |