public class OCLFactory
extends java.lang.Object
OCL objects
that are properly and consistently configured. This factory allows for the
customization and extension of the creation process.
A default instance is exposed by getInstance().
| Modifier | Constructor and Description |
|---|---|
protected |
OCLFactory(org.eclipse.emf.ecore.EPackage.Registry registry) |
| Modifier and Type | Method and Description |
|---|---|
OCL |
createOCL(EcoreEnvironmentFactory environmentFactory)
Creates an OCL instance that uses the environment factory provided.
|
OCL |
createOCL(OppositeEndFinder oppositeEndFinder)
Create an OCL instance that uses the
OppositeEndFinder specified as parameter. |
static OCLFactory |
getInstance() |
static OCLFactory |
getInstance(org.eclipse.emf.ecore.EPackage.Registry registry) |
protected OCLFactory(org.eclipse.emf.ecore.EPackage.Registry registry)
public static OCLFactory getInstance()
public static OCLFactory getInstance(org.eclipse.emf.ecore.EPackage.Registry registry)
public OCL createOCL(EcoreEnvironmentFactory environmentFactory)
OCL#newInstance(org.eclipse.ocl.EnvironmentFactory).public OCL createOCL(OppositeEndFinder oppositeEndFinder)
OppositeEndFinder specified as parameter.
Implementations can achieve this, e.g., by using a factory
which is initialized such that it returns the OppositeEndFinder specified here
from its EcoreEnvironmentFactory.getOppositeEndFinder() method.