public final class ExecutionContextImpl extends Object implements ExecutionContext
TransformationExecutor
Constructor and Description |
---|
ExecutionContextImpl()
Constructs a default context for execution.
|
Modifier and Type | Method and Description |
---|---|
Object |
getConfigProperty(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 context
|
Log |
getLog()
Gets the logger implementation assigned to this context.
|
EvaluationMonitor |
getMonitor()
Gets the evaluation monitor assigned to this context.
|
IProgressMonitor |
getProgressMonitor()
Gets the evaluation monitor assigned to this context.
|
ISessionData |
getSessionData()
Returns execution specific settings like QVTEvaluationOptions.EVALUATION_MAX_STACK_DEPTH
|
Collection<ISessionData.Entry<Object>> |
getSessionDataEntries()
Returns all entries stored in the session data.
|
void |
setConfigProperty(String name,
Object value)
Sets the value object for the given configuration property
|
void |
setLog(Log log)
Sets the log implementation to this context.
|
void |
setMonitor(EvaluationMonitor monitor)
Deprecated.
|
void |
setProgressMonitor(IProgressMonitor monitor)
Set evaluation monitor to this context
|
public ExecutionContextImpl()
public Object getConfigProperty(String name)
ExecutionContext
getConfigProperty
in interface ExecutionContext
name
- the name of the configuration propertynull
is returned in the following
cases: null
value has been explicitly setExecutionContext.getConfigPropertyNames()
public void setConfigProperty(String name, Object value)
name
- the name of the property, never null
value
- the value objectpublic Set<String> getConfigPropertyNames()
ExecutionContext
getConfigPropertyNames
in interface ExecutionContext
public void setLog(Log log)
log
- the log implementation, never null
public Log getLog()
ExecutionContext
getLog
in interface ExecutionContext
null
public EvaluationMonitor getMonitor()
ExecutionContext
getMonitor
in interface ExecutionContext
null
public IProgressMonitor getProgressMonitor()
ExecutionContext
getProgressMonitor
in interface ExecutionContext
null
public void setMonitor(EvaluationMonitor monitor)
monitor
- the monitor implementation, never null
public void setProgressMonitor(IProgressMonitor monitor)
monitor
- the monitor implementation, never null
public ISessionData getSessionData()
ExecutionContext
getSessionData
in interface ExecutionContext
public Collection<ISessionData.Entry<Object>> getSessionDataEntries()
ExecutionContext
getSessionDataEntries
in interface ExecutionContext
Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.