Package rocks.xmpp.extensions.data.model
Enum DataForm.Type
- java.lang.Object
-
- java.lang.Enum<DataForm.Type>
-
- rocks.xmpp.extensions.data.model.DataForm.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<DataForm.Type>
- Enclosing class:
- DataForm
public static enum DataForm.Type extends Enum<DataForm.Type>
The form type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCEL
The form-submitting entity has cancelled submission of data to the form-processing entity.FORM
The form-processing entity is asking the form-submitting entity to complete a form.RESULT
The form-processing entity is returning data (e.g., search results) to the form-submitting entity, or the data is a generic data set.SUBMIT
The form-submitting entity is submitting data to the form-processing entity.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataForm.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataForm.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CANCEL
public static final DataForm.Type CANCEL
The form-submitting entity has cancelled submission of data to the form-processing entity.
-
FORM
public static final DataForm.Type FORM
The form-processing entity is asking the form-submitting entity to complete a form.
-
RESULT
public static final DataForm.Type RESULT
The form-processing entity is returning data (e.g., search results) to the form-submitting entity, or the data is a generic data set.
-
SUBMIT
public static final DataForm.Type SUBMIT
The form-submitting entity is submitting data to the form-processing entity. The submission MAY include fields that were not provided in the empty form, but the form-processing entity MUST ignore any fields that it does not understand.
-
-
Method Detail
-
values
public static DataForm.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 (DataForm.Type c : DataForm.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 DataForm.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
-
-