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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns 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.inthashCode()toString()toXML(XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceXmlElement- Returns:
- the namespace.
-
getQName
- Specified by:
getQNamein interfaceXmlElement
-
toXML
-
equals
-
hashCode
-