org.eclipse.emf.mwe.core
Class WorkflowContextDefaultImpl

java.lang.Object
  extended by org.eclipse.emf.mwe.core.WorkflowContextDefaultImpl
All Implemented Interfaces:
WorkflowContext

public class WorkflowContextDefaultImpl
extends java.lang.Object
implements WorkflowContext

Default WorkflowContext implementation.

Since:
4.0
Author:
Sven Efftinge (http://www.efftinge.de)

Field Summary
 
Fields inherited from interface org.eclipse.emf.mwe.core.WorkflowContext
DEFAULT_SLOT
 
Constructor Summary
WorkflowContextDefaultImpl()
           
 
Method Summary
 java.lang.Object get(java.lang.String modelName)
          returns the object of the given slot name.
 java.lang.String[] getSlotNames()
           
 void set(java.lang.String slotName, java.lang.Object model)
          Sets the passed Model the specified slot.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowContextDefaultImpl

public WorkflowContextDefaultImpl()
Method Detail

get

public java.lang.Object get(java.lang.String modelName)
Description copied from interface: WorkflowContext
returns the object of the given slot name.

Specified by:
get in interface WorkflowContext
Parameters:
modelName - The slot's name.
Returns:
The object associated to the specified slot or null if no such slot exists.
See Also:
WorkflowContext.get(String)

set

public void set(java.lang.String slotName,
                java.lang.Object model)
Description copied from interface: WorkflowContext
Sets the passed Model the specified slot. Removes the model currently set to the specified slot.

Specified by:
set in interface WorkflowContext
Parameters:
slotName - The slot's name.
model - object to store in the slot (set null to remove the slot)
See Also:
WorkflowContext.set(String, Object)

getSlotNames

public java.lang.String[] getSlotNames()
Specified by:
getSlotNames in interface WorkflowContext