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 aListSingleFormFieldandListMultiFormField.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetElementName()Returns the root element name.StringgetLabel()Returns the label that represents the option.StringgetNamespace()Returns the root element XML namespace.QNamegetQName()FormField.ValuegetValue()Returns the value of the option.StringgetValueString()Returns the string representation of the value of the option.inthashCode()StringtoString()XmlStringBuildertoXML(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:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
public String getNamespace()
Description copied from interface:FullyQualifiedElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceFullyQualifiedElement- Returns:
- the namespace.
-
getQName
public QName getQName()
- Specified by:
getQNamein interfaceFullyQualifiedElement
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
-