public class QVTEvaluationOptions extends Object
Modifier and Type | Field and Description |
---|---|
static ISessionData.SimpleEntry<Integer> |
EVALUATION_MAX_STACK_DEPTH
QVTo evaluator's maximum stack depth.
|
static ISessionData.SimpleEntry<Boolean> |
FLAG_QVTO_UNPARSE_ENABLED
This flag controls the capability to save a QVTO Operational transformation model in textual concrete syntax.
|
static ISessionData.SimpleEntry<Boolean> |
FLAG_READONLY_GUARD_ENABLED |
static ISessionData.SimpleEntry<Trace> |
INCREMENTAL_UPDATE_TRACE
Traces container which is used for incremental update execution mode.
|
static ISessionData.SimpleEntry<List<Class<? extends QvtGenericVisitorDecorator>>> |
VISITOR_DECORATORS
Decorator classes to be used when constructing a QVTo evaluation visitor.
|
Constructor and Description |
---|
QVTEvaluationOptions() |
public static final ISessionData.SimpleEntry<Boolean> FLAG_READONLY_GUARD_ENABLED
public static final ISessionData.SimpleEntry<Integer> EVALUATION_MAX_STACK_DEPTH
public static final ISessionData.SimpleEntry<List<Class<? extends QvtGenericVisitorDecorator>>> VISITOR_DECORATORS
Visitor decorators should extend QvtGenericVisitorDecorator. They can be contributed by third parties by setting this value on the transformation context before executing:
Usage example:public static class TestQvtGenericVisitorDecorator extends QvtGenericVisitorDecorator { public TestQvtGenericVisitorDecorator(InternalEvaluator qvtExtVisitor) { super(qvtExtVisitor); } public Object visitModule(Module module) { //... return super.visitModule(module); } // ... }
ExecutionContextImpl context = new ExecutionContextImpl(); context.getSessionData().setValue(QVTEvaluationOptions.VISITOR_DECORATORS, Collections.singletonList(TestQvtGenericVisitorDecorator.class)); TransformationExecutor executor = new TransformationExecutor(uri); ExecutionDiagnostic result = executor.execute(context);
org.eclipse.m2m.internal.qvt.oml.ast.env.QvtOperationalEnvFactory#createEvaluationVisitor()
public static final ISessionData.SimpleEntry<Trace> INCREMENTAL_UPDATE_TRACE
When specified the content (returned by Trace.getTraceContent()) is used to find the existing relationship between input and output models. Upon the end of execution the content is replaced with the new traces established during the execution.
Usage example:
Usage example:// Initialize execution context with an empty trace so that upon the first execution it will be filled // with the traces information established during the execution. ExecutionContextImpl context = new ExecutionContextImpl(); context.getSessionData().setValue(QVTEvaluationOptions.INCREMENTAL_UPDATE_TRACE, Trace.createEmptyTrace());
// Initialize execution context with the existing trace so that execution will be performed in incremental update mode. // Upon the end of execution the content is replaced with the new traces established during the execution. ExecutionContextImpl context = new ExecutionContextImpl(); ResourceSet rs = ..; Resource traceResource = rs.getResource(traceUri, true); context.getSessionData().setValue(QVTEvaluationOptions.INCREMENTAL_UPDATE_TRACE, new Trace(traceResource.getContents()));
public static final ISessionData.SimpleEntry<Boolean> FLAG_QVTO_UNPARSE_ENABLED
There are three possible syntaxes for QVTo model interchange (created for example by QVTo transformation):
ExecutionContextImpl context = new ExecutionContextImpl(); context.getSessionData().setValue(QVTEvaluationOptions.FLAG_QVTO_UNPARSE_ENABLED, Boolean.FALSE);
Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.