public class EcoreExecutorManager extends ExecutorManager
Executor.ExecutorExtension
Constructor and Description |
---|
EcoreExecutorManager(Object contextObject,
ExecutorStandardLibrary standardLibrary)
Construct an EMF to OCL execution bridge.
|
Modifier and Type | Method and Description |
---|---|
Type |
getDynamicTypeOf(Object value) |
IdResolver |
getIdResolver() |
ModelManager |
getModelManager()
Return the manager of all model instances for use by allInstances() and hidden opposite support.
|
int |
getSeverity(Object validationKey)
Return the StatusCodes severity with which the validation identified by validationKey is reported.
|
ExecutorStandardLibrary |
getStandardLibrary() |
Class |
getStaticTypeOf(Object value) |
Class |
getStaticTypeOf(Object value,
Iterable<?> values) |
Class |
getStaticTypeOf(Object value,
Object... values) |
add, createNestedEvaluator, dispose, evaluate, evaluateIteration, getCompleteEnvironment, getDiagnosticSeverity, getEnvironmentFactory, getEvaluationEnvironment, getLogger, getMetamodelManager, getRegexPattern, isCanceled, popEvaluationEnvironment, pushEvaluationEnvironment, pushEvaluationEnvironment, replace, resetCaches, setCanceled, setLogger
public EcoreExecutorManager(Object contextObject, ExecutorStandardLibrary standardLibrary)
The user objects that contribute to allInstances are determined from the contents of all resources in the ResourceSet containing the user object (which should be an EObject).
The user meta-models are determined from the eClass()'s of all user objects and the transitive closure of all references.
Since determination of the domain of user models and meta-models can be expensive, the EcoreExecutorManager is cached for re-use as an adapter on the contextObject's ResourceSet.
contextObject
- a user object from which the user objects and their meta-models will be deducedstandardLibrary
- the OCL facilitiespublic Type getDynamicTypeOf(Object value)
getDynamicTypeOf
in class ExecutorManager
public IdResolver getIdResolver()
public ModelManager getModelManager()
Evaluator
public int getSeverity(Object validationKey)
Evaluator
StatusCodes.OK severity suppresses the validation altogether.
StatusCodes.Warning is returned for any null or unknown key.
getSeverity
in interface Evaluator
getSeverity
in interface Executor
getSeverity
in class ExecutorManager
public ExecutorStandardLibrary getStandardLibrary()
getStandardLibrary
in interface Evaluator
getStandardLibrary
in interface Executor
getStandardLibrary
in class ExecutorManager
public Class getStaticTypeOf(Object value)
getStaticTypeOf
in interface Evaluator
getStaticTypeOf
in interface Executor
getStaticTypeOf
in class ExecutorManager
public Class getStaticTypeOf(Object value, Object... values)
getStaticTypeOf
in interface Evaluator
getStaticTypeOf
in interface Executor
getStaticTypeOf
in class ExecutorManager
public Class getStaticTypeOf(Object value, Iterable<?> values)
getStaticTypeOf
in interface Evaluator
getStaticTypeOf
in interface Executor
getStaticTypeOf
in class ExecutorManager
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.