Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Return OrderedSet{null} for many features
Return OrderedSet{null} for many features [message #1066903] Fri, 05 July 2013 02:20 Go to next message
Mario Bender is currently offline Mario Bender
Messages: 1
Registered: July 2013
Junior Member
Hello ,

in our current design we decided to return an OrderedSet{} for unknown results, where the arity is *.


But ideally would be OrderedSet{null} for many features.


Is it possible to allow to return OrderedSet{null} and if so how?


Thanks in advance.
Re: Return OrderedSet{null} for many features [message #1067017 is a reply to message #1066903] Fri, 05 July 2013 09:02 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 3844
Registered: July 2009
Senior Member
Hi

OrderedSet{null} should be valid.

You should be able to use either "OrderedSet{null}" or
"null->asOrderedSet()"

You haven't described enough about your design context to enable me to
comment properly, but some of your phrasing makes me deeply suspicious.
You seem to be busy reusing a value that has a valid meaning to signal
some alternate meaning. This may bite you as the implementation progresses.

Regards

Ed Willink


On 05/07/2013 13:40, Mario Bender wrote:
> Hello ,
>
> in our current design we decided to return an OrderedSet{} for unknown
> results, where the arity is *.
>
>
> But ideally would be OrderedSet{null} for many features.
>
>
> Is it possible to allow to return OrderedSet{null} and if so how?
>
>
> Thanks in advance.
>
Previous Topic:OCL Editor
Next Topic:Referencing other Enumerations from other .ecore Model
Goto Forum:
  


Current Time: Sat Apr 19 15:57:09 EDT 2014

Powered by FUDForum. Page generated in 0.01783 seconds