Top Description Fields Constructors Methods
net.fortuna.ical4j.util

public final Class CompatibilityHints

extends Object
Class Inheritance
Imports
java.util.Map, .Optional, java.util.concurrent.ConcurrentHashMap

$Id$ Created on 9/03/2006 A set of keys used to enable compatibility features.
Author
Ben Fortuna

Field Summary

Modifier and TypeField and Description
private static final Map<String, Boolean>
public static final String
KEY_NOTES_COMPATIBILITY

A system property key used to enable compatibility with Lotus Notes-generated iCalendar files.

public static final String
KEY_OUTLOOK_COMPATIBILITY

A system property key used to enable compatibility with Outlook/Exchange-generated iCalendar files.

public static final String
KEY_RELAXED_PARSING

A system property key to enable relaxed parsing.

public static final String
KEY_RELAXED_UNFOLDING

A system property key to enable relaxed unfolding.

public static final String
KEY_RELAXED_VALIDATION

A system property key to enable relaxed validation.

public static final String
KEY_VCARD_COMPATIBILITY

Support for vCard features that are not necessarily compatible with the iCalendar standard.

Constructor Summary

AccessConstructor and Description
private
CompatibilityHints()

Constructor made private to enforce static nature.

Method Summary

Modifier and TypeMethod and Description
public static void
clearHintEnabled(final String
a compatibility hint key
key
)

public static boolean

Returns:

true if the specified compatibility hint is enabled, otherwise false
isHintEnabled
(final String
a compatibility hint key
key
)

public static void
setHintEnabled(final String
a compatibility hint key
key
,
final boolean
indicates whether to enable or disable the compatibility hint
enabled
)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

HINTSback to summary
private static final Map<String, Boolean> HINTS
KEY_NOTES_COMPATIBILITYback to summary
public static final String KEY_NOTES_COMPATIBILITY

A system property key used to enable compatibility with Lotus Notes-generated iCalendar files. Notes compatibility is enabled by setting this system property to "true".

KEY_OUTLOOK_COMPATIBILITYback to summary
public static final String KEY_OUTLOOK_COMPATIBILITY

A system property key used to enable compatibility with Outlook/Exchange-generated iCalendar files. Outlook compatibility is enabled by setting this system property to "true".

KEY_RELAXED_PARSINGback to summary
public static final String KEY_RELAXED_PARSING

A system property key to enable relaxed parsing. Relaxed parsing is enabled by setting this system property to "true".

KEY_RELAXED_UNFOLDINGback to summary
public static final String KEY_RELAXED_UNFOLDING

A system property key to enable relaxed unfolding. Relaxed unfolding is enabled by setting this system property to "true".

KEY_RELAXED_VALIDATIONback to summary
public static final String KEY_RELAXED_VALIDATION

A system property key to enable relaxed validation. Relaxed validation disables validation of certain conformance rules that many iCalendar implementations do not conform to. Relaxed validation is enabled by setting this system property to "true".

KEY_VCARD_COMPATIBILITYback to summary
public static final String KEY_VCARD_COMPATIBILITY

Support for vCard features that are not necessarily compatible with the iCalendar standard.

Constructor Detail

CompatibilityHintsback to summary
private CompatibilityHints()

Constructor made private to enforce static nature.

Method Detail

clearHintEnabledback to summary
public static void clearHintEnabled(final String key)
Parameters
key:String

a compatibility hint key

isHintEnabledback to summary
public static boolean isHintEnabled(final String key)
Parameters
key:String

a compatibility hint key

Returns:boolean

true if the specified compatibility hint is enabled, otherwise false

setHintEnabledback to summary
public static void setHintEnabled(final String key, final boolean enabled)
Parameters
key:String

a compatibility hint key

enabled:boolean

indicates whether to enable or disable the compatibility hint