com.caucho.xmpp.data
Class DataField

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

public class DataField
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 field {
    attribute label?,
    attribute type?,
    attribute var?,

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

 element option {
   attribute label?,

   value*
 }

 element reported {
   field+
 }

 element value {
   string
 }
 

See Also:
Serialized Form

Constructor Summary
DataField(java.lang.String type)
           
DataField(java.lang.String type, java.lang.String var)
           
DataField(java.lang.String type, java.lang.String var, java.lang.String label)
           
 
Method Summary
 java.lang.String getDesc()
           
 java.lang.String getLabel()
           
 DataOption[] getOption()
           
 java.lang.String getType()
           
 DataValue[] getValue()
           
 java.lang.String getVar()
           
 boolean isRequired()
           
 void setDesc(java.lang.String desc)
           
 void setOption(DataOption[] option)
           
 void setOptionList(java.util.ArrayList<DataOption> optionList)
           
 void setRequired(boolean isRequired)
           
 void setValue(DataValue[] value)
           
 void setValueList(java.util.ArrayList<DataValue> valueList)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataField

public DataField(java.lang.String type)

DataField

public DataField(java.lang.String type,
                 java.lang.String var)

DataField

public DataField(java.lang.String type,
                 java.lang.String var,
                 java.lang.String label)
Method Detail

getType

public java.lang.String getType()

getVar

public java.lang.String getVar()

getLabel

public java.lang.String getLabel()

getDesc

public java.lang.String getDesc()

setDesc

public void setDesc(java.lang.String desc)

isRequired

public boolean isRequired()

setRequired

public void setRequired(boolean isRequired)

getOption

public DataOption[] getOption()

setOption

public void setOption(DataOption[] option)

setOptionList

public void setOptionList(java.util.ArrayList<DataOption> optionList)

getValue

public DataValue[] getValue()

setValue

public void setValue(DataValue[] value)

setValueList

public void setValueList(java.util.ArrayList<DataValue> valueList)

toString

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