|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Interface Summary | |
|---|---|
| Environment | Deprecated. Use the Environment interface,
instead. |
| EnvironmentFactory | Deprecated. Use the EnvironmentFactory interface,
instead. |
| EvaluationEnvironment | Deprecated. Use the EvaluationEnvironment interface,
instead. |
| PersistentEnvironment | Deprecated. Use the Environment interface,
instead. |
| TypeResolver | Deprecated. Use the TypeResolver interface with the
Environment, instead. |
| Class Summary | |
|---|---|
| AbstractEnvironmentFactory | Deprecated. Use the AbstractEnvironmentFactory class,
instead. |
| EcoreEnvironment | Deprecated. Use the EcoreEnvironment class,
instead. |
| EcoreEnvironmentFactory | Deprecated. Use the EcoreEnvironmentFactory class,
instead. |
| TypeResolverImpl | Deprecated. Use the AbstractTypeResolver class,
instead, with the AbstractEnvironment. |
| Exception Summary | |
|---|---|
| ParserException | Deprecated. Use the ParserException type,
instead. |
| SemanticException | Deprecated. Use the SemanticException interface,
instead. |
Definition of the extensible environment API for OCL parsing and evaluation.
This package defines the API for the environments in which OCL expressions are parsed and evaluated.
The Environment interface describes the
environment in which an OCL expression is parsed. The environment provides
two major functions to the parser:
Environments are created by environment factories. An
EnvironmentFactory is provided to an
IOCLHelper to create environments when
it needs to, or by clients to create environments for working with the
ExpressionsUtil utilities.
Environment factories are useful for adapting metamodels to Ecore (possibly
using the extensions in the org.eclipse.emf.ocl.uml package) to use
OCL on them. The environments that they create would do the language mapping to
look up classifiers etc. as appropriate to the metamodel. A default factory
implementation for Ecore is provided and may be extended by clients to support
other metamodels.
While the Environment class provides a
parse-time environment, the EvaluationEnvironment
keeps track of the current values of variables in the evaluation of an OCL
expression. The AbstractEnvironmentFactory
provides a default implementation suitable for most applications. Factories
that customize the parser environments may, however, need to customize the
evaluation environment as well to perform transformations on the values
that it maintains.
org.eclipse.emf.ocl.helper,
ExpressionsUtil,
EnvironmentFactory,
Environment
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||