Esri Geoportal Server
1.0

com.esri.gpt.framework.request
Enum SortOption.SortDirection

java.lang.Object
  extended by java.lang.Enum<SortOption.SortDirection>
      extended by com.esri.gpt.framework.request.SortOption.SortDirection
All Implemented Interfaces:
Serializable, Comparable<SortOption.SortDirection>
Enclosing class:
SortOption

public static enum SortOption.SortDirection
extends Enum<SortOption.SortDirection>

An enumeration describing a the sort direction.


Enum Constant Summary
asc
          Ascending order (default value).
desc
          Descending order.
 
Method Summary
static SortOption.SortDirection checkValue(String direction)
          Checks the value of a String to determine the corresponding enum.
static SortOption.SortDirection defaultValue()
          Returns the default value for the enum.
static SortOption.SortDirection valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SortOption.SortDirection[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

asc

public static final SortOption.SortDirection asc
Ascending order (default value).


desc

public static final SortOption.SortDirection desc
Descending order.

Method Detail

values

public static SortOption.SortDirection[] 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 (SortOption.SortDirection c : SortOption.SortDirection.values())
    System.out.println(c);

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

valueOf

public static SortOption.SortDirection valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

checkValue

public static SortOption.SortDirection checkValue(String direction)
Checks the value of a String to determine the corresponding enum.

Parameters:
direction - the string to check
Returns:
the corresponding enum (default is OrderByDirection.asc)

defaultValue

public static SortOption.SortDirection defaultValue()
Returns the default value for the enum.

Returns:
OrderByDirection.asc

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.