com.fatwire.assetapi.query
Class SortOrder

java.lang.Object
  extended by com.fatwire.assetapi.query.SortOrder

public final class SortOrder
extends java.lang.Object

This class represents a Sort order for asset instances to be returned.


Constructor Summary
SortOrder(java.lang.String attributeName, boolean asc)
          Creates a sort order for a single attribute
 
Method Summary
 java.lang.String getAttribute()
          Get the name of attribute
 boolean getDirection()
          Get sort direction, true for ascending, false for descending.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortOrder

public SortOrder(java.lang.String attributeName,
                 boolean asc)
Creates a sort order for a single attribute

Parameters:
attributeName - name of the attribute
asc - true for ascending, false for descending.
Method Detail

getAttribute

public java.lang.String getAttribute()
Get the name of attribute

Returns:
name of attribute

getDirection

public boolean getDirection()
Get sort direction, true for ascending, false for descending.

Returns:
true for ascending, false for descending.