org.eclipse.emf.ocl.helper
Class HelperUtil

java.lang.Object
  extended byorg.eclipse.emf.ocl.helper.HelperUtil

public class HelperUtil
extends java.lang.Object

Factory class for the creation of IOCLHelpers. Clients should use the HelperUtil.createOCLHelper() or HelperUtil.createOCLHelper(EnvironmentFactory) method to obtain OCL helpers.


Method Summary
static IOCLHelper createOCLHelper()
          Creates an IOCLHelper for the Ecore metamodel.
static IOCLHelper createOCLHelper(EnvironmentFactory factory)
          Creates an IOCLHelper for the specified EMF metamodel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createOCLHelper

public static IOCLHelper createOCLHelper()
Creates an IOCLHelper for the Ecore metamodel.

Returns:
a new Ecore OCL helper

createOCLHelper

public static IOCLHelper createOCLHelper(EnvironmentFactory factory)
Creates an IOCLHelper for the specified EMF metamodel. The factory creates OCL environments (with the packages, classifiers, states, etc.) from the instances of the metaclasses that mimic OCL/UML classifiers.

Parameters:
factory - the metamodel-specific OCL environment factory
Returns:
the new OCL helper

Copyright 2002, 2006 IBM Corporation and others.
All Rights Reserved.