Esri Geoportal Server
1.0

com.esri.gpt.catalog.discovery
Enum Sortable.SortDirection

java.lang.Object
  extended by java.lang.Enum<Sortable.SortDirection>
      extended by com.esri.gpt.catalog.discovery.Sortable.SortDirection
All Implemented Interfaces:
Serializable, Comparable<Sortable.SortDirection>
Enclosing class:
Sortable

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

The enumeration of sorting directions.


Enum Constant Summary
ASC
           
DESC
           
 
Method Summary
static Sortable.SortDirection from(String value)
          Makes a result type from a supplied string value.
static Sortable.SortDirection valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Sortable.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 Sortable.SortDirection ASC

DESC

public static final Sortable.SortDirection DESC
Method Detail

values

public static Sortable.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 (Sortable.SortDirection c : Sortable.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 Sortable.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

from

public static Sortable.SortDirection from(String value)
                                   throws IllegalArgumentException
Makes a result type from a supplied string value.
I null is supplied, ResultType.hits is returned.

Parameters:
value - the value
Returns:
the result type
Throws:
IllegalArgumentException - if the value was invalid

Esri Geoportal Server
1.0

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