## Deprecated API

Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Exceptions
- Deprecated Methods

Deprecated Interfaces
org.eclipse.emf.ocl.types.AnyType Use the `AnyType` interface, instead. Note also, that the `OCLStandardLibrary.getOclAny()` method provides the `OclAny` singleton instance of this metaclass.
org.eclipse.emf.ocl.expressions.AssociationClassCallExp Use the `AssociationClassCallExp` interface, instead.
org.eclipse.emf.ocl.utilities.ASTNode Use the `ASTNode` interface, instead.
org.eclipse.emf.ocl.types.BagType Use the `BagType` interface, instead. Note also, that the `OCLStandardLibrary.getBag()` method provides the `Bag(T)` generic instance of this metaclass.
org.eclipse.emf.ocl.expressions.BooleanLiteralExp Use the `BooleanLiteralExp` interface, instead.
org.eclipse.emf.ocl.expressions.CallExp Use the `CallExp` interface, instead.
org.eclipse.emf.ocl.utilities.CallingASTNode Use the `CallingASTNode` interface, instead.
org.eclipse.emf.ocl.uml.CallOperationAction Use the `CallOperationAction` interface, instead.
org.eclipse.emf.ocl.expressions.CollectionItem Use the `CollectionItem` interface, instead.
org.eclipse.emf.ocl.expressions.CollectionLiteralExp Use the `CollectionLiteralExp` interface, instead.
org.eclipse.emf.ocl.expressions.CollectionLiteralPart Use the `CollectionLiteralPart` interface, instead.
org.eclipse.emf.ocl.expressions.CollectionRange Use the `CollectionRange` interface, instead.
org.eclipse.emf.ocl.types.CollectionType Use the `CollectionType` interface, instead. Note also, that the `OCLStandardLibrary.getCollection()` method provides the `Collection(T)` generic instance of this metaclass.
org.eclipse.emf.ocl.uml.Constraint Use the `Constraint` interface, instead.
org.eclipse.emf.ocl.types.ElementType Use the `ElementType` interface, instead. Note also, that the `OCLStandardLibrary.getOclElement()` method provides the `OclElement` generic instance of this metaclass.
org.eclipse.emf.ocl.expressions.EnumLiteralExp Use the `EnumLiteralExp` interface, instead.
org.eclipse.emf.ocl.parser.Environment Use the `Environment` interface, instead.
org.eclipse.emf.ocl.parser.EnvironmentFactory Use the `EnvironmentFactory` interface, instead.
org.eclipse.emf.ocl.parser.EvaluationEnvironment Use the `EvaluationEnvironment` interface, instead.
org.eclipse.emf.ocl.expressions.EvaluationVisitor Use the `EvaluationVisitor` interface, instead.
org.eclipse.emf.ocl.expressions.ExpressionsFactory Use the `EcoreFactory` interface, instead.
org.eclipse.emf.ocl.expressions.ExpressionsPackage Use the `ExpressionsPackage` interface, instead.
org.eclipse.emf.ocl.expressions.FeatureCallExp Use the `FeatureCallExp` interface, instead.
org.eclipse.emf.ocl.expressions.IfExp Use the `IfExp` interface, instead.
org.eclipse.emf.ocl.expressions.IntegerLiteralExp Use the `IntegerLiteralExp` interface, instead.
org.eclipse.emf.ocl.expressions.InvalidLiteralExp Use the `InvalidLiteralExp` interface, instead.
org.eclipse.emf.ocl.types.InvalidType Use the `InvalidType` interface, instead. Note also, that the `OCLStandardLibrary.getInvalid()` method provides the `Invalid` singleton instance of this metaclass.
org.eclipse.emf.ocl.helper.IOCLHelper Use the `OCLHelper` interface, instead.
org.eclipse.emf.ocl.expressions.IterateExp Use the `IterateExp` interface, instead.
org.eclipse.emf.ocl.expressions.IteratorExp Use the `IteratorExp` interface, instead.
org.eclipse.emf.ocl.expressions.LetExp Use the `LetExp` interface, instead.
org.eclipse.emf.ocl.expressions.LiteralExp Use the `LiteralExp` interface, instead.
org.eclipse.emf.ocl.expressions.LoopExp Use the `LoopExp` interface, instead.
org.eclipse.emf.ocl.expressions.MessageExp Use the `MessageExp` interface, instead.
org.eclipse.emf.ocl.types.MessageType Use the `MessageType` interface, instead. Note also, that the `OCLStandardLibrary.getOclMessage()` method provides the `OclMessage` generic instance of this metaclass.
org.eclipse.emf.ocl.expressions.NavigationCallExp Use the `NavigationCallExp` interface, instead.
org.eclipse.emf.ocl.expressions.NullLiteralExp Use the `NullLiteralExp` interface, instead.
org.eclipse.emf.ocl.expressions.NumericLiteralExp Use the `NumericLiteralExp` interface, instead.
org.eclipse.emf.ocl.expressions.OCLExpression Use the `OCLExpression` interface, instead.
org.eclipse.emf.ocl.expressions.OperationCallExp Use the `OperationCallExp` interface, instead.
org.eclipse.emf.ocl.types.OrderedSetType Use the `OrderedSetType` interface, instead. Note also, that the `OCLStandardLibrary.getOrderedSet()` method provides the `OrderedSet(T)` generic instance of this metaclass.
org.eclipse.emf.ocl.parser.PersistentEnvironment Use the `Environment` interface, instead.
org.eclipse.emf.ocl.utilities.PredefinedType Use the `PredefinedType` interface, instead.
org.eclipse.emf.ocl.types.PrimitiveBoolean Use the `PrimitiveType` interface, instead. Note also, that the `OCLStandardLibrary.getBoolean()` method provides the `Boolean` instance of this metaclass.
org.eclipse.emf.ocl.types.PrimitiveInteger Use the `PrimitiveType` interface, instead. Note also, that the `OCLStandardLibrary.getInteger()` method provides the `Integer` instance of this metaclass.
org.eclipse.emf.ocl.expressions.PrimitiveLiteralExp Use the `PrimitiveLiteralExp` interface, instead.
org.eclipse.emf.ocl.types.PrimitiveReal Use the `PrimitiveType` interface, instead. Note also, that the `OCLStandardLibrary.getReal()` method provides the `Real` instance of this metaclass.
org.eclipse.emf.ocl.types.PrimitiveString Use the `PrimitiveType` interface, instead. Note also, that the `OCLStandardLibrary.getString()` method provides the `String` instance of this metaclass.
org.eclipse.emf.ocl.types.PrimitiveType Use the `PrimitiveType` interface, instead.
org.eclipse.emf.ocl.expressions.PropertyCallExp Use the `PropertyCallExp` interface, instead.
org.eclipse.emf.ocl.query.Query Use the `Query` interface with the `OCL` class, instead.
org.eclipse.emf.ocl.query.QueryFactory Use the `OCL` class to create `Query` instances, instead.
org.eclipse.emf.ocl.query.QueryPackage The `Query` API is not an element of the OCL abstract syntax model.
org.eclipse.emf.ocl.expressions.RealLiteralExp Use the `RealLiteralExp` interface, instead.
org.eclipse.emf.ocl.uml.SendSignalAction Use the `SendSignalAction` interface, instead.
org.eclipse.emf.ocl.types.SequenceType Use the `SequenceType` interface, instead. Note also, that the `OCLStandardLibrary.getSequence()` method provides the `Sequence(T)` generic instance of this metaclass.
org.eclipse.emf.ocl.types.SetType Use the `SetType` interface, instead. Note also, that the `OCLStandardLibrary.getSet()` method provides the `Set(T)` generic instance of this metaclass.
org.eclipse.emf.ocl.expressions.StateExp Use the `StateExp` interface, instead.
org.eclipse.emf.ocl.expressions.StringLiteralExp Use the `StringLiteralExp` interface, instead.
org.eclipse.emf.ocl.expressions.TupleLiteralExp Use the `TupleLiteralExp` interface, instead.
org.eclipse.emf.ocl.expressions.TupleLiteralPart Use the `TupleLiteralPart` interface, instead.
org.eclipse.emf.ocl.types.TupleType Use the `TupleType` interface, instead.
org.eclipse.emf.ocl.utilities.TypedASTNode Use the `TypedASTNode` interface, instead.
org.eclipse.emf.ocl.uml.TypedElement Use the `TypedElement` interface, instead.
org.eclipse.emf.ocl.expressions.TypeExp Use the `TypeExp` interface, instead.
org.eclipse.emf.ocl.parser.TypeResolver Use the `TypeResolver` interface with the `Environment`, instead.
org.eclipse.emf.ocl.types.TypesFactory Use the `EcoreFactory` interface, instead.
org.eclipse.emf.ocl.types.TypesPackage Use the `TypesPackage` interface, instead.
org.eclipse.emf.ocl.types.TypeType Use the `TypeType` interface, instead. Note also, that the `OCLStandardLibrary.getOclType()` method provides the `OclType` generic instance of this metaclass.
org.eclipse.emf.ocl.uml.UMLFactory Use the `EcoreFactory` interface, instead.
org.eclipse.emf.ocl.uml.UMLPackage Use the `EcorePackage` interface, instead.
org.eclipse.emf.ocl.expressions.UnspecifiedValueExp Use the `UnspecifiedValueExp` interface, instead.
org.eclipse.emf.ocl.utilities.UtilitiesFactory Use the `EcoreFactory` interface, instead.
org.eclipse.emf.ocl.utilities.UtilitiesPackage Use the `UtilitiesPackage` interface, instead.
org.eclipse.emf.ocl.expressions.Variable Use the `Variable` interface, instead.
org.eclipse.emf.ocl.expressions.VariableExp Use the `VariableExp` interface, instead.
org.eclipse.emf.ocl.utilities.Visitable Use the `Visitable` interface, instead.
org.eclipse.emf.ocl.expressions.Visitor Use the `Visitor` interface, instead.
org.eclipse.emf.ocl.types.VoidType Use the `VoidType` interface, instead. Note also, that the `OCLStandardLibrary.getOclVoid()` method provides the `OclVoid` singleton instance of this metaclass.

Deprecated Classes
org.eclipse.emf.ocl.parser.AbstractEnvironmentFactory Use the `AbstractEnvironmentFactory` class, instead.
org.eclipse.emf.ocl.expressions.util.AbstractVisitor Use the `AbstractVisitor` interface, instead.
org.eclipse.emf.ocl.helper.Choice Use the `Choice` interface with the `OCLHelper`, instead.
org.eclipse.emf.ocl.helper.ChoiceType Use the `ChoiceKind` enumeration with the `OCLHelper`, instead.
org.eclipse.emf.ocl.helper.ConstraintType Use the `ConstraintKind` enumeration with the `OCLHelper`, instead.
org.eclipse.emf.ocl.parser.EcoreEnvironment Use the `EcoreEnvironment` class, instead.
org.eclipse.emf.ocl.parser.EcoreEnvironmentFactory Use the `EcoreEnvironmentFactory` class, instead.
org.eclipse.emf.ocl.expressions.util.EvalEnvironment Use the `AbstractEvaluationEnvironment` or `EcoreEvaluationEnvironment` class, instead.
org.eclipse.emf.ocl.expressions.util.ExpressionsAdapterFactory Use the `ExpressionsAdapterFactory` class, instead.
org.eclipse.emf.ocl.expressions.util.ExpressionsSwitch Use the `ExpressionsSwitch` class, instead.
org.eclipse.emf.ocl.expressions.util.ExpressionsUtil Use the `OCL` and `OCLHelper` APIs, instead.
org.eclipse.emf.ocl.helper.HelperUtil Use the `OCL` class, instead, to create `OCLHelper`s.
org.eclipse.emf.ocl.query.util.QueryAdapterFactory The `Query` API is not an element, of the OCL abstract syntax model.
org.eclipse.emf.ocl.query.util.QuerySwitch The `Query` API is not an element of the OCL abstract syntax model.
org.eclipse.emf.ocl.parser.TypeResolverImpl Use the `AbstractTypeResolver` class, instead, with the `AbstractEnvironment`.
org.eclipse.emf.ocl.types.util.Types Use the `OCLStandardLibrary` interface, instead, to access the standard library types.
org.eclipse.emf.ocl.types.util.TypesAdapterFactory Use the `TypesAdapterFactory` class, instead.
org.eclipse.emf.ocl.types.util.TypesSwitch Use the `TypesSwitch` class, instead.
org.eclipse.emf.ocl.uml.util.UMLAdapterFactory Use the `EcoreAdapterFactory` class, instead.
org.eclipse.emf.ocl.uml.util.UMLSwitch Use the `EcoreSwitch` class, instead.
org.eclipse.emf.ocl.uml.util.UMLTypeUtil Use the `UMLReflection` interface, instead, to introspect UML models.
org.eclipse.emf.ocl.utilities.util.UtilitiesAdapterFactory Use the `UtilitiesAdapterFactory` class, instead.
org.eclipse.emf.ocl.utilities.util.UtilitiesSwitch Use the `UtilitiesSwitch` class, instead.

Deprecated Exceptions
org.eclipse.emf.ocl.helper.OCLParsingException Use the `ParserException` type, instead.
org.eclipse.emf.ocl.parser.ParserException Use the `ParserException` type, instead.
org.eclipse.emf.ocl.parser.SemanticException Use the `SemanticException` interface, instead.

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.emf.ocl.expressions.impl.ExpressionsFactoryImpl.getPackage()
org.eclipse.emf.ocl.query.impl.QueryFactoryImpl.getPackage()
org.eclipse.emf.ocl.types.impl.TypesFactoryImpl.getPackage()
org.eclipse.emf.ocl.uml.impl.UMLFactoryImpl.getPackage()
org.eclipse.emf.ocl.utilities.impl.UtilitiesFactoryImpl.getPackage()
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.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.emf.ocl.helper.IOCLHelper.getSyntaxHelp(String) Use the `IOCLHelper.getSyntaxHelp(ConstraintType, String)` method, instead, to get the correct completions for the context
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.