Package org.jivesoftware.smackx.pubsub
Class FormNode
- java.lang.Object
-
- org.jivesoftware.smackx.pubsub.NodeExtension
-
- org.jivesoftware.smackx.pubsub.FormNode
-
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.ExtensionElement,org.jivesoftware.smack.packet.FullyQualifiedElement,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.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, java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataFormgetForm()Get the Form that is to be sent, or was retrieved from the server.java.lang.CharSequencetoXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)-
Methods inherited from class org.jivesoftware.smackx.pubsub.NodeExtension
getElementName, getNamespace, getNode, getPubSubNamespace, toString
-
-
-
-
Constructor Detail
-
FormNode
public FormNode(FormNodeType formType, DataForm submitForm)
Create aFormNodewhich contains the specified form.- Parameters:
formType- The type of form being sentsubmitForm- The form
-
FormNode
public FormNode(FormNodeType formType, java.lang.String nodeId, DataForm submitForm)
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 Detail
-
getForm
public DataForm getForm()
Get the Form that is to be sent, or was retrieved from the server.- Returns:
- The form
-
toXML
public java.lang.CharSequence toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
- Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element- Overrides:
toXMLin classNodeExtension
-
-