list of dots Digital Research Alliance of Canada logo  NSERC logo  University of Ottawa logo / UniversitĂ© d'Ottawa

User Manual    [Previous]   [Next]   

E024 Sort Key Not of Umple Type

Umple semantic error reported when a sort key for a sorted association does not use one of the builtin Umple types

The sort key for an sorted association must have one of the simple types Integer, Short, Long, Double, Float or String. This allows sensible code to be generated for comparisons. The set of allowed types may be expanded in the future.

Example

// This example generates the error message
class X {
  1 -- * Y sorted {endDate};
}

class Y {
   Date endDate;
}
      

Load the above code into UmpleOnline