com.google.code.facebookapi
Enum ProfileField
java.lang.Object
java.lang.Enum<ProfileField>
com.google.code.facebookapi.ProfileField
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ProfileField>
public enum ProfileField
- extends java.lang.Enum<ProfileField>
Enum for specifying profile-field names. When making API calls, you can generally just pass a set of literal strings specifying field-names if your prefer.
|
Method Summary |
java.lang.String |
fieldName()
|
boolean |
isName(java.lang.String name)
|
java.lang.String |
toString()
|
static ProfileField |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ProfileField[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ABOUT_ME
public static final ProfileField ABOUT_ME
ACTIVITIES
public static final ProfileField ACTIVITIES
AFFILIATIONS
public static final ProfileField AFFILIATIONS
BIRTHDAY
public static final ProfileField BIRTHDAY
BOOKS
public static final ProfileField BOOKS
CURRENT_LOCATION
public static final ProfileField CURRENT_LOCATION
EDUCATION_HISTORY
public static final ProfileField EDUCATION_HISTORY
FIRST_NAME
public static final ProfileField FIRST_NAME
HAS_ADDED_APP
public static final ProfileField HAS_ADDED_APP
HOMETOWN_LOCATION
public static final ProfileField HOMETOWN_LOCATION
HS_INFO
public static final ProfileField HS_INFO
INTERESTS
public static final ProfileField INTERESTS
IS_APP_USER
public static final ProfileField IS_APP_USER
LAST_NAME
public static final ProfileField LAST_NAME
MEETING_FOR
public static final ProfileField MEETING_FOR
MEETING_SEX
public static final ProfileField MEETING_SEX
MOVIES
public static final ProfileField MOVIES
MUSIC
public static final ProfileField MUSIC
NAME
public static final ProfileField NAME
NOTES_COUNT
public static final ProfileField NOTES_COUNT
PIC
public static final ProfileField PIC
PIC_BIG
public static final ProfileField PIC_BIG
PIC_SMALL
public static final ProfileField PIC_SMALL
PIC_SQUARE
public static final ProfileField PIC_SQUARE
POLITICAL
public static final ProfileField POLITICAL
PROFILE_UPDATE_TIME
public static final ProfileField PROFILE_UPDATE_TIME
QUOTES
public static final ProfileField QUOTES
RELATIONSHIP_STATUS
public static final ProfileField RELATIONSHIP_STATUS
RELIGION
public static final ProfileField RELIGION
SIGNIFICANT_OTHER_ID
public static final ProfileField SIGNIFICANT_OTHER_ID
SEX
public static final ProfileField SEX
STATUS
public static final ProfileField STATUS
TIMEZONE
public static final ProfileField TIMEZONE
TV
public static final ProfileField TV
WALL_COUNT
public static final ProfileField WALL_COUNT
WORK_HISTORY
public static final ProfileField WORK_HISTORY
LOCALE
public static final ProfileField LOCALE
values
public static final ProfileField[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(ProfileField c : ProfileField.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static ProfileField 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
fieldName
public java.lang.String fieldName()
- Returns:
- the name of the field
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Enum<ProfileField>
isName
public boolean isName(java.lang.String name)
- Parameters:
name - the name to check against
- Returns:
- true if this field has the specified name.
Copyright © 2008. All Rights Reserved.