Skip navigation links

Package org.eclipse.ocl.types

Specification of the Types package of the Object Constraint Lanuage version 2.0 Abstract Syntax model.

See: Description

Package org.eclipse.ocl.types Description

Specification of the Types package of the Object Constraint Lanuage version 2.0 Abstract Syntax model.

Package Specification

This package defines the API for the structure of parsed OCL expressions, as described in the Types package of the OCL specification version 2.0 with some extensions for this parser implementation. These extensions include:

None of these extensions of the model affects the XMI serialization of OCL expressions which, as much as possible, is conformant to the OCL specification.

Clients providing metamodel bindings for OCL (i.e., implementations of the API are required to define a package of type metaclasses extending those in this package. The OCL specification defines generalizations of all of these types to either the Classifier or DataType metaclasses of the UML (or EMOF or Core::Basic, according to the binding). Thus, providers of OCL bindings must ensure that their implementations of these OCL types specialize the appropriate metaclasses from their metamodels. This ensures that the OCL type system (for a particular environment) is uniform, so that typed elements such as OCLExpressions and Variables can be correctly typed by the OCL standard types (and the environment can implement the OCLStandardLibrary interface).

See Also:
PrimitiveType, AnyType, CollectionType, OCLStandardLibrary, TypedElement
Skip navigation links

Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.