Package org.jivesoftware.smackx.pubsub
Class FormNode
java.lang.Object
org.jivesoftware.smackx.pubsub.NodeExtension
org.jivesoftware.smackx.pubsub.FormNode
- All Implemented Interfaces:
Element
,NamedElement
,XmlElement
,XmlLangElement
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 in
FormNodeType
.-
Constructor Summary
ConstructorDescriptionFormNode
(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
Modifier and TypeMethodDescriptionprotected void
addXml
(XmlStringBuilder xml) 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.XmlElement
getLanguage, getQName
-
Constructor Details
-
FormNode
Create aFormNode
which contains the specified form.- Parameters:
formType
- The type of form being sentsubmitForm
- The form
-
FormNode
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 Details
-
getForm
Get the Form that is to be sent, or was retrieved from the server.- Returns:
- The form
-
addXml
- Overrides:
addXml
in classNodeExtension
-