public enum IcalValueType extends java.lang.Enum<IcalValueType>
4.2.20 Value Data Types
Parameter Name: VALUE
Purpose: To explicitly specify the data type format for a property value.
Format Definition: The "VALUE" property parameter is defined by the
following notation:
valuetypeparam = "VALUE" "=" valuetype
valuetype = ("BINARY"
/ "BOOLEAN"
/ "CAL-ADDRESS"
/ "DATE"
/ "DATE-TIME"
/ "DURATION"
/ "FLOAT"
/ "INTEGER"
/ "PERIOD"
/ "RECUR"
/ "TEXT"
/ "TIME"
/ "URI"
/ "UTC-OFFSET"
/ x-name
; Some experimental iCalendar data type.
/ iana-token)
; Some other IANA registered iCalendar data type.
Description: The parameter specifies the data type and format of the property
value. The property values MUST be of a single value type. For example, a
"RDATE" property cannot have a combination of DATE- TIME and TIME value
types.
If the property's value is the default value type, then this parameter need
not be specified. However, if the property's default value type is overridden
by some other allowable value type, then this parameter MUST be specified.
| Enum Constant and Description |
|---|
BINARY |
BOOLEAN |
CAL_ADDRESS |
DATE |
DATE_TIME |
DURATION |
FLOAT |
INTEGER |
OTHER |
PERIOD |
RECUR |
TEXT |
TIME |
URI |
UTC_OFFSET |
X_NAME |
| Modifier and Type | Method and Description |
|---|---|
static IcalValueType |
fromIcal(java.lang.String icalValue) |
java.lang.String |
toIcal() |
static IcalValueType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IcalValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IcalValueType BINARY
public static final IcalValueType BOOLEAN
public static final IcalValueType CAL_ADDRESS
public static final IcalValueType DATE
public static final IcalValueType DATE_TIME
public static final IcalValueType DURATION
public static final IcalValueType FLOAT
public static final IcalValueType INTEGER
public static final IcalValueType PERIOD
public static final IcalValueType RECUR
public static final IcalValueType TEXT
public static final IcalValueType TIME
public static final IcalValueType URI
public static final IcalValueType UTC_OFFSET
public static final IcalValueType X_NAME
public static final IcalValueType OTHER
public static IcalValueType[] values()
for (IcalValueType c : IcalValueType.values()) System.out.println(c);
public static IcalValueType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic static IcalValueType fromIcal(java.lang.String icalValue)
public java.lang.String toIcal()