ical4j / ical4j-extensions

Extending the standards with additional model constructs

Home Page:http://www.ical4j.org/extensions/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

Extensions

iCal4j Extensions is a Java library that provides support for widely used non-standard iCalendar objects (i.e. properties and parameters). These model extensions are implemented via the custom object registry support in iCal4j.

Usage

To add support for extensions you may register the required factories with your CalendarBuilder instance:

    CalendarParser parser = CalendarParserFactory.getInstance().createParser();
    
    PropertyFactoryRegistry propertyFactoryRegistry = new PropertyFactoryRegistry();
    propertyFactoryRegistry.register(WrTimezone.PROPERTY_NAME, WrTimezone.FACTORY);
    propertyFactoryRegistry.register(WrCalName.PROPERTY_NAME, WrCalName.FACTORY);
    
    ParameterFactoryRegistry parameterFactoryRegistry = new ParameterFactoryRegistry();
    
    TimeZoneRegistry tzRegistry = TimeZoneRegistryFactory.getInstance().createRegistry();
    
    builder = new CalendarBuilder(parser, propertyFactoryRegistry, parameterFactoryRegistry, tzRegistry);

Minimum requirements

iCal4j Extensions requires a minimum of Java 5 due to the use of features introduced in this version.

References:

About

Extending the standards with additional model constructs

http://www.ical4j.org/extensions/

License:Other


Languages

Language:Java 89.4%Language:Groovy 9.9%Language:Makefile 0.6%Language:Shell 0.1%