com.esri.core.internal.catalog
Enum Item.SortField

java.lang.Object
  extended by java.lang.Enum<Item.SortField>
      extended by com.esri.core.internal.catalog.Item.SortField
All Implemented Interfaces:
Serializable, Comparable<Item.SortField>
Enclosing class:
Item

public static enum Item.SortField
extends Enum<Item.SortField>

The fields of an Item stored as a back-end database table on the server, that can be used to sort search results


Enum Constant Summary
AVG_RATING
          The average ratings received by an Item
NUM_COMMENTS
          The number of comments received by an Item
NUM_RATINGS
          The number of ratings received by an Item
NUM_VIEWS
          The number of times an Item has been viewed
OWNER
          The owner of an Item
TITLE
          The title of an Item
TYPE
          The type of an Item (text, url, file)
UPLOADED
          The uploaded date of an Item
 
Method Summary
static Item.SortField valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Item.SortField[] 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

TITLE

public static final Item.SortField TITLE
The title of an Item


UPLOADED

public static final Item.SortField UPLOADED
The uploaded date of an Item


TYPE

public static final Item.SortField TYPE
The type of an Item (text, url, file)


OWNER

public static final Item.SortField OWNER
The owner of an Item


AVG_RATING

public static final Item.SortField AVG_RATING
The average ratings received by an Item


NUM_RATINGS

public static final Item.SortField NUM_RATINGS
The number of ratings received by an Item


NUM_COMMENTS

public static final Item.SortField NUM_COMMENTS
The number of comments received by an Item


NUM_VIEWS

public static final Item.SortField NUM_VIEWS
The number of times an Item has been viewed

Method Detail

values

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

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

valueOf

public static Item.SortField 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


Copyright © 2012. All Rights Reserved.