Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367523 - [pivot] Unify UML bounded collections with OCL nested collections
Summary: [pivot] Unify UML bounded collections with OCL nested collections
Status: NEW
Alias: None
Product: OCL
Classification: Modeling
Component: Core (show other bugs)
Version: 3.2.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: OCL Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-23 16:38 EST by Ed Willink CLA
Modified: 2013-03-18 08:28 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2011-12-23 16:38:57 EST
OCL has no support for bounded collections: add upper/lower to Collection.

This then eliminates the need for multiplicities and all the bug opportunities from failing to convert types to collections.

This also requires the Concrete Syntaxes to be revised, which can solve the problem whereby the lack of a multiplicity means that derived Complete OCL properties cannot be optional.
Comment 1 Ed Willink CLA 2012-01-05 01:42:10 EST
From Bug 356243, the following OCLinEcore

property is_always_typed : Classifier<String> { ordered };

fails to parse since arbitrary type references are not allowed; not even Set(String).
Comment 2 Ed Willink CLA 2012-01-30 01:57:27 EST
(In reply to comment #1)
> fails to parse since arbitrary type references are not allowed; not even
> Set(String).

I just tried to use OCLinECore using Complete OCL type syntax; very confusing.

Must add support for Sequence(String) etc.
Comment 3 Ed Willink CLA 2012-08-30 13:15:46 EDT
The pivot model now uses bounded collections and there is a concrete syntax.

Needs more testing.