com.vodafone360.people.datatypes
Enum ContactDetail.DetailKeyTypes

java.lang.Object
  extended by java.lang.Enum<ContactDetail.DetailKeyTypes>
      extended by com.vodafone360.people.datatypes.ContactDetail.DetailKeyTypes
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ContactDetail.DetailKeyTypes>
Enclosing class:
ContactDetail

public static enum ContactDetail.DetailKeyTypes
extends java.lang.Enum<ContactDetail.DetailKeyTypes>

Definitions of KEY types for Contact-Details.


Enum Constant Summary
BIRTHDAY
           
CELL
           
FAX
           
HOME
           
MOBILE
           
UNKNOWN
           
WORK
           
 
Field Summary
private  java.lang.String typeName
           
 
Method Summary
protected static ContactDetail.DetailKeyTypes findKey(java.lang.String k)
          Find detailKeyTypes item for specified String
 java.lang.String tag()
          String value associated with detailKeyTypes item.
static ContactDetail.DetailKeyTypes valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ContactDetail.DetailKeyTypes[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HOME

public static final ContactDetail.DetailKeyTypes HOME

WORK

public static final ContactDetail.DetailKeyTypes WORK

MOBILE

public static final ContactDetail.DetailKeyTypes MOBILE

BIRTHDAY

public static final ContactDetail.DetailKeyTypes BIRTHDAY

CELL

public static final ContactDetail.DetailKeyTypes CELL

FAX

public static final ContactDetail.DetailKeyTypes FAX

UNKNOWN

public static final ContactDetail.DetailKeyTypes UNKNOWN
Field Detail

typeName

private final java.lang.String typeName
Method Detail

values

public static ContactDetail.DetailKeyTypes[] 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 (ContactDetail.DetailKeyTypes c : ContactDetail.DetailKeyTypes.values())
    System.out.println(c);

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

valueOf

public static ContactDetail.DetailKeyTypes 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

tag

public java.lang.String tag()
String value associated with detailKeyTypes item.

Returns:
String value for detailKeyTypes item.

findKey

protected static ContactDetail.DetailKeyTypes findKey(java.lang.String k)
Find detailKeyTypes item for specified String

Parameters:
tag - String value to find detailKeyTypes item for
Returns:
detailKeyTypes item for specified String, null otherwise


JavaDoc