Package org.jivesoftware.smackx.pubsub
Class FormNode
- java.lang.Object
-
- org.jivesoftware.smackx.pubsub.NodeExtension
-
- org.jivesoftware.smackx.pubsub.FormNode
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class FormNode extends NodeExtension
Generic stanza extension which represents any PubSub form that is parsed from the incoming stream or being sent out to the server. Form types are defined inFormNodeType
.
-
-
Constructor Summary
Constructors Constructor Description FormNode(FormNodeType formType, String nodeId, DataForm submitForm)
Create aFormNode
which contains the specified form, which is associated with the specified node.FormNode(FormNodeType formType, DataForm submitForm)
Create aFormNode
which contains the specified form.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addXml(XmlStringBuilder xml)
DataForm
getForm()
Get the Form that is to be sent, or was retrieved from the server.-
Methods inherited from class org.jivesoftware.smackx.pubsub.NodeExtension
getElementName, getNamespace, getNode, getPubSubNamespace, toString, toXML
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Constructor Detail
-
FormNode
public FormNode(FormNodeType formType, DataForm submitForm)
Create aFormNode
which contains the specified form.- Parameters:
formType
- The type of form being sentsubmitForm
- The form
-
FormNode
public FormNode(FormNodeType formType, String nodeId, DataForm submitForm)
Create aFormNode
which contains the specified form, which is associated with the specified node.- Parameters:
formType
- The type of form being sentnodeId
- The node the form is associated withsubmitForm
- The form
-
-
Method Detail
-
getForm
public DataForm getForm()
Get the Form that is to be sent, or was retrieved from the server.- Returns:
- The form
-
addXml
protected void addXml(XmlStringBuilder xml)
- Overrides:
addXml
in classNodeExtension
-
-