Package tigase.server

Class DataForm

java.lang.Object
tigase.server.DataForm

public class DataForm extends Object
Author:
Wojciech Kapcia
  • Field Details

  • Constructor Details

    • DataForm

      public DataForm()
  • Method Details

    • addCheckBoxField

      public static void addCheckBoxField(tigase.xml.Element el, String f_name, boolean f_value)
      Data form-types as defined in the XEP-0050.
    • addDataForm

      public static tigase.xml.Element addDataForm(tigase.xml.Element el, Command.DataType data_type)
    • addField

      public static void addField(tigase.xml.Element el, String f_name, String f_label, String type)
    • addFieldMultiValue

      public static void addFieldMultiValue(tigase.xml.Element el, String f_name, List<String> f_value)
    • addFieldMultiValue

      public static void addFieldMultiValue(tigase.xml.Element el, String f_name, List<String> f_value, String label)
    • addFieldListMultiValue

      public static void addFieldListMultiValue(tigase.xml.Element el, String f_name, List<String> f_value)
    • addFieldListMultiValue

      public static void addFieldListMultiValue(tigase.xml.Element el, String f_name, List<String> f_value, String label)
    • addFieldMultiValue

      public static void addFieldMultiValue(tigase.xml.Element el, String f_name, List<String> f_value, String label, String type)
    • addFieldMultiValue

      public static void addFieldMultiValue(tigase.xml.Element el, String f_name, Throwable ex)
    • addFieldValue

      public static void addFieldValue(tigase.xml.Element el, String f_name, String f_value)
    • addFieldValue

      public static void addFieldValue(tigase.xml.Element el, String f_name, String f_value, String label, String[] labels, String[] options)
    • addFieldValue

      public static void addFieldValue(tigase.xml.Element el, String f_name, String[] f_values, String label, String[] labels, String[] options)
    • addFieldValue

      public static void addFieldValue(tigase.xml.Element el, String f_name, String f_value, String label, String[] labels, String[] options, String type)
    • addFieldValue

      public static void addFieldValue(tigase.xml.Element el, String f_name, String f_value, String type)
    • addFieldValue

      public static void addFieldValue(tigase.xml.Element el, String f_name, String f_value, String type, String label)
    • addHiddenField

      public static void addHiddenField(tigase.xml.Element el, String f_name, String f_value)
    • addInstructions

      public static void addInstructions(tigase.xml.Element el, String instructions)
    • addTextField

      public static void addTextField(tigase.xml.Element el, String f_name, String f_value)
    • addTitle

      public static void addTitle(tigase.xml.Element el, String title)
    • createDataForm

      public static tigase.xml.Element createDataForm(Command.DataType data_type)
    • getFieldKeyStartingWith

      public static String getFieldKeyStartingWith(tigase.xml.Element el, String f_name)
    • getFieldValue

      public static String getFieldValue(tigase.xml.Element el, String f_name)
    • getFieldBoolValue

      public static boolean getFieldBoolValue(tigase.xml.Element el, String f_name)
    • getFieldValues

      public static String[] getFieldValues(tigase.xml.Element el, String f_name)
    • getFields

      public static Set<String> getFields(tigase.xml.Element el)
    • getFormType

      public static String getFormType(tigase.xml.Element form)
    • removeFieldValue

      public static boolean removeFieldValue(tigase.xml.Element el, String f_name)