eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

[pivot] Complete the OCL facade class #931

Open eclipse-ocl-bot opened 1 week ago

eclipse-ocl-bot commented 1 week ago

| --- | --- | | Bugzilla Link | 382270 | | Status | NEW | | Importance | P3 normal | | Reported | Jun 11, 2012 11:58 EDT | | Modified | Jun 11, 2012 13:23 EDT | | Reporter | Ed Willink |

Description

The pivot variant of the OCL facade class lacks methos such as

setExtent\ addVariable

Also share the muliple cteateParserContext functionalities in a single utility routine.

eclipse-ocl-bot commented 1 week ago

By Adolfo Sanchez-Barbudo Herrera on Jun 11, 2012 13:23

As commented in Bug Bug 374846 comment 4 the following method could be changed to avoid potential CCE:

Change:

public Query createQuery(Constraint constraint) {\
    return new QueryImpl(this, (ExpressionInOCL) constraint.getSpecification());\
}\
\
by \
\
public Query createQuery(Constraint constraint) {\
    return new QueryImpl(this, getSpecification(constraint));\
}