org.jivesoftware.xiff.data.forms
class FormExtension
Object
|
+--org.jivesoftware.xiff.data.XMLStanza
|
+--org.jivesoftware.xiff.data.Extension
|
+--org.jivesoftware.xiff.data.forms.FormExtension
Implemented Interfaces: IExtension, ISerializableclass FormExtension extends Extension
Implements the base functionality shared by all MUC extensions
- Author:Sean Treadway
- Since:2.0.0
Fields inherited from class org.jivesoftware.xiff.data.XMLStanza
Property Summary
Instructions describing what to do with this form
The title of this form
The type of form. May be one of the following:
FormExtension.REQUEST_TYPE
FormExtension.RESULT_TYPE
FormExtension.SUBMIT_TYPE
FormExtension.CANCEL_TYPE
Method Summary
Called when data is retrieved from the XMLSocket, use this method to extract any state into internal state.
Item interface to array of fields if they are contained in an "item" element
Item interface to array of fields if they are contained in an "item" element
This is an accessor to the hidden field type
FORM_TYPE
easily check what kind of form this is. Array of fields found in individual items due to a search query result
Use this method to remove all fields.
Use this method to remove all items.
Called when this extension is being put back on the network. Perform any further serialization for Extensions and items
Sets the fields given a fieldmap object containing keys of field names and values of value arrays
Methods inherited from class org.jivesoftware.xiff.data.XMLStanza
Field Documentation
Property Documentation
instructions
public instructions: String (read, write)
Instructions describing what to do with this form
type
public type: String (read, write)
The type of form. May be one of the following:
FormExtension.REQUEST_TYPE
FormExtension.RESULT_TYPE
FormExtension.SUBMIT_TYPE
FormExtension.CANCEL_TYPE
Constructor Documentation
Method Documentation
deserialize
public function deserialize (
node: XMLNode): Boolean
Called when data is retrieved from the XMLSocket, use this method to extract any state into internal state.
- Specified by:deserialize in interface org.jivesoftware.xiff.data.ISerializable
- Parameters:
node (XMLNode) The node that should be used as the data container.
getAllFields
public function getAllFields (
): Array
Item interface to array of fields if they are contained in an "item" element
- Returns:Array of FormFields objects
getAllItems
public function getAllItems (
): Array
Item interface to array of fields if they are contained in an "item" element
- Returns:Array containing Arrays of FormFields objects
getElementName
public function getElementName (
): String
- Specified by:getElementName in interface org.jivesoftware.xiff.data.IExtension
getFormType
public function getFormType (
): String
This is an accessor to the hidden field type
FORM_TYPE
easily check what kind of form this is. - Returns:String the registered namespace of this form type
- See also:http://www.jabber.org/jeps/jep-0068.html
getNS
public function getNS (
): String
- Specified by:getNS in interface org.jivesoftware.xiff.data.IExtension
getReportedFields
public function getReportedFields (
): Array
Array of fields found in individual items due to a search query result
- Returns:Array of FormField objects containing information about the fields in the fields retrieved by getAllItems
serialize
public function serialize (
parent: XMLNode): Boolean
Called when this extension is being put back on the network. Perform any further serialization for Extensions and items
- Specified by:serialize in interface org.jivesoftware.xiff.data.ISerializable
- Parameters:
parent parentNode (XMLNode) The container of the XML.
setFields
public function setFields (
fieldmap: Object): Void
Sets the fields given a fieldmap object containing keys of field names and values of value arrays
- Parameters:
fieldmap Object in format obj[key:String].value:Array
- FormExtension.as, Last Modified: 3/10/2005 10:10:10 PM