TOP

orderBy

Description

A composite comparator to order the model elements defined by the order of the nested comparators. This way any objects that are equal according to comparator i will be additionally compared with comparator i+1
   Example:
     <oderBy>
       <orderByClass>...</orderByClass>
       <orderByQualifedName>...</orderByQualifedName>
     </orderBy>
 

Implementation class

net.mdatools.modelant.core.type.CompositeComparator

Nested elements

Element Description
List the nested comparators. Their order is significant - the earlier listed comparators will be applied first. Choose among:
Element Description
orderBy A composite comparator to order the model elements defined by the order of the nested comparators. This way any objects that are equal according to comparator i will be additionally compared with comparator i+1
   Example:
     <oderBy>
       <orderByClass>...</orderByClass>
       <orderByQualifedName>...</orderByQualifedName>
     </orderBy>
 
orderByClass State a list of metamodel classes to order their instances. The instances of different (listed) classes are ordered according to the positions of those classes in the list. Instances of not listed classes are just kept as they are, after any instances of listed classes.
orderByField This comparator should be used for ordering of model elements alphabetically, ignoring case, according to the printed value of the specific named field. If there is no such field (or association) in the model element of at least of one of the two compared model objects, then they are considered equal.
orderByPrint Compare model elements by their restricted print representations
orderByQualifiedName Compare model elements by their UML 1.3 qualified names

Use <typedef resource="net/mdatools/modelant/core/antlib.xml"/>
Documentation generated by ant.doc Ant macro from ModelAnt by MDA Tools