Package rocks.xmpp.core.stanza.model
Enum IQ.Type
- java.lang.Object
-
- java.lang.Enum<IQ.Type>
-
- rocks.xmpp.core.stanza.model.IQ.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<IQ.Type>
- Enclosing class:
- IQ
public static enum IQ.Type extends Enum<IQ.Type>
Represents a<iq/>
'type' attribute.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR
The stanza reports an error that has occurred regarding processing or delivery of a get or set request.GET
The stanza requests information, inquires about what data is needed in order to complete further operations, etc.RESULT
The stanza is a response to a successful get or set request.SET
The stanza provides data that is needed for an operation to be completed, sets new values, replaces existing values, etc.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IQ.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static IQ.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERROR
public static final IQ.Type ERROR
The stanza reports an error that has occurred regarding processing or delivery of a get or set request.
-
GET
public static final IQ.Type GET
The stanza requests information, inquires about what data is needed in order to complete further operations, etc.
-
RESULT
public static final IQ.Type RESULT
The stanza is a response to a successful get or set request.
-
SET
public static final IQ.Type SET
The stanza provides data that is needed for an operation to be completed, sets new values, replaces existing values, etc.
-
-
Method Detail
-
values
public static IQ.Type[] 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 (IQ.Type c : IQ.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IQ.Type 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
-
-