DataForm
@Deprecated public class XDataFormImpl extends Object
<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.
Constructor and Description |
---|
XDataFormImpl()
Deprecated.
|
XDataFormImpl(String type)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addField(FormField field)
Deprecated.
|
void |
addInstruction(String instruction)
Deprecated.
|
void |
addItemFields(List<FormField> itemFields)
Deprecated.
|
void |
addReportedField(FormField field)
Deprecated.
|
org.dom4j.Element |
asXMLElement()
Deprecated.
|
FormField |
getField(String variable)
Deprecated.
|
Iterator |
getFields()
Deprecated.
|
int |
getFieldsSize()
Deprecated.
|
Iterator |
getInstructions()
Deprecated.
|
String |
getName()
Deprecated.
|
String |
getNamespace()
Deprecated.
|
String |
getTitle()
Deprecated.
|
String |
getType()
Deprecated.
|
void |
parse(org.dom4j.Element formElement)
Deprecated.
|
void |
setInstructions(List<String> instructions)
Deprecated.
|
void |
setName(String name)
Deprecated.
|
void |
setNamespace(String namespace)
Deprecated.
|
void |
setTitle(String title)
Deprecated.
|
public XDataFormImpl()
public XDataFormImpl(String type)
public void setTitle(String title)
public String getType()
public String getTitle()
public Iterator getInstructions()
public Iterator getFields()
public int getFieldsSize()
public void addInstruction(String instruction)
public void addField(FormField field)
public void addReportedField(FormField field)
public String getNamespace()
public void setNamespace(String namespace)
public String getName()
public void setName(String name)
public org.dom4j.Element asXMLElement()
public void parse(org.dom4j.Element formElement)
Copyright © 2003-2008 Jive Software.