public class EcoreEnvironmentFactoryWithHiddenOpposites extends EcoreEnvironmentFactory
OppositeEndFinderto the OCL environment. This enables lookup and evaluation of so-called "hidden opposites" which are represented by annotations with key "Property#oppositeRoleName" on the forward reference and which allow for querying the opposite direction by simple dotted syntax and by cleanly providing a scope for the opposite lookup.
|Modifier and Type||Field and Description|
A default instance that works with the default
|Constructor and Description|
Initializes me with an
Configures both, a specific package registry as well as a dedicated opposite end finder to be used by the OCL environment created by this factory.
createEnvironment, createEnvironment, createEvaluationEnvironment, createEvaluationEnvironment, createEvaluationVisitor, createOCLAnalyzer, createOCLAnalyzer, createOCLFactoryWithHistory, createOCLSyntaxHelper, createValidationVisitor, getEPackageRegistry, getOppositeEndFinder, loadEnvironment
createAttributeContext, createClassifierContext, createInstanceContext, createOperationContext, createPackageContext, getAdapter
public static final EcoreEnvironmentFactoryWithHiddenOpposites INSTANCE
DefaultOppositeEndFinder.getInstance()as opposite end finder.
public EcoreEnvironmentFactoryWithHiddenOpposites(EPackage.Registry reg)
EPackage.Registrythat the environments I create will use to look up packages. A new
DefaultOppositeEndFinderobject is created for the specific package registry provided as
reg- my package registry (must not be
public EcoreEnvironmentFactoryWithHiddenOpposites(EPackage.Registry reg, OppositeEndFinder oppositeEndFinder)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.