|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.code.facebookapi.ApplicationPropertySet
public class ApplicationPropertySet
This utility represents a set of application properties for use in the facebook.admin_setApplicatoinProperty API call.
| Constructor Summary | |
|---|---|
ApplicationPropertySet()
|
|
ApplicationPropertySet(java.lang.String jsonString)
Initialize the ApplicationPropertySet mapping from its JSON representation |
|
| Method Summary | |
|---|---|
java.lang.Boolean |
getBoolProperty(ApplicationProperty prop)
Gets a boolean property value. |
java.lang.CharSequence |
getStringProperty(ApplicationProperty prop)
Gets a String property value. |
boolean |
isEmpty()
|
org.json.JSONObject |
jsonify()
Return a JSON representation of this property set object |
static java.util.Map<ApplicationProperty,java.lang.String> |
parseProperties(java.lang.String json)
|
void |
removeProperty(ApplicationProperty prop)
Remove a property from the set. |
void |
setBoolProperty(ApplicationProperty prop,
boolean value)
Sets a boolean property value. |
void |
setStringProperty(ApplicationProperty prop,
java.lang.CharSequence value)
Sets a String property value. |
org.json.JSONObject |
toJson()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationPropertySet()
public ApplicationPropertySet(java.lang.String jsonString)
throws java.lang.ClassCastException
jsonString - JSON representing the application properties
java.lang.ClassCastException - if the JSON-encoded mapping doesn't conform to expectations| Method Detail |
|---|
public void setBoolProperty(ApplicationProperty prop,
boolean value)
prop - the property to set, it should be of boolean type.value - the value to set.public java.lang.Boolean getBoolProperty(ApplicationProperty prop)
prop - the property to get, it should be of boolean type.
public void setStringProperty(ApplicationProperty prop,
java.lang.CharSequence value)
prop - the property to set, it should be of String type.value - the value to set.public java.lang.CharSequence getStringProperty(ApplicationProperty prop)
prop - the property to get, it should be of String type.
public void removeProperty(ApplicationProperty prop)
prop - the property to remove.public boolean isEmpty()
public org.json.JSONObject toJson()
public org.json.JSONObject jsonify()
public static java.util.Map<ApplicationProperty,java.lang.String> parseProperties(java.lang.String json)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||