Smack

org.jivesoftware.smackx.pubsub
Enum ItemsExtension.ItemsElementType

java.lang.Object
  extended by java.lang.Enum<ItemsExtension.ItemsElementType>
      extended by org.jivesoftware.smackx.pubsub.ItemsExtension.ItemsElementType
All Implemented Interfaces:
Serializable, Comparable<ItemsExtension.ItemsElementType>
Enclosing class:
ItemsExtension

public static enum ItemsExtension.ItemsElementType
extends Enum<ItemsExtension.ItemsElementType>


Enum Constant Summary
items
          An items element, which has an optional max_items attribute when requesting items
retract
          A retract element, which has an optional notify attribute when publishing deletions
 
Method Summary
 String getElementAttribute()
           
 PubSubElementType getNodeElement()
           
static ItemsExtension.ItemsElementType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ItemsExtension.ItemsElementType[] 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

items

public static final ItemsExtension.ItemsElementType items
An items element, which has an optional max_items attribute when requesting items


retract

public static final ItemsExtension.ItemsElementType retract
A retract element, which has an optional notify attribute when publishing deletions

Method Detail

values

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

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

valueOf

public static ItemsExtension.ItemsElementType 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

getNodeElement

public PubSubElementType getNodeElement()

getElementAttribute

public String getElementAttribute()

Smack

Copyright © 2003-2007 Jive Software.