Package org.dmfs.rfc5545.recur
Enum Class RecurrenceRule.RfcMode
- All Implemented Interfaces:
Serializable,Comparable<RecurrenceRule.RfcMode>,Constable
- Enclosing class:
- RecurrenceRule
Enumeration of supported rule versions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic RecurrenceRule.RfcModeReturns the enum constant of this class with the specified name.static RecurrenceRule.RfcMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RFC2445_STRICT
Parses recurrence rules according to RFC 2445. Every error will cause an exception to be thrown. -
RFC2445_LAX
Parses recurrence rules according to RFC 2445 in a more tolerant way. The parser will just skip invalid parts in the rule and won't complain as long as the result is a valid rule.This mode also accepts rules that comply with RFC 5545.
Note: Using this mode rules are evaluated differently than with
RFC5545_LAX.RFC5545_LAXwill just drop all invalid parts and evaluate the rule according to RFC 5545. This mode will evaluate all rules.Also this mode will output rules that comply with RFC 2445.
-
RFC5545_STRICT
Parses recurrence rules according to RFC 5545. Every error will cause an exception to be thrown. -
RFC5545_LAX
Parses recurrence rules according to RFC 5545 in a more tolerant way. The parser will just skip invalid parts in the rule and won't complain as long as the result is a valid rule.This mode also accepts rules that comply with RFC 2445 but not with RFC 5545.
Note: Using this mode rules are evaluated differently than with
RFC2445_LAX. This mode will just drop all invalid parts and evaluate the rule according to RFC 5545.RFC2445_LAXwill evaluate all rules.Also this mode will output rules that comply with RFC 5545.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-