## Deprecated API

Contents

- Deprecated Methods

Deprecated Methods
org.eclipse.ocl.AbstractEnvironment.addOperation(C, O) Since 1.2, use the `Environment.Internal.addHelperOperation(Object, Object)` API, instead
org.eclipse.ocl.AbstractEnvironment.addProperty(C, P) Since 1.2, use the `Environment.Internal.addHelperProperty(Object, Object)` API, instead
org.eclipse.ocl.util.TypeUtil.checkMutuallyComparable(Environment<PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E>, C, C, int) Use the `TypeUtil.checkMutuallyComparable(Object, Environment, Object, Object, int)` method, instead
org.eclipse.ocl.util.TypeUtil.commonSuperType(Environment<PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E>, C, C) Use the `TypeUtil.commonSuperType(Object, Environment, Object, Object)` method, instead.
org.eclipse.ocl.ecore.EcoreEnvironment.createTypeResolver() Override the `EcoreEnvironment.createTypeResolver(Resource)` method, instead, handling the case where the resource is `null`
org.eclipse.ocl.uml.UMLEnvironment.createTypeResolver() Override the `UMLEnvironment.createTypeResolver(Resource)` method, instead, handling the case where the resource is `null`
org.eclipse.ocl.cst.impl.CSTFactoryImpl.getPackage()
org.eclipse.ocl.expressions.impl.ExpressionsFactoryImpl.getPackage()
org.eclipse.ocl.types.impl.TypesFactoryImpl.getPackage()
org.eclipse.ocl.utilities.impl.UtilitiesFactoryImpl.getPackage()
org.eclipse.ocl.ecore.impl.EcoreFactoryImpl.getPackage()
org.eclipse.ocl.uml.impl.UMLFactoryImpl.getPackage()
org.eclipse.ocl.AbstractEnvironment.getParent() Since 1.2, use the `AbstractEnvironment.getInternalParent()` method, instead.
org.eclipse.ocl.util.TypeUtil.getResultType(Environment<PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E>, C, O) Use the `TypeUtil.getResultType(Object, Environment, Object, Object)` method, instead
org.eclipse.ocl.util.OCLStandardLibraryUtil.getResultTypeOf(Environment<PK, C, O, P, EL, PM, ST, COA, SSA, CT, CLS, E>, C, int, List<? extends TypedElement<C>>) Use the `OCLStandardLibraryUtil.getResultTypeOf(Object, Environment, Object, int, List)` method, instead, which doesn't fail on the first problem
org.eclipse.ocl.util.TypeUtil.type1AsType2(Environment<PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E>, C, C) Use the `TypeUtil.compatibleTypeMatch(Environment, Object, Object)` method, instead, to check whether the cast is acceptable
org.eclipse.ocl.util.TypeUtil.typeCompare(Environment<PK, C, O, P, EL, PM, S, COA, SSA, CT, CLS, E>, C, C) Use the `TypeUtil.getRelationship(Environment, Object, Object)` method, instead.

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