Package org.jivesoftware.smackx.xdata
Class FormField.Option
- java.lang.Object
-
- org.jivesoftware.smackx.xdata.FormField.Option
-
- All Implemented Interfaces:
Element
,FullyQualifiedElement
,NamedElement
,XmlLangElement
- Enclosing class:
- FormField
public static final class FormField.Option extends Object implements FullyQualifiedElement
Represents the available options of aListSingleFormField
andListMultiFormField
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getElementName()
Returns the root element name.String
getLabel()
Returns the label that represents the option.String
getNamespace()
Returns the root element XML namespace.QName
getQName()
FormField.Value
getValue()
Returns the value of the option.String
getValueString()
Returns the string representation of the value of the option.int
hashCode()
String
toString()
XmlStringBuilder
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.FullyQualifiedElement
getLanguage
-
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLabel
public String getLabel()
Returns the label that represents the option.- Returns:
- the label that represents the option.
-
getValue
public FormField.Value getValue()
Returns the value of the option.- Returns:
- the value of the option.
-
getValueString
public String getValueString()
Returns the string representation of the value of the option.- Returns:
- the value of the option.
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
getQName
public QName getQName()
- Specified by:
getQName
in interfaceFullyQualifiedElement
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
-