public class OCL
extends java.lang.Object
OppositeEndFinder
. The OCL environments
returned by the operations on this class use the ExtentMap
which is consistently defined via the
OppositeEndFinder.getAllInstancesSeenBy(org.eclipse.emf.ecore.EClass, org.eclipse.emf.common.notify.Notifier)
operation definition of the OppositeEndFinder
used.
If no specific OppositeEndFinder
is provided, e.g. by using newInstance()
, the
DefaultOppositeEndFinder
will be used consistently, also for the definition of the
ExtentMap
.
Constructor and Description |
---|
OCL() |
Modifier and Type | Method and Description |
---|---|
static OCL |
newInstance()
Constructs an OCL instance that uses a
DefaultOppositeEndFinder and the default package
registry, yet uses the non-default ExtentMap which defines allInstances
results consistently with the opposite end finder being used. |
static OCL |
newInstance(EcoreEnvironmentFactoryWithScopedExtentMap factory)
Constructs an OCL instance that uses the provided factory's opposite end
finder and registry, yet uses the non-default
ExtentMap which
defines allInstances results consistently with the opposite
end finder being used. |
static OCL |
newInstance(org.eclipse.emf.ecore.EPackage.Registry registry)
Constructs the OCL instance so that metamodel lookups are performed with the
registry
provided. |
static OCL |
newInstance(org.eclipse.emf.ecore.EPackage.Registry registry,
OppositeEndFinder oppositeEndFinder)
Uses the specific opposite end finder to parameterize the OCL environment returned.
|
static OCL |
newInstance(OppositeEndFinder oppositeEndFinder)
Uses the specific opposite end finder to parameterize the OCL environment returned.
|
public static OCL newInstance()
DefaultOppositeEndFinder
and the default package
registry, yet uses the non-default ExtentMap
which defines allInstances
results consistently with the opposite end finder being used.public static OCL newInstance(EcoreEnvironmentFactoryWithScopedExtentMap factory)
ExtentMap
which
defines allInstances
results consistently with the opposite
end finder being used.public static OCL newInstance(org.eclipse.emf.ecore.EPackage.Registry registry)
registry
provided. A DefaultOppositeEndFinder
is used for hidden opposite retrieval/navigation as
well as for allInstances
evaluation.public static OCL newInstance(OppositeEndFinder oppositeEndFinder)
allInstances
operation calls by means of an
ExtentMap
parameterized with this opposite end finder.oppositeEndFinder
- if null
, a DefaultOppositeEndFinder
is used instead.public static OCL newInstance(org.eclipse.emf.ecore.EPackage.Registry registry, OppositeEndFinder oppositeEndFinder)
allInstances
operation calls by means of an
ExtentMap
parameterized with this opposite end finder.registry
- the package registry to use for metamodel package lookupsoppositeEndFinder
- if null
, a DefaultOppositeEndFinder
is used instead.