Class XDataFormImpl


  • @Deprecated
    public class XDataFormImpl
    extends Object
    Deprecated.
    replaced by DataForm
    A concrete DataForm capable of sending itself to a writer and recover its state from an XMPP stanza. XDataForms are packets of the form:
    
     <x xmlns='jabber:x:data' type='{form-type}'>
     <title/>
     <instructions/>
     <field var='field-name'
           type='{field-type}'
           label='description'>
       <desc/>
       <required/>
       <value>field-value</value>
       <option label='option-label'><value>option-value</value></option>
       <option label='option-label'><value>option-value</value></option>
     </field>
     </x>
     
    An XDataFormImpl can contain zero or more XFormFieldImpl 'field' fragments.

    To learn more follow this link: JEP-04.

    Author:
    gdombiak
    • Constructor Detail

      • XDataFormImpl

        public XDataFormImpl()
        Deprecated.
      • XDataFormImpl

        public XDataFormImpl​(String type)
        Deprecated.
    • Method Detail

      • setTitle

        public void setTitle​(String title)
        Deprecated.
      • setInstructions

        public void setInstructions​(List<String> instructions)
        Deprecated.
      • getType

        public String getType()
        Deprecated.
      • getTitle

        public String getTitle()
        Deprecated.
      • getInstructions

        public Iterator getInstructions()
        Deprecated.
      • getFields

        public Iterator getFields()
        Deprecated.
      • getFieldsSize

        public int getFieldsSize()
        Deprecated.
      • addInstruction

        public void addInstruction​(String instruction)
        Deprecated.
      • addField

        public void addField​(FormField field)
        Deprecated.
      • addReportedField

        public void addReportedField​(FormField field)
        Deprecated.
      • addItemFields

        public void addItemFields​(List<FormField> itemFields)
        Deprecated.
      • getNamespace

        public String getNamespace()
        Deprecated.
      • setNamespace

        public void setNamespace​(String namespace)
        Deprecated.
      • getName

        public String getName()
        Deprecated.
      • setName

        public void setName​(String name)
        Deprecated.
      • asXMLElement

        public org.dom4j.Element asXMLElement()
        Deprecated.
      • parse

        public void parse​(org.dom4j.Element formElement)
        Deprecated.