Re[2]: Optional attributes



Date view Thread view Subject view Author view Attachment view

From: John Daniels (jd@syntropy.co.uk)
Date: Tue 18 May 2004 - 20:29:40 BST


Hi Shane,

> With this approach, "null" values can still be represented for entities
> with a [0..1] multiplicity constraint. In this case, we could have an 
> operation "oclIsNull", which returns true if the result is empty, and 
> false otherwise, making use of OCL's double interpretation 
> (object/collection) of navigation to entities with [0..1].

We already have isEmpty() and notEmpty() which, while inelegant, do
the job. They are what I've always used.

Do I need to submit something formally to someone to get this whole
issue looked at during the finalization?

--John

Date view Thread view Subject view Author view Attachment view