superwaba.ext.xplat.io.pimal
Class VCalField
java.lang.Object
|
+--superwaba.ext.xplat.io.pimal.VersitField
|
+--superwaba.ext.xplat.io.pimal.VCalField
- Direct Known Subclasses:
- DateField, ToDoField
- public abstract class VCalField
- extends VersitField
Abstract superclass for Field-classes that use the vCal standard. Contains constants according to the keys, the vCalendar standard requests.
Please refer to rfc2445 for more information
|
Constructor Summary |
VCalField(int key,
java.lang.String[] options,
java.lang.String[] values)
|
|
Method Summary |
static int[] |
parseDuration(java.lang.String s)
Parses a String for a duration accourding to rfc2445 and returns it's values |
static Time |
parseISO8601(java.lang.String time)
Parses an object of class Time from a String |
static java.lang.String |
toDuration(boolean positive,
int days,
int hours,
int minutes,
int seconds,
int weeks)
Creates a String for a duration according to rfc2445 (iCal specification).
|
static java.lang.String |
toISO8601(Time t)
Generates String representation of an object of class Time |
java.lang.String |
toString()
This method returns the String representative of this Object.
|
| Methods inherited from class superwaba.ext.xplat.io.pimal.VersitField |
addOption,
cloneOptions,
cloneValues,
getKey,
getOption,
getOptions,
getValues,
hasOption,
match,
removeOption,
setValues |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
ATTACH
public static final int ATTACH
CATEGORIES
public static final int CATEGORIES
CLASSIFICATION
public static final int CLASSIFICATION
COMMENT
public static final int COMMENT
DESCRIPTION
public static final int DESCRIPTION
GEO
public static final int GEO
LOCATION
public static final int LOCATION
PERCENT_COMPLETE
public static final int PERCENT_COMPLETE
PRIORITY
public static final int PRIORITY
RESOURCES
public static final int RESOURCES
STATUS
public static final int STATUS
SUMMARY
public static final int SUMMARY
COMPLETED
public static final int COMPLETED
DTEND
public static final int DTEND
DUE
public static final int DUE
DTSTART
public static final int DTSTART
DURATION
public static final int DURATION
FREEBUSY
public static final int FREEBUSY
TRANSP
public static final int TRANSP
TZID
public static final int TZID
TZNAME
public static final int TZNAME
TZOFFSETFROM
public static final int TZOFFSETFROM
TZOFFSETTO
public static final int TZOFFSETTO
TZURL
public static final int TZURL
ATTENDEE
public static final int ATTENDEE
CONTACT
public static final int CONTACT
ORGANIZER
public static final int ORGANIZER
RECURRENCE_ID
public static final int RECURRENCE_ID
RELATED_TO
public static final int RELATED_TO
URL
public static final int URL
UID
public static final int UID
EXDATE
public static final int EXDATE
EXRULE
public static final int EXRULE
RDATE
public static final int RDATE
RRULE
public static final int RRULE
ACTION
public static final int ACTION
REPEAT
public static final int REPEAT
TRIGGER
public static final int TRIGGER
CREATED
public static final int CREATED
DTSTAMP
public static final int DTSTAMP
LAST_MODIFIED
public static final int LAST_MODIFIED
SEQUENCE
public static final int SEQUENCE
REQUEST_STATUS
public static final int REQUEST_STATUS
VCalField
public VCalField(int key,
java.lang.String[] options,
java.lang.String[] values)
- Parameters:
key - vCalendar key according to rfc2445options - vCalendar options according to rfc2445, format: option=valuevalues - vCalendar values according to rfc244f
parseISO8601
public static Time parseISO8601(java.lang.String time)
- Parses an object of class Time from a String
- Parameters:
time - String time, in format YYYYMMDDThhmmssZ (ISO8601, local time)- Returns:
- Time as Time object
toISO8601
public static java.lang.String toISO8601(Time t)
- Generates String representation of an object of class
Time
- Parameters:
t - the time to convert- Returns:
- String of format YYYYMMDDThhmmssZ (ISO8601, local time)
toDuration
public static java.lang.String toDuration(boolean positive,
int days,
int hours,
int minutes,
int seconds,
int weeks)
- Creates a String for a duration according to rfc2445 (iCal specification).
The most important issue is the fact, that if you specify the value "weeks" other than 0, the other values will be ignored!
All integer parameters must be positive.
- Parameters:
positive - is the duration going to the future (true) or to the past (false)days - duration in dayshours - duration in hoursminutes - duration in minutesseconds - duration in secondsweeks - duration in weeks- Returns:
- String according to rfc2445
parseDuration
public static int[] parseDuration(java.lang.String s)
- Parses a String for a duration accourding to rfc2445 and returns it's values
- Parameters:
s - duration in the format specified by rfc2445, e.g. generated by the method toDuration()- Returns:
- array of the format { pos/neg (1/-1) ; days ; hours ; minutes ; seconds ; weeks }
toString
public java.lang.String toString()
- Description copied from class: VersitField
- This method returns the String representative of this Object.
If you use this method of VersitField the key is missing in the String representative.
So please use the toString()-method of VCalField respective VCardField.
- Overrides:
- toString in class VersitField
- Tags copied from class: VersitField
- See Also:
Object.toString()