public static enum IQ.Type extends Enum<IQ.Type>
Enum Constant and Description |
---|
error
The IQ stanza reports an error that has occurred regarding processing or delivery of a get or set request.
|
get
The IQ stanza requests information, inquires about what data is needed in order to complete further operations, etc.
|
result
The IQ stanza is a response to a successful get or set request.
|
set
The IQ stanza provides data that is needed for an operation to be completed, sets new values, replaces existing values, etc.
|
Modifier and Type | Method and Description |
---|---|
static IQ.Type |
fromString(String string)
Converts a String into the corresponding types.
|
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.
|
public static final IQ.Type get
public static final IQ.Type set
public static final IQ.Type result
public static IQ.Type[] values()
for (IQ.Type c : IQ.Type.values()) System.out.println(c);
public static IQ.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static IQ.Type fromString(String string)
string
- the String value to covert.IllegalArgumentException
- when not able to parse the string parameterNullPointerException
- if the string is null