public static enum DataForm.Field.Type extends java.lang.Enum<DataForm.Field.Type>
Defines field types.
The following field types represent data “types” that are commonly exchanged between Jabber/XMPP entities.
Enum Constant and Description |
---|
BOOLEAN
The field enables an entity to gather or provide an either-or choice between two options.
|
FIXED
The field is intended for data description (e.g., human-readable text such as "section" headers) rather than data gathering or provision.
|
HIDDEN
The field is not shown to the form-submitting entity, but instead is returned with the form.
|
JID_MULTI
The field enables an entity to gather or provide multiple Jabber IDs.
|
JID_SINGLE
The field enables an entity to gather or provide a single Jabber ID.
|
LIST_MULTI
The field enables an entity to gather or provide one or more options from among many.
|
LIST_SINGLE
The field enables an entity to gather or provide one option from among many.
|
TEXT_MULTI
The field enables an entity to gather or provide multiple lines of text.
|
TEXT_PRIVATE
The field enables an entity to gather or provide a single line or word of text, which shall be obscured in an interface (e.g., with multiple instances of the asterisk character).
|
TEXT_SINGLE
The field enables an entity to gather or provide a single line or word of text, which may be shown in an interface.
|
Modifier and Type | Method and Description |
---|---|
static DataForm.Field.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataForm.Field.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataForm.Field.Type BOOLEAN
public static final DataForm.Field.Type FIXED
<value/>
child SHOULD NOT contain newlines (the \n and \r characters); instead an application SHOULD generate multiple fixed fields, each with one <value/>
child.public static final DataForm.Field.Type HIDDEN
public static final DataForm.Field.Type JID_MULTI
public static final DataForm.Field.Type JID_SINGLE
public static final DataForm.Field.Type LIST_MULTI
public static final DataForm.Field.Type LIST_SINGLE
public static final DataForm.Field.Type TEXT_MULTI
public static final DataForm.Field.Type TEXT_PRIVATE
public static final DataForm.Field.Type TEXT_SINGLE
public static DataForm.Field.Type[] values()
for (DataForm.Field.Type c : DataForm.Field.Type.values()) System.out.println(c);
public static DataForm.Field.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2014–2019 XMPP.rocks. All rights reserved.