Package org.eclipse.emf.ocl.helper

Definition of the OCL Helper API for syntax completion support and a simplified parsing model.

See:
          Description

Interface Summary
IOCLHelper Deprecated. Use the OCLHelper interface, instead.
 

Class Summary
Choice Deprecated. Use the Choice interface with the OCLHelper, instead.
ChoiceType Deprecated. Use the ChoiceKind enumeration with the OCLHelper, instead.
ConstraintType Deprecated. Use the ConstraintKind enumeration with the OCLHelper, instead.
HelperUtil Deprecated. Use the OCL class, instead, to create OCLHelpers.
 

Exception Summary
OCLParsingException Deprecated. Use the ParserException type, instead.
 

Package org.eclipse.emf.ocl.helper Description

Definition of the OCL Helper API for syntax completion support and a simplified parsing model.

Package Specification

The primary interface in this package is the IOCLHelper, which provides OCL syntax completion assistance and parsing support. Instances are obtained from the HelperUtil class.

OCL code completion suggestions are represented as Choices, which indicate the text of a language construct, a description, and the type of construct.

The IOCLHelper also provides simple, but flexible, support for parsing OCL expressions: invariants in a classifier context, and pre/post conditions and body conditions in an operation context. Evaluation is also supported for invariant constraints. The helper is constructed with an EnvironmentFactory that creates the necessary environments for parsing the client's metamodel. This allows clients of other metamodels than Ecore (e.g., SQL, UML2) that describe software systems in terms of classifiers to use OCL to expression constraints. An environment maps the metamodel in question to the OCL parser's extended Ecore metamodel.


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