tigase.muc.xmpp.stanzas
Enum IQType

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

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

Types of IQ stanza.

Created: 2005-01-27 20:01:53

Version:
$Rev: 81 $
Author:
bmalkow

Enum Constant Summary
ERROR
          An error has occurred regarding processing or delivery of a previously-sent get or set Stanza Errors.
GET
          The stanza is a request for information or requirements.
RESULT
          The stanza is a response to a successful get or set request.
SET
          The stanza provides required data, sets new values, or replaces existing values.
 
Method Summary
static IQType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IQType[] 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

GET

public static final IQType GET
The stanza is a request for information or requirements.


SET

public static final IQType SET
The stanza provides required data, sets new values, or replaces existing values.


RESULT

public static final IQType RESULT
The stanza is a response to a successful get or set request.


ERROR

public static final IQType ERROR
An error has occurred regarding processing or delivery of a previously-sent get or set Stanza Errors.

Method Detail

values

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

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

valueOf

public static IQType 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.