com.google.code.facebookapi
Enum MarketListingCategory

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

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

Enum for specifying categories in marketplace listings and API calls.


Enum Constant Summary
FORSALE
          Category to specify for a for-sale listing
FORSALE_WANTED
          Category for a listing seeking items for sale
FREE
          Category for a listing advertising free goods/services
HOUSING
          Category to specify for a housing listing
HOUSING_WANTED
          Category for a listing seeking housing
JOBS
          Category to specify for a job posting
JOBS_WANTED
          Category for a listing seeking employment
OTHER
          Category for any listing that doesn't fit in any of the other categories
OTHER_WANTED
          Category for a listing seeking anything that doesn't fit in any other category
 
Method Summary
 java.lang.String getName()
          Get the name by which Facebook refers to this category.
static MarketListingCategory valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MarketListingCategory[] 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

FORSALE

public static final MarketListingCategory FORSALE
Category to specify for a for-sale listing


HOUSING

public static final MarketListingCategory HOUSING
Category to specify for a housing listing


JOBS

public static final MarketListingCategory JOBS
Category to specify for a job posting


OTHER

public static final MarketListingCategory OTHER
Category for any listing that doesn't fit in any of the other categories


FREE

public static final MarketListingCategory FREE
Category for a listing advertising free goods/services


FORSALE_WANTED

public static final MarketListingCategory FORSALE_WANTED
Category for a listing seeking items for sale


HOUSING_WANTED

public static final MarketListingCategory HOUSING_WANTED
Category for a listing seeking housing


JOBS_WANTED

public static final MarketListingCategory JOBS_WANTED
Category for a listing seeking employment


OTHER_WANTED

public static final MarketListingCategory OTHER_WANTED
Category for a listing seeking anything that doesn't fit in any other category

Method Detail

values

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

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

valueOf

public static MarketListingCategory 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.