Smack

org.jivesoftware.smackx.pubsub
Enum EventElementType

java.lang.Object
  extended by java.lang.Enum<EventElementType>
      extended by 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.

Author:
Robin Collier

Enum Constant Summary
collection
          A node has been associated or dissassociated 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
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.
 
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

collection

public static final EventElementType collection
A node has been associated or dissassociated 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 name
NullPointerException - if the argument is null

Smack

Copyright © 2003-2007 Jive Software.