Package rocks.xmpp.core.stanza.model
Enum Presence.Show
- java.lang.Object
-
- java.lang.Enum<Presence.Show>
-
- rocks.xmpp.core.stanza.model.Presence.Show
-
- All Implemented Interfaces:
Serializable
,Comparable<Presence.Show>
- Enclosing class:
- Presence
public static enum Presence.Show extends Enum<Presence.Show>
Represents a<presence/>
<show/>
element.The OPTIONAL
<show/>
element specifies the particular availability sub-state of an entity or a specific resource thereof.If no
<show/>
element is provided, the entity is assumed to be online and available.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AWAY
The entity or resource is temporarily away.CHAT
The entity or resource is actively interested in chatting.DND
The entity or resource is busy (dnd = "Do Not Disturb").XA
The entity or resource is away for an extended period (xa = "eXtended Away").
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Presence.Show
valueOf(String name)
Returns the enum constant of this type with the specified name.static Presence.Show[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHAT
public static final Presence.Show CHAT
The entity or resource is actively interested in chatting.
-
AWAY
public static final Presence.Show AWAY
The entity or resource is temporarily away.
-
XA
public static final Presence.Show XA
The entity or resource is away for an extended period (xa = "eXtended Away").
-
DND
public static final Presence.Show DND
The entity or resource is busy (dnd = "Do Not Disturb").
-
-
Method Detail
-
values
public static Presence.Show[] 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 (Presence.Show c : Presence.Show.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Presence.Show 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 nameNullPointerException
- if the argument is null
-
-