|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
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
OCLHelper s. |
Exception Summary | |
---|---|
OCLParsingException | Deprecated. Use the ParserException type, instead. |
Definition of the OCL Helper API for syntax completion support and a simplified parsing model.
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
Choice
s, 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. |
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |