com.adobe.idp.dsc.filter
Class Sort

java.lang.Object
  extended by com.adobe.idp.dsc.filter.Sort
All Implemented Interfaces:
Serializable

public class Sort
extends Object
implements Serializable

This class represents the sort order for a given property.

See Also:
Serialized Form

Field Summary
static String ASC
          Ascending sort order.
static String DESC
          Desccending sort order.
 
Constructor Summary
Sort()
           
 
Method Summary
 String getDirection()
          Retrieves the sorting direction, which can be either ascending or descending.
 String getProperty()
          Retrieves the property on which to sort.
 void setDirection(String aDirection)
          Sets the sorting direction, which can be either ascending or descending.
 void setProperty(String aPropName)
          Sets the property on which to sort.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ASC

public static final String ASC
Ascending sort order.

See Also:
Constant Field Values

DESC

public static final String DESC
Desccending sort order.

See Also:
Constant Field Values
Constructor Detail

Sort

public Sort()
Method Detail

setProperty

public void setProperty(String aPropName)
Sets the property on which to sort.

Parameters:
aPropName - The property name.

getProperty

public String getProperty()
Retrieves the property on which to sort.

Returns:
The property name.

setDirection

public void setDirection(String aDirection)
Sets the sorting direction, which can be either ascending or descending.

Parameters:
aDirection - The sorting direction. Its values can be Sort.ASC (ascending) or Sort.DESC (descending).

getDirection

public String getDirection()
Retrieves the sorting direction, which can be either ascending or descending.

Returns:
The sorting direction. Its values can be Sort.ASC (ascending) or Sort.DESC (descending).


[an error occurred while processing this directive] [an error occurred while processing this directive]