org.eclipse.ocl.examples.impactanalyzer.util
Class OCLFactory
java.lang.Object
org.eclipse.ocl.examples.impactanalyzer.util.OCLFactory
public class OCLFactory
- extends java.lang.Object
Required by the Impact Analyzer to create 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()
.
- Author:
- Axel Uhl
Constructor Summary |
protected |
OCLFactory(org.eclipse.emf.ecore.EPackage.Registry registry)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OCLFactory
protected OCLFactory(org.eclipse.emf.ecore.EPackage.Registry registry)
getInstance
public static OCLFactory getInstance()
getInstance
public static OCLFactory getInstance(org.eclipse.emf.ecore.EPackage.Registry registry)
createOCL
public OCL createOCL(EcoreEnvironmentFactory environmentFactory)
- Creates an OCL instance that uses the environment factory provided. See also
OCL.newInstance(org.eclipse.ocl.EnvironmentFactory)
.
createOCL
public OCL createOCL(OppositeEndFinder oppositeEndFinder)
- Create an OCL instance that uses the
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.