org.deegree.filter.sort
Class SortProperty

java.lang.Object
  extended by org.deegree.filter.sort.SortProperty

public class SortProperty
extends Object

A sort criterion that consist of a property name plus sort order (ascending or descending).

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: schneider $

Constructor Summary
SortProperty(ValueReference propName, boolean sortAscending)
          Creates a new SortProperty.
 
Method Summary
 boolean getSortOrder()
          Returns the sort order.
 ValueReference getSortProperty()
          Returns the property that acts as the sort criterion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortProperty

public SortProperty(ValueReference propName,
                    boolean sortAscending)
Creates a new SortProperty.

Parameters:
propName - property that acts as the sort criterion
sortAscending - true: sort ascending, false: descending
Method Detail

getSortProperty

public ValueReference getSortProperty()
Returns the property that acts as the sort criterion.

Returns:
the property that acts as the sort criterion

getSortOrder

public boolean getSortOrder()
Returns the sort order.

Returns:
true, if the sort order is ascending, false if it is descending


Copyright © 2011. All Rights Reserved.