net.sourceforge.jpalm.mobiledb.field.type
Class ListOption

java.lang.Object
  extended by net.sourceforge.jpalm.mobiledb.field.type.ListOption
All Implemented Interfaces:
Type<java.lang.String>

public class ListOption
extends java.lang.Object
implements Type<java.lang.String>

A list option in a MobileDB record.


Field Summary
protected  T value
           
 
Constructor Summary
ListOption()
          Creates a new list option.
ListOption(java.lang.String option)
          Creates a new list option.
 
Method Summary
 boolean equals(java.lang.Object object)
           
static ListOption fromMobileDB(java.lang.String string)
          Creates a list option from the MobileDB value.
 java.lang.String getValue()
          Gets the native object for this type.
 java.lang.String toMobileDB()
          Gets the MobileDB value for this type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sourceforge.jpalm.mobiledb.field.type.Type
getValue, toMobileDB
 

Field Detail

value

protected T value
Constructor Detail

ListOption

public ListOption()
Creates a new list option.


ListOption

public ListOption(java.lang.String option)
Creates a new list option.

Parameters:
option - the option
Method Detail

fromMobileDB

public static ListOption fromMobileDB(java.lang.String string)
Creates a list option from the MobileDB value.

Parameters:
string - the MobileDB value to convert
Returns:
a list option

toMobileDB

public java.lang.String toMobileDB()
Description copied from interface: Type
Gets the MobileDB value for this type.

Specified by:
toMobileDB in interface Type<java.lang.String>
Returns:
the MobileDB value

getValue

public java.lang.String getValue()
Description copied from interface: Type
Gets the native object for this type.

Specified by:
getValue in interface Type<java.lang.String>
Returns:
the native object

equals

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

toString

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