Re: [atl_discussion] UML2 transformation

From: Guillaume Savaton <guillaume.savaton_at_example.com>
Date: Tue Feb 01 2005 - 11:47:37 CET

Peter Rosenthal a écrit :

> Hello,
>
> The program below works as indicated by Guillaume if the multiplicity is
> 0..1.
>
> However the returnResult has the multiplicity 0..n which means that it is
> represented by a collection. You need to test if the collection is empty,
> and not if the collection is null.
>
> Try to use ->size()=0

Another solution is to use ->isEmpty()

I was wondering if ->notEmpty() is supported ?

-- 
Guillaume Savaton
----------------------------
ESEO
4, rue Merlet de la Boulaye - BP 30926
49009 Angers Cedex 01
France
Tél (ligne directe) : +33(0)2.41.86.67.60
Tél (accueil) : +33(0)2.41.86.67.67
Fax : +33(0)2.41.87.99.27
           

Received on Tue Feb 01 02:47:41 2005

This archive was generated by hypermail 2.1.8 : Thu Jan 18 2007 - 15:04:54 CET