Package org.eclipse.m2m.qvt.oml
Class ExecutionContextImpl
- java.lang.Object
-
- org.eclipse.m2m.qvt.oml.ExecutionContextImpl
-
- All Implemented Interfaces:
ExecutionContext
public final class ExecutionContextImpl extends Object implements ExecutionContext
Execution context implementation.- Since:
- 2.0
- See Also:
TransformationExecutor- Interface is not intended to be extended by clients.
- This class is not intended to be subclassed by clients.
-
-
Constructor Summary
Constructors Constructor Description ExecutionContextImpl()Constructs a default context for execution.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ObjectgetConfigProperty(String name)Get the value of the specified configuration property which was set to this context.Set<String>getConfigPropertyNames()Gets read-only view of the names of the configuration properties that are set in this contextLoggetLog()Gets the logger implementation assigned to this context.EvaluationMonitorgetMonitor()Gets the evaluation monitor assigned to this context.org.eclipse.core.runtime.IProgressMonitorgetProgressMonitor()Gets the evaluation monitor assigned to this context.ISessionDatagetSessionData()Returns execution specific settings like QVTEvaluationOptions.EVALUATION_MAX_STACK_DEPTHCollection<ISessionData.Entry<Object>>getSessionDataEntries()Returns all entries stored in the session data.voidsetConfigProperty(String name, Object value)Sets the value object for the given configuration propertyvoidsetLog(Log log)Sets the log implementation to this context.voidsetMonitor(EvaluationMonitor monitor)Deprecated.voidsetProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)Set evaluation monitor to this context
-
-
-
Method Detail
-
getConfigProperty
public Object getConfigProperty(String name)
Description copied from interface:ExecutionContextGet the value of the specified configuration property which was set to this context.- Specified by:
getConfigPropertyin interfaceExecutionContext- Parameters:
name- the name of the configuration property- Returns:
- the value assigned to the queried property. Remark:
It's possible that
nullis returned in the following cases:- no property of the given name has been set
The client can distinguish the cases above by usingnullvalue has been explicitly setExecutionContext.getConfigPropertyNames()
-
setConfigProperty
public void setConfigProperty(String name, Object value)
Sets the value object for the given configuration property- Parameters:
name- the name of the property, nevernullvalue- the value object
-
getConfigPropertyNames
public Set<String> getConfigPropertyNames()
Description copied from interface:ExecutionContextGets read-only view of the names of the configuration properties that are set in this context- Specified by:
getConfigPropertyNamesin interfaceExecutionContext- Returns:
- set of the name strings in undefined order
-
setLog
public void setLog(Log log)
Sets the log implementation to this context.- Parameters:
log- the log implementation, nevernull
-
getLog
public Log getLog()
Description copied from interface:ExecutionContextGets the logger implementation assigned to this context.- Specified by:
getLogin interfaceExecutionContext- Returns:
- the logger instance, never
null
-
getMonitor
public EvaluationMonitor getMonitor()
Description copied from interface:ExecutionContextGets the evaluation monitor assigned to this context. The execution engine will query the monitor the check for the user interruption request.- Specified by:
getMonitorin interfaceExecutionContext- Returns:
- the monitor implementation, never
null
-
getProgressMonitor
public org.eclipse.core.runtime.IProgressMonitor getProgressMonitor()
Description copied from interface:ExecutionContextGets the evaluation monitor assigned to this context. The execution engine will query the monitor the check for the user interruption request.- Specified by:
getProgressMonitorin interfaceExecutionContext- Returns:
- the monitor implementation, never
null - Since:
- 3.4
-
setMonitor
public void setMonitor(EvaluationMonitor monitor)
Deprecated.Set evaluation monitor to this context- Parameters:
monitor- the monitor implementation, nevernull
-
setProgressMonitor
public void setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
Set evaluation monitor to this context- Parameters:
monitor- the monitor implementation, nevernull- Since:
- 3.4
-
getSessionData
public ISessionData getSessionData()
Description copied from interface:ExecutionContextReturns execution specific settings like QVTEvaluationOptions.EVALUATION_MAX_STACK_DEPTH- Specified by:
getSessionDatain interfaceExecutionContext- Since:
- 3.4
-
getSessionDataEntries
public Collection<ISessionData.Entry<Object>> getSessionDataEntries()
Description copied from interface:ExecutionContextReturns all entries stored in the session data.- Specified by:
getSessionDataEntriesin interfaceExecutionContext- Since:
- 3.4
-
-