com.sas.services.information.search
Enum SortOrder

com.sas.services.information.search.SortOrder
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SortOrder>

public enum SortOrder


Enum Constant Summary
CREATED_DATE
           
DESCRIPTION
           
MODIFIED_DATE
           
NAME
           
TYPE
           
 
Field Summary
static java.lang.String SORT_BY_CREATEDATE
           
static java.lang.String SORT_BY_DESC
           
static java.lang.String SORT_BY_MODIFIEDDATE
           
static java.lang.String SORT_BY_NAME
           
static java.lang.String SORT_BY_TYPE
           
 
Method Summary
static java.util.Comparator<PublicObjectInterface> getComparator(SortOrder[] order)
           
static SortOrder[] getDefaultOrder()
           
static boolean isSortingEnabled()
           
static void setSortingEnabled(boolean sortingAllowed)
           
static SortOrder valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SortOrder[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 

Enum Constant Detail

NAME

public static final SortOrder NAME

TYPE

public static final SortOrder TYPE

DESCRIPTION

public static final SortOrder DESCRIPTION

CREATED_DATE

public static final SortOrder CREATED_DATE

MODIFIED_DATE

public static final SortOrder MODIFIED_DATE
Field Detail

SORT_BY_NAME

public static final java.lang.String SORT_BY_NAME

SORT_BY_TYPE

public static final java.lang.String SORT_BY_TYPE

SORT_BY_DESC

public static final java.lang.String SORT_BY_DESC

SORT_BY_CREATEDATE

public static final java.lang.String SORT_BY_CREATEDATE

SORT_BY_MODIFIEDDATE

public static final java.lang.String SORT_BY_MODIFIEDDATE
Method Detail

values

public static SortOrder[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SortOrder c : SortOrder.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SortOrder valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getDefaultOrder

public static SortOrder[] getDefaultOrder()

isSortingEnabled

public static boolean isSortingEnabled()

setSortingEnabled

public static void setSortingEnabled(boolean sortingAllowed)

getComparator

public static java.util.Comparator<PublicObjectInterface> getComparator(SortOrder[] order)



Copyright © 2009 SAS Institute Inc. All Rights Reserved.