Package org.jivesoftware.smackx.pubsub
Enum EventElementType
- java.lang.Object
-
- java.lang.Enum<EventElementType>
-
- org.jivesoftware.smackx.pubsub.EventElementType
-
- All Implemented Interfaces:
Serializable
,Comparable<EventElementType>
public enum EventElementType extends Enum<EventElementType>
This enumeration defines the possible event types that are supported within PubSub event messages.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description collection
A node has been associated or disassociated with a collection node.configuration
A node has had its configuration changed.delete
A node has been deleted.items
Items have been published to a node.purge
All items have been purged from a node.subscription
A node has been subscribed to.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EventElementType
valueOf(String name)
Returns the enum constant of this type with the specified name.static EventElementType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
collection
public static final EventElementType collection
A node has been associated or disassociated with a collection node.
-
configuration
public static final EventElementType configuration
A node has had its configuration changed.
-
delete
public static final EventElementType delete
A node has been deleted.
-
items
public static final EventElementType items
Items have been published to a node.
-
purge
public static final EventElementType purge
All items have been purged from a node.
-
subscription
public static final EventElementType subscription
A node has been subscribed to.
-
-
Method Detail
-
values
public static EventElementType[] 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 (EventElementType c : EventElementType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EventElementType 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
-
-