Smack

org.jivesoftware.smackx
Class FormField.Option

java.lang.Object
  extended by org.jivesoftware.smackx.FormField.Option
Enclosing class:
FormField

public static class FormField.Option
extends java.lang.Object

Represents the available option of a given FormField.

Author:
Gaston Dombiak

Constructor Summary
FormField.Option(java.lang.String value)
           
FormField.Option(java.lang.String label, java.lang.String value)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getLabel()
          Returns the label that represents the option.
 java.lang.String getValue()
          Returns the value of the option.
 int hashCode()
           
 java.lang.String toString()
           
 java.lang.String toXML()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormField.Option

public FormField.Option(java.lang.String value)

FormField.Option

public FormField.Option(java.lang.String label,
                        java.lang.String value)
Method Detail

getLabel

public java.lang.String getLabel()
Returns the label that represents the option.

Returns:
the label that represents the option.

getValue

public java.lang.String getValue()
Returns the value of the option.

Returns:
the value of the option.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toXML

public java.lang.String toXML()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

Smack

Copyright © 2003-2007 Jive Software.