Enum Person.Field
- java.lang.Object
-
- java.lang.Enum<Person.Field>
-
- org.wso2.carbon.registry.social.api.people.userprofile.Person.Field
-
- All Implemented Interfaces:
Serializable
,Comparable<Person.Field>
- Enclosing interface:
- Person
public static enum Person.Field extends Enum<Person.Field>
The fields that represent the person object in json form.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABOUT_ME
the json field for aboutMe.ACCOUNTS
the json field for accounts.ACTIVITIES
the json field for activities.ADDRESSES
the json field for addresses.AGE
the json field for age.APP_DATA
the json field for appData.BIRTHDAY
the json field for birthday.BODY_TYPE
the json field for bodyType.BOOKS
the json field for books.CARS
the json field for cars.CHILDREN
the json field for children.CURRENT_LOCATION
the json field for currentLocation.DISPLAY_NAME
the json field for display name.DRINKER
the json field for drinker.EMAILS
the json field for emails.ETHNICITY
the json field for ethnicity.FASHION
the json field for fashion.FOOD
the json field for food.GENDER
the json field for gender.HAPPIEST_WHEN
the json field for happiestWhen.HAS_APP
the json field for hasApp.HEROES
the json field for heroes.HUMOR
the json field for humor.ID
the json field for id.IMS
the json field for IM accounts.INTERESTS
the json field for interests.JOB_INTERESTS
the json field for jobInterests.LANGUAGES_SPOKEN
the json field for languagesSpoken.LAST_UPDATED
the json field for updated.LIVING_ARRANGEMENT
the json field for livingArrangement.LOOKING_FOR
the json field for lookingFor.MOVIES
the json field for movies.MUSIC
the json field for music.NAME
the json field for name.NETWORKPRESENCE
the json field for networkPresence.NICKNAME
the json field for nickname.ORGANIZATIONS
the json field for organiztions.PETS
the json field for pets.PHONE_NUMBERS
the json field for phoneNumbers.PHOTOS
the json field for photos.POLITICAL_VIEWS
the json field for politicalViews.PREFERRED_USERNAME
the json field for preferredUsernamePROFILE_SONG
the json field for profileSong.PROFILE_URL
the json field for profileUrl.PROFILE_VIDEO
the json field for profileVideo.QUOTES
the json field for quotes.RELATIONSHIP_STATUS
the json field for relationshipStatus.RELIGION
the json field for religion.ROMANCE
the json field for romance.SCARED_OF
the json field for scaredOf.SEXUAL_ORIENTATION
the json field for sexualOrientation.SMOKER
the json field for smoker.SPORTS
the json field for sports.STATUS
the json field for status.TAGS
the json field for tags.THUMBNAIL_URL
the json field for thumbnailUrl.TURN_OFFS
the json field for turnOffs.TURN_ONS
the json field for turnOns.TV_SHOWS
the json field for tvShows.URLS
the json field for urls.UTC_OFFSET
the json field for utcOffset.
-
Field Summary
Fields Modifier and Type Field Description static Set<String>
ALL_FIELDS
The set of all fields.static Set<String>
DEFAULT_FIELDS
The set of default fields returned fields.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Person.Field
fromUrlString(String urlString)
Converts from a url string (usually passed in the fields= parameter) into the corresponding field enum.static Person.Field
getField(String jsonString)
String
toString()
emit the field as a json element.static Person.Field
valueOf(String name)
Returns the enum constant of this type with the specified name.static Person.Field[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ABOUT_ME
public static final Person.Field ABOUT_ME
the json field for aboutMe.
-
ACCOUNTS
public static final Person.Field ACCOUNTS
the json field for accounts.
-
ACTIVITIES
public static final Person.Field ACTIVITIES
the json field for activities.
-
ADDRESSES
public static final Person.Field ADDRESSES
the json field for addresses.
-
AGE
public static final Person.Field AGE
the json field for age.
-
APP_DATA
public static final Person.Field APP_DATA
the json field for appData.
-
BODY_TYPE
public static final Person.Field BODY_TYPE
the json field for bodyType.
-
BOOKS
public static final Person.Field BOOKS
the json field for books.
-
CARS
public static final Person.Field CARS
the json field for cars.
-
CHILDREN
public static final Person.Field CHILDREN
the json field for children.
-
CURRENT_LOCATION
public static final Person.Field CURRENT_LOCATION
the json field for currentLocation.
-
BIRTHDAY
public static final Person.Field BIRTHDAY
the json field for birthday.
-
DISPLAY_NAME
public static final Person.Field DISPLAY_NAME
the json field for display name.
-
DRINKER
public static final Person.Field DRINKER
the json field for drinker.
-
EMAILS
public static final Person.Field EMAILS
the json field for emails.
-
ETHNICITY
public static final Person.Field ETHNICITY
the json field for ethnicity.
-
FASHION
public static final Person.Field FASHION
the json field for fashion.
-
FOOD
public static final Person.Field FOOD
the json field for food.
-
GENDER
public static final Person.Field GENDER
the json field for gender.
-
HAPPIEST_WHEN
public static final Person.Field HAPPIEST_WHEN
the json field for happiestWhen.
-
HAS_APP
public static final Person.Field HAS_APP
the json field for hasApp.
-
HEROES
public static final Person.Field HEROES
the json field for heroes.
-
HUMOR
public static final Person.Field HUMOR
the json field for humor.
-
ID
public static final Person.Field ID
the json field for id.
-
IMS
public static final Person.Field IMS
the json field for IM accounts.
-
INTERESTS
public static final Person.Field INTERESTS
the json field for interests.
-
JOB_INTERESTS
public static final Person.Field JOB_INTERESTS
the json field for jobInterests.
-
LANGUAGES_SPOKEN
public static final Person.Field LANGUAGES_SPOKEN
the json field for languagesSpoken.
-
LAST_UPDATED
public static final Person.Field LAST_UPDATED
the json field for updated.
-
LIVING_ARRANGEMENT
public static final Person.Field LIVING_ARRANGEMENT
the json field for livingArrangement.
-
LOOKING_FOR
public static final Person.Field LOOKING_FOR
the json field for lookingFor.
-
MOVIES
public static final Person.Field MOVIES
the json field for movies.
-
MUSIC
public static final Person.Field MUSIC
the json field for music.
-
NAME
public static final Person.Field NAME
the json field for name.
-
NETWORKPRESENCE
public static final Person.Field NETWORKPRESENCE
the json field for networkPresence.
-
NICKNAME
public static final Person.Field NICKNAME
the json field for nickname.
-
ORGANIZATIONS
public static final Person.Field ORGANIZATIONS
the json field for organiztions.
-
PETS
public static final Person.Field PETS
the json field for pets.
-
PHONE_NUMBERS
public static final Person.Field PHONE_NUMBERS
the json field for phoneNumbers.
-
PHOTOS
public static final Person.Field PHOTOS
the json field for photos.
-
POLITICAL_VIEWS
public static final Person.Field POLITICAL_VIEWS
the json field for politicalViews.
-
PREFERRED_USERNAME
public static final Person.Field PREFERRED_USERNAME
the json field for preferredUsername
-
PROFILE_SONG
public static final Person.Field PROFILE_SONG
the json field for profileSong.
-
PROFILE_URL
public static final Person.Field PROFILE_URL
the json field for profileUrl.
-
PROFILE_VIDEO
public static final Person.Field PROFILE_VIDEO
the json field for profileVideo.
-
QUOTES
public static final Person.Field QUOTES
the json field for quotes.
-
RELATIONSHIP_STATUS
public static final Person.Field RELATIONSHIP_STATUS
the json field for relationshipStatus.
-
RELIGION
public static final Person.Field RELIGION
the json field for religion.
-
ROMANCE
public static final Person.Field ROMANCE
the json field for romance.
-
SCARED_OF
public static final Person.Field SCARED_OF
the json field for scaredOf.
-
SEXUAL_ORIENTATION
public static final Person.Field SEXUAL_ORIENTATION
the json field for sexualOrientation.
-
SMOKER
public static final Person.Field SMOKER
the json field for smoker.
-
SPORTS
public static final Person.Field SPORTS
the json field for sports.
-
STATUS
public static final Person.Field STATUS
the json field for status.
-
TAGS
public static final Person.Field TAGS
the json field for tags.
-
THUMBNAIL_URL
public static final Person.Field THUMBNAIL_URL
the json field for thumbnailUrl.
-
UTC_OFFSET
public static final Person.Field UTC_OFFSET
the json field for utcOffset.
-
TURN_OFFS
public static final Person.Field TURN_OFFS
the json field for turnOffs.
-
TURN_ONS
public static final Person.Field TURN_ONS
the json field for turnOns.
-
TV_SHOWS
public static final Person.Field TV_SHOWS
the json field for tvShows.
-
URLS
public static final Person.Field URLS
the json field for urls.
-
-
Method Detail
-
values
public static Person.Field[] 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 (Person.Field c : Person.Field.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Person.Field valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
emit the field as a json element.- Overrides:
toString
in classEnum<Person.Field>
- Returns:
- the field name
-
getField
public static Person.Field getField(String jsonString)
-
fromUrlString
public static Person.Field fromUrlString(String urlString)
Converts from a url string (usually passed in the fields= parameter) into the corresponding field enum.- Parameters:
urlString
- The string to translate.- Returns:
- The corresponding person field.
-
-