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
ConstructorsConstructorDescriptionFormNode(FormNodeType formType, String nodeId, DataForm submitForm) Create aFormNodewhich contains the specified form, which is associated with the specified node.FormNode(FormNodeType formType, DataForm submitForm) Create aFormNodewhich contains the specified form. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddXml(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, toXMLMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Constructor Details
-
FormNode
Create aFormNodewhich contains the specified form.- Parameters:
formType- The type of form being sentsubmitForm- The form
-
FormNode
Create aFormNodewhich 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:
addXmlin classNodeExtension
-