|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<CalendarStatus>
com.funambol.common.pim.model.converter.CalendarStatus
public enum CalendarStatus
CalendarStatus enum. Holds all possible status values for the status property of the task. Each enum value holds the value stored server side, the corresponding sif value and the label used in vcal/ical rapresentation.
Enum Constant Summary | |
---|---|
ACCEPTED
|
|
COMPLETED
|
|
CONFIRMED
|
|
DECLINED
|
|
DELEGATED
|
|
IN_PROCESS
|
|
NEEDS_ACTION
|
|
SENT
|
|
TENTATIVE
|
Field Summary | |
---|---|
short |
serverValue
|
short |
sifValue
|
Method Summary | |
---|---|
java.lang.String |
getICalValue()
|
java.lang.String |
getServerValue()
|
static java.lang.String |
getServerValueFromSifStatus(java.lang.String status)
Retrieves the server value bound to the given status contained in a SIF-T rapresentation. |
static java.lang.String |
getSifStatusFromServerValue(Property property)
Retrieves the SIF status bound to the given status property in a Task object. |
java.lang.String |
getSifValue()
|
java.lang.String |
getVCalICalValue(boolean isVcal)
|
java.lang.String |
getVCalValue()
|
static CalendarStatus |
mapServerStatus(Property property)
retrieves the CalendarStatus bound to the given property. |
static CalendarStatus |
mapSifStatus(java.lang.String status)
retrieves the CalendarStatus bound to the given string, rapresenting the status of the task contained in a SIF-T rapresentation. |
static CalendarStatus |
mapVcalIcalStatus(Property statusProperty)
retrieves the CalendarStatus bound to the given Vcal/Ical status property. |
static CalendarStatus |
mapVcalIcalStatus(java.lang.String status)
retrieves the CalendarStatus bound to the given Vcal/Ical status. |
static CalendarStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CalendarStatus[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CalendarStatus ACCEPTED
public static final CalendarStatus SENT
public static final CalendarStatus TENTATIVE
public static final CalendarStatus IN_PROCESS
public static final CalendarStatus CONFIRMED
public static final CalendarStatus COMPLETED
public static final CalendarStatus NEEDS_ACTION
public static final CalendarStatus DELEGATED
public static final CalendarStatus DECLINED
Field Detail |
---|
public final short serverValue
public final short sifValue
Method Detail |
---|
public static final CalendarStatus[] values()
for(CalendarStatus c : CalendarStatus.values()) System.out.println(c);
public static CalendarStatus 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 namepublic java.lang.String getSifValue()
public java.lang.String getServerValue()
public java.lang.String getVCalValue()
public java.lang.String getICalValue()
public java.lang.String getVCalICalValue(boolean isVcal)
public static CalendarStatus mapServerStatus(Property property)
property
- is the property of a Task object build server side and
it contains a value from 0 to 8.
public static CalendarStatus mapSifStatus(java.lang.String status)
status
- is the value of the status tag contained in the SIF-T rapresentation
and we expect a value between 0 and 4.
public static CalendarStatus mapVcalIcalStatus(java.lang.String status)
status
- is the string value contained in the Vcal/Ical rapresentation
and we expected one of the following values:
ACCEPTED (vCal 1.0 & 2.0)
SENT (vCal 1.0)
TENTATIVE (vCal 1.0 & 2.0)
IN-PROCESS (vCal 2.0)
CONFIRMED (vCal 1.0)
COMPLETED (vCal 1.0 & 2.0)
NEEDS-ACTION (vCal 1.0 & 2.0)
DELEGATED (vCal 1.0 & 2.0)
DECLINED (vCal 1.0 & 2.0)
public static CalendarStatus mapVcalIcalStatus(Property statusProperty)
statusProperty
- is the property rapresenting the status value contained
in the Vcal/Ical rapresentation and we expected one of the following values:
ACCEPTED (vCal 1.0 & 2.0)
SENT (vCal 1.0)
TENTATIVE (vCal 1.0 & 2.0)
IN-PROCESS (vCal 2.0)
CONFIRMED (vCal 1.0)
COMPLETED (vCal 1.0 & 2.0)
NEEDS-ACTION (vCal 1.0 & 2.0)
DELEGATED (vCal 1.0 & 2.0)
DECLINED (vCal 1.0 & 2.0)
public static java.lang.String getServerValueFromSifStatus(java.lang.String status)
status
- is the value of the status tag contained in the SIF-T rapresentation
and we expect a value between 0 and 4.
public static java.lang.String getSifStatusFromServerValue(Property property)
property
- is the status property of a Task object and we expected it
may contain a value from 0 to 8 (String).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |