<SORT> : Sort

Java class : leon.info.LySort

ROLE

This element defines a sort that may be applied to data of the application. The sort is combination of ordered sort criteria. Each sort criterion applies on a field of the same class with respect to the order as defined inside the model.

ATTRIBUTES

<!ATTLIST SORT
	  id ID #IMPLIED
	  template IDREF #IMPLIED>
Attribute Mand. Description Default
id no This is the identifier of the sort.  
template no Reference to a sort used as a pattern.  

ELEMENTS

<!ELEMENT SORT 
	  (NAME?,
	   GROUP?,
	   (SORT_CRITERIA | SORT_CRITERIA_REF)*)>
Element Mand. Mult. Description
NAME no no Name of the sort.
GROUP no no Group to which the sort belong.
SORT_CRITERIA yes no Criteria that belong to this sort.
SORT_CRITERIA_REF yes no Reference of criteria that belong to this sort.

SAMPLE

<!-- Sort with 2 criteria : descending order on "state" and ascending order on "name" -->
<SORT id="sort1">
	<SORT_CRITERIA idref="state" order='false'/>
	<SORT_CRITERIA idref="name"/>
</SORT>