org.apache.shindig.extras.as.opensocial.model
Enum ActivityEntry.Verb

java.lang.Object
  extended by java.lang.Enum<ActivityEntry.Verb>
      extended by org.apache.shindig.extras.as.opensocial.model.ActivityEntry.Verb
All Implemented Interfaces:
Serializable, Comparable<ActivityEntry.Verb>
Enclosing interface:
ActivityEntry

public static enum ActivityEntry.Verb
extends Enum<ActivityEntry.Verb>

Possible verbs for an activity stream entry.


Enum Constant Summary
JOIN
           
MAKE_FRIEND
           
MARK_AS_FAVORITE
           
MARK_AS_LIKED
           
PLAY
           
POST
           
SAVE
           
SHARE
           
START_FOLLOWING
           
TAG
           
UPDATE
           
 
Method Summary
 String toString()
          Returns the name of the JSON element.
static ActivityEntry.Verb valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ActivityEntry.Verb[] 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

MARK_AS_FAVORITE

public static final ActivityEntry.Verb MARK_AS_FAVORITE

START_FOLLOWING

public static final ActivityEntry.Verb START_FOLLOWING

MARK_AS_LIKED

public static final ActivityEntry.Verb MARK_AS_LIKED

MAKE_FRIEND

public static final ActivityEntry.Verb MAKE_FRIEND

JOIN

public static final ActivityEntry.Verb JOIN

PLAY

public static final ActivityEntry.Verb PLAY

POST

public static final ActivityEntry.Verb POST

SAVE

public static final ActivityEntry.Verb SAVE

SHARE

public static final ActivityEntry.Verb SHARE

TAG

public static final ActivityEntry.Verb TAG

UPDATE

public static final ActivityEntry.Verb UPDATE
Method Detail

values

public static ActivityEntry.Verb[] 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 (ActivityEntry.Verb c : ActivityEntry.Verb.values())
    System.out.println(c);

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

valueOf

public static ActivityEntry.Verb 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()
Returns the name of the JSON element.

Overrides:
toString in class Enum<ActivityEntry.Verb>
Returns:
String the name of the JSON element


Copyright © 2007-2012. All Rights Reserved.