org.exoplatform.social.client.api.model
Enum RestIdentity.Field

java.lang.Object
  extended by java.lang.Enum<RestIdentity.Field>
      extended by org.exoplatform.social.client.api.model.RestIdentity.Field
All Implemented Interfaces:
Serializable, Comparable<RestIdentity.Field>
Enclosing interface:
RestIdentity

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

The fields that represent the Identity object in json form.

All of the fields that comments can have.


Enum Constant Summary
ID
          the json field for identity id.
PROFILE
          the json profile object
PROVIDER_ID
          the json field for userId.
REMOTE_ID
          the json field for activityId.
 
Method Summary
 String toString()
          emit the field as a json element.
static RestIdentity.Field valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RestIdentity.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

ID

public static final RestIdentity.Field ID
the json field for identity id.


PROVIDER_ID

public static final RestIdentity.Field PROVIDER_ID
the json field for userId.


REMOTE_ID

public static final RestIdentity.Field REMOTE_ID
the json field for activityId.


PROFILE

public static final RestIdentity.Field PROFILE
the json profile object

Method Detail

values

public static RestIdentity.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 (RestIdentity.Field c : RestIdentity.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 RestIdentity.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()
emit the field as a json element.

Overrides:
toString in class Enum<RestIdentity.Field>
Returns:
the field name


Copyright © 2011-2012 eXo Platform. All Rights Reserved.