org.eclipse.ocl.examples.impactanalyzer.util
Class OCLFactory

java.lang.Object
  extended by 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)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OCLFactory

protected OCLFactory(org.eclipse.emf.ecore.EPackage.Registry registry)
Method Detail

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.