org.eclipse.ocl.examples.pivot
Interface OCL.Query

All Superinterfaces:
QueryBase
All Known Implementing Classes:
QueryImpl
Enclosing class:
OCL

public static interface OCL.Query
extends QueryBase

Convenient interface aliasing the type parameter substitutions for the UML environment, for ease of typing.

Author:
Christian W. Damus (cdamus)

Method Summary
 OclExpression getExpression()
          Obtains the expression that I evaluate (or check as a boolean constraint).
 OCL getOCL()
           Obtains the OCL that created me.
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.QueryBase
check, check, evaluate, evaluate, evaluate, getEvaluationEnvironment, getModelManager, queryText, reject, resultType, select
 

Method Detail

getExpression

OclExpression getExpression()
Obtains the expression that I evaluate (or check as a boolean constraint).

The return type is narrowed to the Ecore binding for the generic OCLExpression<C> type.

Specified by:
getExpression in interface QueryBase
Returns:
my OCL expression

getOCL

OCL getOCL()

Obtains the OCL that created me.

Returns:
my originating OCL instance