Package org.jivesoftware.smackx.xdata
Class FormField.Option
java.lang.Object
org.jivesoftware.smackx.xdata.FormField.Option
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlElement,org.jivesoftware.smack.packet.XmlLangElement
- Enclosing class:
FormField
public static final class FormField.Option
extends Object
implements org.jivesoftware.smack.packet.XmlElement
Represents the available options of a
ListSingleFormField and ListMultiFormField.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetLabel()Returns the label that represents the option.getQName()getValue()Returns the value of the option.Returns the string representation of the value of the option.inthashCode()toString()org.jivesoftware.smack.util.XmlStringBuildertoXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.Element
toXML, toXMLMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage
-
Field Details
-
ELEMENT
- See Also:
-
QNAME
-
-
Constructor Details
-
Option
-
Option
-
Option
-
-
Method Details
-
getLabel
Returns the label that represents the option.- Returns:
- the label that represents the option.
-
getValue
Returns the value of the option.- Returns:
- the value of the option.
-
getValueString
Returns the string representation of the value of the option.- Returns:
- the value of the option.
-
toString
-
getElementName
- Specified by:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
getNamespace
- Specified by:
getNamespacein interfaceorg.jivesoftware.smack.packet.XmlElement
-
getQName
- Specified by:
getQNamein interfaceorg.jivesoftware.smack.packet.XmlElement
-
toXML
public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) - Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element
-
equals
-
hashCode
public int hashCode()
-