[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.mdt.uml2.ocl] Re: How to validate uniqueness of class names within an entire package subtree

The way it's implemented in UML2, it will include any and all packages in a 
named element's ownership hierarchy...

Kenn

"Christian W. Damus" <cdamus@xxxxxxxxxx> wrote in message 
news:ej00uc$g7g$1@xxxxxxxxxxxxxxxxxxxx
> Hi, Kenn,
>
> Will that work also for classifiers nested within classifiers?  These have
> direct owning namespaces, but not packages, and I think that the way the
> OCL for allOwningPackages is defined means that it will return an empty
> sequence.
>
> That is to say, that I think the intent of the OCL specification for this
> operation is that it will result in an empty sequence.  The actually OCL 
> is
> syntactically invalid.
>
> Cheers,
>
> Christian
>
>
> Kenn Hussey wrote:
>
>> Note also that there is a "allOwningPackages()" operation defined on
>> NamedElement which may be more pertinent in cases where you're concerned
>> only with packages.
>>
>> Kenn
>>
>
> <snip>