ezvcard.parameter
Class AddressType

java.lang.Object
  extended by ezvcard.parameter.VCardParameter
      extended by ezvcard.parameter.VersionedVCardParameter
          extended by ezvcard.parameter.AddressType

public class AddressType
extends VersionedVCardParameter

Represents the TYPE parameter of the Address and Label properties.

Supported versions: 2.1, 3.0, 4.0

Author:
Michael Angstadt

Field Summary
static AddressType DOM
          Supported versions: 2.1, 3.0
static AddressType HOME
          Supported versions: 2.1, 3.0, 4.0
static AddressType INTL
          Supported versions: 2.1, 3.0
static AddressType PARCEL
          Supported versions: 2.1, 3.0
static AddressType POSTAL
          Supported versions: 2.1, 3.0
static AddressType PREF
          Supported versions: 2.1, 3.0
static AddressType WORK
          Supported versions: 2.1, 3.0, 4.0
 
Fields inherited from class ezvcard.parameter.VersionedVCardParameter
supportedVersions
 
Fields inherited from class ezvcard.parameter.VCardParameter
value
 
Method Summary
static Collection<AddressType> all()
          Gets all of the parameter values that are defined as static constants in this class.
static AddressType find(String value)
          Searches for a parameter value that is defined as a static constant in this class.
static AddressType get(String value)
          Searches for a parameter value and creates one if it cannot be found.
 
Methods inherited from class ezvcard.parameter.VersionedVCardParameter
isSupported
 
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

HOME

public static final AddressType HOME
Supported versions: 2.1, 3.0, 4.0


WORK

public static final AddressType WORK
Supported versions: 2.1, 3.0, 4.0


DOM

public static final AddressType DOM
Supported versions: 2.1, 3.0


INTL

public static final AddressType INTL
Supported versions: 2.1, 3.0


POSTAL

public static final AddressType POSTAL
Supported versions: 2.1, 3.0


PARCEL

public static final AddressType PARCEL
Supported versions: 2.1, 3.0


PREF

public static final AddressType PREF
Supported versions: 2.1, 3.0

Method Detail

find

public static AddressType 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 AddressType 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<AddressType> 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.