Package tigase.server
Class DataForm
java.lang.Object
tigase.server.DataForm
- Author:
- Wojciech Kapcia
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static enum
static class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addCheckBoxField
(Element el, String f_name, boolean f_value) Data form-types as defined in the XEP-0050.static Element
addDataForm
(Element el, Command.DataType data_type) static void
static void
addFieldListMultiValue
(Element el, String f_name, List<String> f_value) static void
static void
addFieldMultiValue
(Element el, String f_name, Throwable ex) static void
addFieldMultiValue
(Element el, String f_name, List<String> f_value) static void
static void
static void
addFieldValue
(Element el, String f_name, String f_value) static void
addFieldValue
(Element el, String f_name, String[] f_values, String label, String[] labels, String[] options) static void
addFieldValue
(Element el, String f_name, String f_value, String type) static void
static void
addFieldValue
(Element el, String f_name, String f_value, String label, String[] labels, String[] options) static void
addFieldValue
(Element el, String f_name, String f_value, String label, String[] labels, String[] options, String type) static void
addHiddenField
(Element el, String f_name, String f_value) static void
addInstructions
(Element el, String instructions) static void
addTextField
(Element el, String f_name, String f_value) static void
static Element
createDataForm
(Command.DataType data_type) static boolean
getFieldBoolValue
(Element el, String f_name) static String
getFieldKeyStartingWith
(Element el, String f_name) static String
getFieldValue
(Element el, String f_name) static String[]
getFieldValues
(Element el, String f_name) static String
getFormType
(Element form) static boolean
removeFieldValue
(Element el, String f_name)
-
Field Details
-
FIELD_EL
- See Also:
-
VALUE_EL
- See Also:
-
FORM_TYPE
- See Also:
-
FIELD_VALUE_PATH
-
-
Constructor Details
-
DataForm
public DataForm()
-
-
Method Details
-
addCheckBoxField
Data form-types as defined in the XEP-0050. -
addDataForm
-
addField
-
addFieldMultiValue
-
addFieldMultiValue
-
addFieldListMultiValue
-
addFieldListMultiValue
-
addFieldMultiValue
-
addFieldMultiValue
-
addFieldValue
-
addFieldValue
-
addFieldValue
-
addFieldValue
-
addFieldValue
-
addFieldValue
-
addHiddenField
-
addInstructions
-
addTextField
-
addTitle
-
createDataForm
-
getFieldKeyStartingWith
-
getFieldValue
-
getFieldBoolValue
-
getFieldValues
-
getFields
-
getFormType
-
removeFieldValue
-