com.vodafone360.people.service
Enum PersistSettings.Option

java.lang.Object
  extended by java.lang.Enum<PersistSettings.Option>
      extended by com.vodafone360.people.service.PersistSettings.Option
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PersistSettings.Option>
Enclosing class:
PersistSettings

public static enum PersistSettings.Option
extends java.lang.Enum<PersistSettings.Option>

Definition of a set of options handled by PersistSettings. These options are; Internet availability (always available, only in home network or manually activated) First time contact sync status. First time native contact sync status.


Enum Constant Summary
FIRST_TIME_MESYNC_COMPLETE
           
FIRST_TIME_MESYNC_STARTED
           
FIRST_TIME_NATIVE_SYNC_COMPLETE
           
FIRST_TIME_SYNC_COMPLETE
           
FIRST_TIME_SYNC_STARTED
           
INTERNETAVAIL
           
 
Field Summary
private  java.lang.Object mDefaultValue
           
private  java.lang.String mFieldName
           
private  PersistSettings.OptionType mType
           
 
Method Summary
 java.lang.Object defaultValue()
          Return the default value for current setting.
 PersistSettings.OptionType getType()
          Return the type of current option (i.e.
private static PersistSettings.Option lookupValue(java.lang.String key)
          Search for settings item by name.
 java.lang.String tableFieldName()
          Option's State table record name
 java.lang.String toString()
           
static PersistSettings.Option valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PersistSettings.Option[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INTERNETAVAIL

public static final PersistSettings.Option INTERNETAVAIL

FIRST_TIME_SYNC_STARTED

public static final PersistSettings.Option FIRST_TIME_SYNC_STARTED

FIRST_TIME_MESYNC_STARTED

public static final PersistSettings.Option FIRST_TIME_MESYNC_STARTED

FIRST_TIME_SYNC_COMPLETE

public static final PersistSettings.Option FIRST_TIME_SYNC_COMPLETE

FIRST_TIME_MESYNC_COMPLETE

public static final PersistSettings.Option FIRST_TIME_MESYNC_COMPLETE

FIRST_TIME_NATIVE_SYNC_COMPLETE

public static final PersistSettings.Option FIRST_TIME_NATIVE_SYNC_COMPLETE
Field Detail

mFieldName

private java.lang.String mFieldName

mDefaultValue

private java.lang.Object mDefaultValue

mType

private PersistSettings.OptionType mType
Method Detail

values

public static PersistSettings.Option[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PersistSettings.Option c : PersistSettings.Option.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PersistSettings.Option valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

defaultValue

public java.lang.Object defaultValue()
Return the default value for current setting.

Returns:
the default value for current setting.

getType

public PersistSettings.OptionType getType()
Return the type of current option (i.e. String, boolean, integer, long).

Returns:
type of current option.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<PersistSettings.Option>

lookupValue

private static PersistSettings.Option lookupValue(java.lang.String key)
Search for settings item by name.

Parameters:
key - Option name to search for.
Returns:
Option item, null if item not found.

tableFieldName

public java.lang.String tableFieldName()
Option's State table record name

Returns:
Name of the State table field corresponding to this Option.


JavaDoc