tigase.muc.xmpp.stanzas
Enum PresenceType

java.lang.Object
  extended by java.lang.Enum<PresenceType>
      extended by tigase.muc.xmpp.stanzas.PresenceType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PresenceType>, StanzaType

public enum PresenceType
extends java.lang.Enum<PresenceType>
implements StanzaType

Types od Presence stanza.

Created: 2005-01-27 19:53:54

Version:
$Rev: 81 $
Author:
bmalkow

Enum Constant Summary
ERROR
          An error has occurred regarding processing or delivery of a previously-sent presence stanza.
PROBE
          A request for an entity's current presence; SHOULD be generated only by a server on behalf of a user.
SUBSCRIBE
          The sender wishes to subscribe to the recipient's presence.
SUBSCRIBED
          The sender has allowed the recipient to receive their presence.
UNAVAILABLE
          Signals that the entity is no longer available for communication.
UNSUBSCRIBE
          The sender is unsubscribing from another entity's presence.
UNSUBSCRIBED
          The subscription request has been denied or a previously-granted subscription has been cancelled.
 
Method Summary
static PresenceType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PresenceType[] 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

UNAVAILABLE

public static final PresenceType UNAVAILABLE
Signals that the entity is no longer available for communication.


SUBSCRIBE

public static final PresenceType SUBSCRIBE
The sender wishes to subscribe to the recipient's presence.


SUBSCRIBED

public static final PresenceType SUBSCRIBED
The sender has allowed the recipient to receive their presence.


UNSUBSCRIBE

public static final PresenceType UNSUBSCRIBE
The sender is unsubscribing from another entity's presence.


UNSUBSCRIBED

public static final PresenceType UNSUBSCRIBED
The subscription request has been denied or a previously-granted subscription has been cancelled.


PROBE

public static final PresenceType PROBE
A request for an entity's current presence; SHOULD be generated only by a server on behalf of a user.


ERROR

public static final PresenceType ERROR
An error has occurred regarding processing or delivery of a previously-sent presence stanza.

Method Detail

values

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

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

valueOf

public static PresenceType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2007 Tigase. All Rights Reserved.