ezvcard.parameter
Class RelatedType

java.lang.Object
  extended by ezvcard.parameter.VCardParameter
      extended by ezvcard.parameter.RelatedType

public class RelatedType
extends VCardParameter

Represents the TYPE parameter of the Related property.

Supported versions: 4.0

Author:
Michael Angstadt

Field Summary
static RelatedType ACQUAINTANCE
           
static RelatedType AGENT
           
static RelatedType CHILD
           
static RelatedType CO_RESIDENT
           
static RelatedType CO_WORKER
           
static RelatedType COLLEAGUE
           
static RelatedType CONTACT
           
static RelatedType CRUSH
           
static RelatedType DATE
           
static RelatedType EMERGENCY
           
static RelatedType FRIEND
           
static RelatedType KIN
           
static RelatedType ME
           
static RelatedType MET
           
static RelatedType MUSE
           
static RelatedType NEIGHBOR
           
static RelatedType PARENT
           
static RelatedType SIBLING
           
static RelatedType SPOUSE
           
static RelatedType SWEETHEART
           
 
Fields inherited from class ezvcard.parameter.VCardParameter
value
 
Method Summary
static Collection<RelatedType> all()
          Gets all of the parameter values that are defined as static constants in this class.
static RelatedType find(String value)
          Searches for a parameter value that is defined as a static constant in this class.
static RelatedType get(String value)
          Searches for a parameter value and creates one if it cannot be found.
 
Methods inherited from class ezvcard.parameter.VCardParameter
equals, getValue, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ACQUAINTANCE

public static final RelatedType ACQUAINTANCE

AGENT

public static final RelatedType AGENT

CHILD

public static final RelatedType CHILD

CO_RESIDENT

public static final RelatedType CO_RESIDENT

CO_WORKER

public static final RelatedType CO_WORKER

COLLEAGUE

public static final RelatedType COLLEAGUE

CONTACT

public static final RelatedType CONTACT

CRUSH

public static final RelatedType CRUSH

DATE

public static final RelatedType DATE

EMERGENCY

public static final RelatedType EMERGENCY

FRIEND

public static final RelatedType FRIEND

KIN

public static final RelatedType KIN

ME

public static final RelatedType ME

MET

public static final RelatedType MET

MUSE

public static final RelatedType MUSE

NEIGHBOR

public static final RelatedType NEIGHBOR

PARENT

public static final RelatedType PARENT

SIBLING

public static final RelatedType SIBLING

SPOUSE

public static final RelatedType SPOUSE

SWEETHEART

public static final RelatedType SWEETHEART
Method Detail

find

public static RelatedType find(String value)
Searches for a parameter value that is defined as a static constant in this class.

Parameters:
value - the parameter value
Returns:
the object or null if not found

get

public static RelatedType get(String value)
Searches for a parameter value and creates one if it cannot be found. All objects are guaranteed to be unique, so they can be compared with == equality.

Parameters:
value - the parameter value
Returns:
the object

all

public static Collection<RelatedType> all()
Gets all of the parameter values that are defined as static constants in this class.

Returns:
the parameter values


Copyright © 2012-2014 Michael Angstadt. All Rights Reserved.