com.caucho.xmpp.data
Class DataForm

java.lang.Object
  extended by com.caucho.xmpp.data.DataForm
All Implemented Interfaces:
java.io.Serializable

public class DataForm
extends java.lang.Object
implements java.io.Serializable

data forms XEP-0004: http://www.xmpp.org/extensions/xep-0004.html

 namespace = jabber:x:data

 element x {
   attribute type,

   instructions*,
   title?,
   field*,
   reported?,
   item*
 }

 element field {
    attribute label?,
    attribute type?,
    attribute var?,

    desc?,
    required?,
    value*,
    option*,
 }

 element item {
   field+
 }

 element option {
   attribute label?,

   value*
 }

 element reported {
   field+
 }

 element value {
   string
 }
 

See Also:
Serialized Form

Constructor Summary
DataForm(java.lang.String type)
           
 
Method Summary
 DataField[] getField()
           
 DataInstructions[] getInstructions()
           
 DataItem[] getItem()
           
 DataReported getReported()
           
 java.lang.String getTitle()
           
 java.lang.String getType()
           
 void setField(DataField[] field)
           
 void setFieldList(java.util.ArrayList<DataField> fieldList)
           
 void setInstructions(DataInstructions[] instructions)
           
 void setInstructionsList(java.util.ArrayList<DataInstructions> instructionsList)
           
 void setItem(DataItem[] item)
           
 void setItemList(java.util.ArrayList<DataItem> itemList)
           
 void setReported(DataReported reported)
           
 void setTitle(java.lang.String title)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataForm

public DataForm(java.lang.String type)
Method Detail

getType

public java.lang.String getType()

setTitle

public void setTitle(java.lang.String title)

getTitle

public java.lang.String getTitle()

getField

public DataField[] getField()

setField

public void setField(DataField[] field)

setFieldList

public void setFieldList(java.util.ArrayList<DataField> fieldList)

getReported

public DataReported getReported()

setReported

public void setReported(DataReported reported)

getInstructions

public DataInstructions[] getInstructions()

setInstructions

public void setInstructions(DataInstructions[] instructions)

setInstructionsList

public void setInstructionsList(java.util.ArrayList<DataInstructions> instructionsList)

getItem

public DataItem[] getItem()

setItem

public void setItem(DataItem[] item)

setItemList

public void setItemList(java.util.ArrayList<DataItem> itemList)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object