Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 144210

Summary: No public API to parse context declarations
Product: [Modeling] OCL Reporter: Christian Damus <give.a.damus>
Component: CoreAssignee: Christian Damus <give.a.damus>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P2 Keywords: api, plan
Version: 1.0.0   
Target Milestone: M5   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Christian Damus CLA 2006-05-29 07:30:50 EDT
The available public APIs for parsing (IOCLHelper, ExpressionsUtil) do not support parsing of context declarations; they only support individual constraint/query expressions.

Context declarations are particularly important to clients that need to implement bulk input of constraints, as any number of constraints can be declared in the same context using OCL.  Moreover, this is required to support the OCL spec's notion of an OCL resource or document, which can define all of the constraints and additional features for some model, separately from that model.

Currently, clients can only use the internal OCLParser class.  I suggest making an IOCLParser interface (implemented by OCLParser) with an accompanying factory class OCLParserFactory.
Comment 1 Christian Damus CLA 2006-07-19 10:02:25 EDT
Reforecasting to 2.0/1.1, as this adds new API.
Comment 2 Christian Damus CLA 2006-11-17 11:57:07 EST
Est.: .5w
Comment 3 Christian Damus CLA 2007-01-26 16:49:23 EST
Committed as part of the EMF 2.3 adoption feature (bug 156361).  The org.eclipse.ocl.OCL class now provides API for parsing OCL documents.
Comment 4 Nick Boldt CLA 2008-01-28 16:36:45 EST
Move to verified as per bug 206558.
Comment 5 Ed Willink CLA 2011-05-27 02:38:07 EDT
Closing after over a year in verified state.
Comment 6 Ed Willink CLA 2011-05-27 02:40:48 EDT
Closing after over a year in verified state.