com.google.code.facebookapi
Enum MarketListingSubcategory

java.lang.Object
  extended by java.lang.Enum<MarketListingSubcategory>
      extended by com.google.code.facebookapi.MarketListingSubcategory
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MarketListingSubcategory>

public enum MarketListingSubcategory
extends java.lang.Enum<MarketListingSubcategory>

Enum for specifying sub-categories in marketplace listings/API calls.


Enum Constant Summary
AUTOS
          Subcategory for listings involving cars
AUTOS_WANTED
          Subcategory for listings seeking cars
BOOKS
          Subcategory for listings involving books
BOOKS_WANTED
          Subcategory for listings seeking books
ELECTRONICS
          Subcategory for listings involving electronics
ELECTRONICS_WANTED
          Subcategory for listings seeking electronics
FURNITURE
          Subcategory for listings involving furniture
FURNITURE_WANTED
          Subcategory for listings seeking furniture
GENERAL
          Subcategory for listings involving things not specified by any of the other subcategories
GENERAL_WANTED
          Subcategory for listings seeking things not specified by any of the other subcategories
REAL_ESTATE
          Subcategory for listings involving real-estate
REAL_ESTATE_WANTED
          Subcategory for listings seeking real-estate
RENTALS
          Subcategory for listings involving rentals
SUBLETS
          Subcategory for listings involving sublets
SUBLETS_WANTED
          Subcategory for listings seeking sublets
TICKETS
          Subcategory for listings involving event tickets
 
Method Summary
 java.lang.String getName()
          Get the name by which Facebook refers to this category.
static MarketListingSubcategory valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MarketListingSubcategory[] 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

BOOKS

public static final MarketListingSubcategory BOOKS
Subcategory for listings involving books


FURNITURE

public static final MarketListingSubcategory FURNITURE
Subcategory for listings involving furniture


TICKETS

public static final MarketListingSubcategory TICKETS
Subcategory for listings involving event tickets


ELECTRONICS

public static final MarketListingSubcategory ELECTRONICS
Subcategory for listings involving electronics


AUTOS

public static final MarketListingSubcategory AUTOS
Subcategory for listings involving cars


GENERAL

public static final MarketListingSubcategory GENERAL
Subcategory for listings involving things not specified by any of the other subcategories


RENTALS

public static final MarketListingSubcategory RENTALS
Subcategory for listings involving rentals


SUBLETS

public static final MarketListingSubcategory SUBLETS
Subcategory for listings involving sublets


REAL_ESTATE

public static final MarketListingSubcategory REAL_ESTATE
Subcategory for listings involving real-estate


BOOKS_WANTED

public static final MarketListingSubcategory BOOKS_WANTED
Subcategory for listings seeking books


FURNITURE_WANTED

public static final MarketListingSubcategory FURNITURE_WANTED
Subcategory for listings seeking furniture


ELECTRONICS_WANTED

public static final MarketListingSubcategory ELECTRONICS_WANTED
Subcategory for listings seeking electronics


AUTOS_WANTED

public static final MarketListingSubcategory AUTOS_WANTED
Subcategory for listings seeking cars


GENERAL_WANTED

public static final MarketListingSubcategory GENERAL_WANTED
Subcategory for listings seeking things not specified by any of the other subcategories


SUBLETS_WANTED

public static final MarketListingSubcategory SUBLETS_WANTED
Subcategory for listings seeking sublets


REAL_ESTATE_WANTED

public static final MarketListingSubcategory REAL_ESTATE_WANTED
Subcategory for listings seeking real-estate

Method Detail

values

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

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

valueOf

public static MarketListingSubcategory 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

getName

public java.lang.String getName()
Get the name by which Facebook refers to this category. This can be used in API calls when talking to their servers.

Returns:
the name Facebook has allocated to this category.


Copyright © 2010. All Rights Reserved.