ezvcard.io
Enum CompatibilityMode

java.lang.Object
  extended by java.lang.Enum<CompatibilityMode>
      extended by ezvcard.io.CompatibilityMode
All Implemented Interfaces:
Serializable, Comparable<CompatibilityMode>

public enum CompatibilityMode
extends Enum<CompatibilityMode>

Specifies which mail client the vCard is coming from or is destined for.

Author:
George El-Haddad, Michael Angstadt

Enum Constant Summary
EVOLUTION
           
GMAIL
           
I_PHONE
           
IOS_EXPORTER
           
KDE_ADDRESS_BOOK
           Compatibility mode for use with the KDE Address Book application.
MAC_ADDRESS_BOOK
           
MS_OUTLOOK
           
RFC
           Default compatibility mode for adhering to the RFC specs.
 
Method Summary
static CompatibilityMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CompatibilityMode[] 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

RFC

public static final CompatibilityMode RFC

Default compatibility mode for adhering to the RFC specs.


MS_OUTLOOK

public static final CompatibilityMode MS_OUTLOOK

I_PHONE

public static final CompatibilityMode I_PHONE

MAC_ADDRESS_BOOK

public static final CompatibilityMode MAC_ADDRESS_BOOK

KDE_ADDRESS_BOOK

public static final CompatibilityMode KDE_ADDRESS_BOOK

Compatibility mode for use with the KDE Address Book application.

  1. Uses escaped commas in the CATEGORIES feature when there is more than one category. The RFC-2426 explicitly states "One or more text values separated by a COMMA character"
  2. Escapes commas in CATEGORIES feature when writing vcard.


IOS_EXPORTER

public static final CompatibilityMode IOS_EXPORTER

EVOLUTION

public static final CompatibilityMode EVOLUTION

GMAIL

public static final CompatibilityMode GMAIL
Method Detail

values

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

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

valueOf

public static CompatibilityMode valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2012-2013. All Rights Reserved.