-
Notifications
You must be signed in to change notification settings - Fork 44
Nonstandard Parameters
iCalendar objects can contain non-standard parameters that are not part of the iCal specification. These are called "experimental" parameters.
The iCalendar object below contains an example of such a parameter. It is called "X-APP-VERISON
" and is located within the PRODID
property (note that the names of experimental parameters must begin with "X-
").
BEGIN:VCALENDAR
PRODID;X-APP-VERSION=10.3:-//Company//Application//EN
VERSION:2.0
END:VCALENDAR
To get an experimental parameter, call the getParameter(String)
method on the property that the parameter belongs to. This returns a string containing the parameter value.
ICalendar ical = ...
String value = ical.getProductId().getParameter("X-APP-VERSION");
To add an experimental parameter to a property, call the setParameter(String,String)
method.
ICalendar ical = ...
ical.getProductId().setParameter("X-APP-VERSION", "10.3");
biweekly is maintained by Michael Angstadt
Table of Contents
Getting started
Examples
FAQ
Javadocs
Downloads
1 An Overview of the iCalendar data format
2 Reading and Writing iCalendar data with biweekly
2.1 Plain-text (traditional)
2.2 XML-encoded (xCal)
2.3 JSON-encoded (jCal)
4 Working with Timezones
4.1 0.4.6 and earlier
4.2 0.5.0 and later
5 Dealing with Non-standard Data
5.1 Non-standard components
5.2 Non-standard properties
5.3 Non-standard parameters
6 Project Information
6.1 Dependencies
6.2 Supported Specifications
6.3 Changelog
7 Reference
7.1 iCalendar Component Reference
7.2 iCalendar Property Reference
7.3 Javadocs