|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.code.facebookapi.MarketListing
public class MarketListing
A utility class for creating and verifying marketplace listings. For details visit http://wiki.developers.facebook.com/index.php/Marketplace_Listing_Attributes
| Field Summary | |
|---|---|
protected org.json.JSONObject |
attribs
|
protected static java.lang.String |
CATEGORY_ATTRIB
|
static java.lang.String |
CONDITION_ANY
Specifies a condition of 'any' |
static java.lang.String |
CONDITION_NEW
Specifies a condition of 'new' |
static java.lang.String |
CONDITION_USED
Specified a condition of 'used' |
protected static java.lang.String |
DESCRIPTION_ATTRIB
|
protected static org.apache.commons.logging.Log |
log
|
protected static java.lang.String |
SUBCATEGORY_ATTRIB
|
protected static java.lang.String |
TITLE_ATTRIB
|
| Constructor Summary | |
|---|---|
MarketListing(java.lang.String title,
java.lang.String description,
MarketListingCategory category,
MarketListingSubcategory subcategory)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAttribute(java.lang.String name)
Retrieve the value of the specified attribute. |
java.lang.String |
getCategory()
|
java.lang.String |
getDescription()
|
java.lang.String |
getSubCategory()
|
java.lang.String |
getTitle()
|
void |
removeAttribute(java.lang.CharSequence attr)
Remove an attribute from this listing. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Set an attribute for this listing. |
void |
setCategory(java.lang.String category)
Set the category of the listing |
void |
setDescription(java.lang.String description)
Set the listing description. |
void |
setSubCategory(java.lang.String subCategory)
Set the subcategory of the listing |
void |
setTitle(java.lang.String title)
Set the listing title. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
public static final java.lang.String CONDITION_ANY
public static final java.lang.String CONDITION_NEW
public static final java.lang.String CONDITION_USED
protected static final java.lang.String CATEGORY_ATTRIB
protected static final java.lang.String SUBCATEGORY_ATTRIB
protected static final java.lang.String TITLE_ATTRIB
protected static final java.lang.String DESCRIPTION_ATTRIB
protected org.json.JSONObject attribs
| Constructor Detail |
|---|
public MarketListing(java.lang.String title,
java.lang.String description,
MarketListingCategory category,
MarketListingSubcategory subcategory)
title - the title of the listing, always required.description - the listing description, always required.category - the listing category, always required.subcategory - the listing subcategory, always required.| Method Detail |
|---|
public void setAttribute(java.lang.String name,
java.lang.String value)
name - the name of the attribute to setvalue - the value to setpublic java.lang.String getAttribute(java.lang.String name)
name - the name of the attribute to lookup.
public void setCategory(java.lang.String category)
category - the category to setpublic java.lang.String getCategory()
public void setSubCategory(java.lang.String subCategory)
subCategory - the subcategory to setpublic java.lang.String getSubCategory()
public void setTitle(java.lang.String title)
title - the title to set.public java.lang.String getTitle()
public void setDescription(java.lang.String description)
description - the description to set.public java.lang.String getDescription()
public void removeAttribute(java.lang.CharSequence attr)
attr - the attribute to remove.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||