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

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

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

The fields that represent the RestActivityStream object in json form.


Enum Constant Summary
FAVICON_URL
          the json field for faviconUrl.
PERMALINK
          the json field for permaLink.
PRETTY_ID
          the json field for prettyId.
TITLE
          the json field for title.
TYPE
          the json field for type
 
Method Summary
 String toString()
          emit the field as a json element.
static RestActivityStream.Field valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RestActivityStream.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

TYPE

public static final RestActivityStream.Field TYPE
the json field for type


PRETTY_ID

public static final RestActivityStream.Field PRETTY_ID
the json field for prettyId.


FAVICON_URL

public static final RestActivityStream.Field FAVICON_URL
the json field for faviconUrl.


TITLE

public static final RestActivityStream.Field TITLE
the json field for title.


PERMALINK

public static final RestActivityStream.Field PERMALINK
the json field for permaLink.

Method Detail

values

public static RestActivityStream.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 (RestActivityStream.Field c : RestActivityStream.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 RestActivityStream.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<RestActivityStream.Field>
Returns:
the field name


Copyright © 2011 eXo Platform. All Rights Reserved.