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 Details

  • Constructor Details

  • Method Details

    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getElementName

      public String getElementName()
      Specified by:
      getElementName in interface org.jivesoftware.smack.packet.NamedElement
    • getNamespace

      public String getNamespace()
      Specified by:
      getNamespace in interface org.jivesoftware.smack.packet.XmlElement
    • getQName

      public QName getQName()
      Specified by:
      getQName in interface org.jivesoftware.smack.packet.XmlElement
    • toXML

      public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
      Specified by:
      toXML in interface org.jivesoftware.smack.packet.Element
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object