|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<PushApplicationType>
net.rim.pushsdk.pushappmgmt.PushApplicationType
public enum PushApplicationType
Defines the types of applications that can be pushed to.
| Enum Constant Summary | |
|---|---|
ENTERPRISE_PUSH
An enterprise (BES) type of push application. |
|
PUBLIC_AND_ENTERPRISE_PUSH
A public (BIS) and enterprise (BES) type of push application. |
|
PUBLIC_PUSH
A public (BIS) type of push application. |
|
WEB_SIGNAL
A Web Signal type of application. |
|
| Method Summary | |
|---|---|
String |
getType()
Gets the current push application type. |
static PushApplicationType |
getType(String pushApplicationType)
Gets the push application type associated with the passed in string. |
static boolean |
isTypeChangeAllowed(PushApplicationType currentType,
PushApplicationType newType)
Returns true if the change to the push application type is allowed; false otherwise. |
String |
toString()
Returns a textual description of the type. |
static PushApplicationType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PushApplicationType[] |
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 |
|---|
public static final PushApplicationType ENTERPRISE_PUSH
public static final PushApplicationType PUBLIC_PUSH
public static final PushApplicationType PUBLIC_AND_ENTERPRISE_PUSH
public static final PushApplicationType WEB_SIGNAL
| Method Detail |
|---|
public static PushApplicationType[] values()
for (PushApplicationType c : PushApplicationType.values()) System.out.println(c);
public static PushApplicationType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String getType()
public static PushApplicationType getType(String pushApplicationType)
pushApplicationType - a push application type
IllegalArgumentException - if the type passed in is invalid
public static boolean isTypeChangeAllowed(PushApplicationType currentType,
PushApplicationType newType)
currentType is null, return true. If newType is null, return false.
The type of the push application can only change in one of two ways:
currentType - the current type of the push applicationnewType - the desired new type of the push application
public String toString()
toString in class Enum<PushApplicationType>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||