net.rim.pushsdk.query.subscription
Enum SubQueryRequestStatus

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

public enum SubQueryRequestStatus
extends Enum<SubQueryRequestStatus>

Represents the status used in a subscription query by status request to the PPG.

Author:
mdandrea

Enum Constant Summary
ACTIVE
          An active status.
SUSPENDED
          A suspended status.
 
Method Summary
 String getSubQueryRequestStatus()
          Gets the value of the status (lower cased).
static SubQueryRequestStatus getSubQueryRequestStatus(String status)
          Gets the status associated with the given string.
 String toString()
          Calls getSubQueryRequestStatus().
static SubQueryRequestStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SubQueryRequestStatus[] 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

ACTIVE

public static final SubQueryRequestStatus ACTIVE
An active status.


SUSPENDED

public static final SubQueryRequestStatus SUSPENDED
A suspended status.

Method Detail

values

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

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

valueOf

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

getSubQueryRequestStatus

public String getSubQueryRequestStatus()
Gets the value of the status (lower cased).

Returns:
the status

getSubQueryRequestStatus

public static SubQueryRequestStatus getSubQueryRequestStatus(String status)
Gets the status associated with the given string.

Parameters:
status - the status as a string (case insensitive)
Returns:
the status
Throws:
IllegalArgumentException - if the status string passed in was invalid

toString

public String toString()
Calls getSubQueryRequestStatus().

Overrides:
toString in class Enum<SubQueryRequestStatus>


Copyright © 2011 Research In Motion. All Rights Reserved.