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_MEthe json field for aboutMe.ACCOUNTSthe json field for accounts.ACTIVITIESthe json field for activities.ADDRESSESthe json field for addresses.AGEthe json field for age.APP_DATAthe json field for appData.BIRTHDAYthe json field for birthday.BODY_TYPEthe json field for bodyType.BOOKSthe json field for books.CARSthe json field for cars.CHILDRENthe json field for children.CURRENT_LOCATIONthe json field for currentLocation.DISPLAY_NAMEthe json field for display name.DRINKERthe json field for drinker.EMAILSthe json field for emails.ETHNICITYthe json field for ethnicity.FASHIONthe json field for fashion.FOODthe json field for food.GENDERthe json field for gender.HAPPIEST_WHENthe json field for happiestWhen.HAS_APPthe json field for hasApp.HEROESthe json field for heroes.HUMORthe json field for humor.IDthe json field for id.IMSthe json field for IM accounts.INTERESTSthe json field for interests.JOB_INTERESTSthe json field for jobInterests.LANGUAGES_SPOKENthe json field for languagesSpoken.LAST_UPDATEDthe json field for updated.LIVING_ARRANGEMENTthe json field for livingArrangement.LOOKING_FORthe json field for lookingFor.MOVIESthe json field for movies.MUSICthe json field for music.NAMEthe json field for name.NETWORKPRESENCEthe json field for networkPresence.NICKNAMEthe json field for nickname.ORGANIZATIONSthe json field for organiztions.PETSthe json field for pets.PHONE_NUMBERSthe json field for phoneNumbers.PHOTOSthe json field for photos.POLITICAL_VIEWSthe json field for politicalViews.PREFERRED_USERNAMEthe json field for preferredUsernamePROFILE_SONGthe json field for profileSong.PROFILE_URLthe json field for profileUrl.PROFILE_VIDEOthe json field for profileVideo.QUOTESthe json field for quotes.RELATIONSHIP_STATUSthe json field for relationshipStatus.RELIGIONthe json field for religion.ROMANCEthe json field for romance.SCARED_OFthe json field for scaredOf.SEXUAL_ORIENTATIONthe json field for sexualOrientation.SMOKERthe json field for smoker.SPORTSthe json field for sports.STATUSthe json field for status.TAGSthe json field for tags.THUMBNAIL_URLthe json field for thumbnailUrl.TURN_OFFSthe json field for turnOffs.TURN_ONSthe json field for turnOns.TV_SHOWSthe json field for tvShows.URLSthe json field for urls.UTC_OFFSETthe json field for utcOffset.
-
Field Summary
Fields Modifier and Type Field Description static Set<String>ALL_FIELDSThe set of all fields.static Set<String>DEFAULT_FIELDSThe set of default fields returned fields.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Person.FieldfromUrlString(String urlString)Converts from a url string (usually passed in the fields= parameter) into the corresponding field enum.static Person.FieldgetField(String jsonString)StringtoString()emit the field as a json element.static Person.FieldvalueOf(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:
toStringin 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.
-
-