"Seegrid will be due for a migration to confluence on the 1st of August. Any update on or after the 1st of August will NOT be migrated"

Test-015 - Restrictions on use of «DataType», «CodeList» and «Enumeration» classes

Contents

Related pages



Description

Classes stereotyped <<DataType>>, <<CodeList>> or <<Enumeration>> should only be used in the following contexts:
  • attribute types;
  • «DataType» may be the source of any association
  • target of composition association, navigable towards the <<DataType>>, <<CodeList>> or <<Enumeration>>.

In particular, use as target of any other association is an error.

Pass message

All <<DataType>>, <<CodeList>> or <<Enumeration>> classes are used correctly in the model.

Test Model

Fail message

Illegal use of <<DataType>>, <<CodeList>> or <<Enumeration>> has been encountered:
  1. In an association a %STEREOTYPE% class "%CLASS%" should be used as a target of composition association between class "%SOURCE_CLASS%" and class "%TARGET_CLASS%".
  2. In an association a %STEREOTYPE% class "%CLASS%" should be used as a target of composition association between class "%SOURCE_CLASS%" and class "%TARGET_CLASS%" or as a source of an outbound association.

 
Topic revision: r4 - 15 Oct 2010, UnknownUser
 

Current license: All material on this collaboration platform is licensed under a Creative Commons Attribution 3.0 Australia Licence (CC BY 3.0).