Package org.jivesoftware.smackx.xdata
Class FormField.Option
java.lang.Object
org.jivesoftware.smackx.xdata.FormField.Option
- All Implemented Interfaces:
Element
,NamedElement
,XmlElement
,XmlLangElement
- Enclosing class:
- FormField
Represents the available options of a
ListSingleFormField
and ListMultiFormField
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the root element name.getLabel()
Returns the label that represents the option.Returns the root element XML namespace.getQName()
getValue()
Returns the value of the option.Returns the string representation of the value of the option.int
hashCode()
toString()
toXML
(XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- the namespace.
-
getQName
- Specified by:
getQName
in interfaceXmlElement
-
toXML
-
equals
-
hashCode
-