net.rim.pushsdk.subscription
Enum SubscriptionType

java.lang.Object
  extended by java.lang.Enum<SubscriptionType>
      extended by net.rim.pushsdk.subscription.SubscriptionType
All Implemented Interfaces:
Serializable, Comparable<SubscriptionType>

public enum SubscriptionType
extends Enum<SubscriptionType>

The subscription operations available to a user.

Author:
mdandrea

Enum Constant Summary
RESUME
          A resume subscription operation.
SUBSCRIBE
          A subscribe operation.
SUSPEND
          A suspend subscription operation.
UNSUBSCRIBE
          An unsubscribe operation.
 
Method Summary
static SubscriptionType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SubscriptionType[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SUBSCRIBE

public static final SubscriptionType SUBSCRIBE
A subscribe operation.


UNSUBSCRIBE

public static final SubscriptionType UNSUBSCRIBE
An unsubscribe operation.


SUSPEND

public static final SubscriptionType SUSPEND
A suspend subscription operation.


RESUME

public static final SubscriptionType RESUME
A resume subscription operation.

Method Detail

values

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

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

valueOf

public static SubscriptionType 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


Copyright © 2011 Research In Motion. All Rights Reserved.