Show in Frame No Frame
Up Previous Next Title Page Index Contents Search

6.1.8 Chain output commands

Quite often, navigating with do loops would produce exactly one element (or none), whose name we want to output. For example, navigating from a UML Class to its superclass (with no multiple inheritance), to output its name:
do ~Specialization
{  do >Generalization [UML]
   {  do ~Superclass
      {  :Class name;
      }
   }
}
In such cases, it is possible to use a shortcut syntax, the chain output command:
~Specialization>Generalization [UML]~Superclass:Class name;
A chain output command is thus a chain of type commands, ending in a property output command. There must always be only one element satisfying the chain conditions up to the property command. For this reason, a generator using this structure will show a warning to the metamodeler when run from the Generator Editor (but not to modelers, when run from elsewhere).

Show in Frame No Frame
Up Previous Next Title Page Index Contents Search