org.wso2.carbon.registry.social.api.people.userprofile.model
Enum Name.Field

java.lang.Object
  extended by java.lang.Enum<Name.Field>
      extended by org.wso2.carbon.registry.social.api.people.userprofile.model.Name.Field
All Implemented Interfaces:
Serializable, Comparable<Name.Field>
Enclosing interface:
Name

public static enum Name.Field
extends Enum<Name.Field>

An enumeration of fields in the json name object.


Enum Constant Summary
ADDITIONAL_NAME
          The additional name.
FAMILY_NAME
          The family name.
FORMATTED
          The formatted name.
GIVEN_NAME
          The given name.
HONORIFIC_PREFIX
          The honorific prefix.
HONORIFIC_SUFFIX
          The honorific suffix.
 
Method Summary
 String toString()
          
static Name.Field valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Name.Field[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ADDITIONAL_NAME

public static final Name.Field ADDITIONAL_NAME
The additional name.


FAMILY_NAME

public static final Name.Field FAMILY_NAME
The family name.


GIVEN_NAME

public static final Name.Field GIVEN_NAME
The given name.


HONORIFIC_PREFIX

public static final Name.Field HONORIFIC_PREFIX
The honorific prefix.


HONORIFIC_SUFFIX

public static final Name.Field HONORIFIC_SUFFIX
The honorific suffix.


FORMATTED

public static final Name.Field FORMATTED
The formatted name.

Method Detail

values

public static Name.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 (Name.Field c : Name.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 Name.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 name
NullPointerException - if the argument is null

toString

public String toString()

Overrides:
toString in class Enum<Name.Field>
See Also:
Enum.toString()


Copyright © 2012 WSO2 Inc. All Rights Reserved.