|
Openfire 3.3.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Roster.Subscription> org.xmpp.packet.Roster.Subscription
public static enum Roster.Subscription
Type-safe enumeration for the roster subscription type. Valid subcription types:
Roster.Subscription.none
-- the user does not have a
subscription to the contact's presence information, and the contact
does not have a subscription to the user's presence information.
Roster.Subscription.to
-- the user has a subscription to
the contact's presence information, but the contact does not have a
subscription to the user's presence information.
Roster.Subscription.from
-- the contact has a subscription
to the user's presence information, but the user does not have a
subscription to the contact's presence information.
Roster.Subscription.both
-- both the user and the contact
have subscriptions to each other's presence information.
Roster.Subscription.remove
-- the user is removing a
contact from his or her roster.
Enum Constant Summary | |
---|---|
both
Both the user and the contact have subscriptions to each other's presence information. |
|
from
The contact has a subscription to the user's presence information, but the user does not have a subscription to the contact's presence information. |
|
none
The user does not have a subscription to the contact's presence information, and the contact does not have a subscription to the user's presence information. |
|
remove
The user is removing a contact from his or her roster. |
|
to
The user has a subscription to the contact's presence information, but the contact does not have a subscription to the user's presence information. |
Method Summary | |
---|---|
static Roster.Subscription |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Roster.Subscription[] |
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, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Roster.Subscription none
public static final Roster.Subscription to
public static final Roster.Subscription from
public static final Roster.Subscription both
public static final Roster.Subscription remove
Method Detail |
---|
public static final Roster.Subscription[] values()
for(Roster.Subscription c : Roster.Subscription.values()) System.out.println(c);
public static Roster.Subscription 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
|
Openfire 3.3.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |