com.atlassian.gadgets.opensocial.model
Enum Activity.Field

java.lang.Object
  extended by java.lang.Enum<Activity.Field>
      extended by com.atlassian.gadgets.opensocial.model.Activity.Field
All Implemented Interfaces:
Serializable, Comparable<Activity.Field>
Enclosing class:
Activity

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

Activity fields that can be loaded when retrieving an activity


Enum Constant Summary
APP_ID
           
BODY
           
BODY_ID
           
EXTERNAL_ID
           
ID
           
LAST_UPDATED
           
MEDIA_ITEMS
           
POSTED_TIME
           
PRIORITY
           
STREAM_FAVICON_URL
           
STREAM_SOURCE_URL
           
STREAM_TITLE
           
STREAM_URL
           
TEMPLATE_PARAMS
           
TITLE
           
TITLE_ID
           
URL
           
USER_ID
           
 
Method Summary
 String toString()
          emit the field as a json element.
static Activity.Field valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Activity.Field[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

APP_ID

public static final Activity.Field APP_ID

BODY

public static final Activity.Field BODY

BODY_ID

public static final Activity.Field BODY_ID

EXTERNAL_ID

public static final Activity.Field EXTERNAL_ID

ID

public static final Activity.Field ID

LAST_UPDATED

public static final Activity.Field LAST_UPDATED

MEDIA_ITEMS

public static final Activity.Field MEDIA_ITEMS

POSTED_TIME

public static final Activity.Field POSTED_TIME

PRIORITY

public static final Activity.Field PRIORITY

STREAM_FAVICON_URL

public static final Activity.Field STREAM_FAVICON_URL

STREAM_SOURCE_URL

public static final Activity.Field STREAM_SOURCE_URL

STREAM_TITLE

public static final Activity.Field STREAM_TITLE

STREAM_URL

public static final Activity.Field STREAM_URL

TEMPLATE_PARAMS

public static final Activity.Field TEMPLATE_PARAMS

TITLE

public static final Activity.Field TITLE

TITLE_ID

public static final Activity.Field TITLE_ID

URL

public static final Activity.Field URL

USER_ID

public static final Activity.Field USER_ID
Method Detail

values

public static final Activity.Field[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Activity.Field c : Activity.Field.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Activity.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

toString

public String toString()
emit the field as a json element.

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


Copyright © 2009 Atlassian. All Rights Reserved.