/** * Creates a new <code>OCL</code> using the shared Ecore environment * factory instance. * * @return the new <code>OCL</code> */ public static OCL newInstance() { return new OCL(EcoreEnvironmentFactory.INSTANCE); }
/** * Creates a new <code>OCL</code> using the specified Ecore environment * factory. * * @param envFactory an environment factory for Ecore * @return the new <code>OCL</code> */ public static OCL newInstance(EnvironmentFactory< EPackage, EClassifier, EOperation, EStructuralFeature, EEnumLiteral, EParameter, EObject, CallOperationAction, SendSignalAction, Constraint, EClass, EObject> envFactory) { return new OCL(envFactory); }
/** * Creates a new <code>OCL</code> using the specified initial Ecore * environment. * * @param env an environment for Ecore * @return the new <code>OCL</code> */ public static OCL newInstance(Environment< EPackage, EClassifier, EOperation, EStructuralFeature, EEnumLiteral, EParameter, EObject, CallOperationAction, SendSignalAction, Constraint, EClass, EObject> env) { return new OCL(env); }
/** * Creates a new <code>OCL</code> using the specified Ecore environment * factory and a resource from which to load the initial environment. * * @param envFactory an environment factory for Ecore * @param resource the resource containing a persistent environment * (which may be empty for an initially empty environment) * @return the new <code>OCL</code> */ public static OCL newInstance(EnvironmentFactory< EPackage, EClassifier, EOperation, EStructuralFeature, EEnumLiteral, EParameter, EObject, CallOperationAction, SendSignalAction, Constraint, EClass, EObject> envFactory, Resource resource) { return new OCL(envFactory, resource); }