Package net.fortuna.ical4j.data
Class DefaultContentHandler
- java.lang.Object
-
- net.fortuna.ical4j.data.DefaultContentHandler
-
- All Implemented Interfaces:
ContentHandler
public class DefaultContentHandler extends Object implements ContentHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected List<CalendarComponent>
calendarComponents
protected List<Property>
calendarProperties
protected LinkedList<ComponentBuilder<CalendarComponent>>
components
The current component builders.protected PropertyBuilder
propertyBuilder
-
Constructor Summary
Constructors Constructor Description DefaultContentHandler(Consumer<Calendar> consumer, TimeZoneRegistry tzRegistry)
DefaultContentHandler(Consumer<Calendar> consumer, TimeZoneRegistry tzRegistry, Supplier<List<ParameterFactory<?>>> parameterFactorySupplier, Supplier<List<PropertyFactory<?>>> propertyFactorySupplier, Supplier<List<ComponentFactory<?>>> componentFactorySupplier)
DefaultContentHandler(Consumer<Calendar> consumer, TimeZoneRegistry tzRegistry, ContentHandlerContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endCalendar()
Triggers the end of handling a calendar.void
endComponent()
void
endComponent(String name)
Triggers the end of handling a component.void
endProperty(String name)
Triggers the end of handling a property.ComponentBuilder<CalendarComponent>
getComponentBuilder()
void
parameter(String name, String value)
Triggers the handling of a parameter.void
propertyValue(String value)
Triggers the handling of a property value.void
startCalendar()
Triggers the start of handling a calendar.void
startComponent(String name)
Triggers the start of handling a component.void
startProperty(String name)
Triggers the start of handling a property.
-
-
-
Field Detail
-
propertyBuilder
protected PropertyBuilder propertyBuilder
-
components
protected final LinkedList<ComponentBuilder<CalendarComponent>> components
The current component builders.
-
calendarComponents
protected List<CalendarComponent> calendarComponents
-
-
Constructor Detail
-
DefaultContentHandler
public DefaultContentHandler(Consumer<Calendar> consumer, TimeZoneRegistry tzRegistry)
-
DefaultContentHandler
@Deprecated public DefaultContentHandler(Consumer<Calendar> consumer, TimeZoneRegistry tzRegistry, Supplier<List<ParameterFactory<?>>> parameterFactorySupplier, Supplier<List<PropertyFactory<?>>> propertyFactorySupplier, Supplier<List<ComponentFactory<?>>> componentFactorySupplier)
- Parameters:
consumer
-tzRegistry
-parameterFactorySupplier
-propertyFactorySupplier
-componentFactorySupplier
-
-
DefaultContentHandler
public DefaultContentHandler(Consumer<Calendar> consumer, TimeZoneRegistry tzRegistry, ContentHandlerContext context)
-
-
Method Detail
-
getComponentBuilder
public ComponentBuilder<CalendarComponent> getComponentBuilder()
-
endComponent
public void endComponent()
-
startCalendar
public void startCalendar()
Description copied from interface:ContentHandler
Triggers the start of handling a calendar.- Specified by:
startCalendar
in interfaceContentHandler
-
endCalendar
public void endCalendar()
Description copied from interface:ContentHandler
Triggers the end of handling a calendar.- Specified by:
endCalendar
in interfaceContentHandler
-
startComponent
public void startComponent(String name)
Description copied from interface:ContentHandler
Triggers the start of handling a component.- Specified by:
startComponent
in interfaceContentHandler
- Parameters:
name
- a component name
-
endComponent
public void endComponent(String name)
Description copied from interface:ContentHandler
Triggers the end of handling a component.- Specified by:
endComponent
in interfaceContentHandler
- Parameters:
name
- a component name
-
startProperty
public void startProperty(String name)
Description copied from interface:ContentHandler
Triggers the start of handling a property.- Specified by:
startProperty
in interfaceContentHandler
- Parameters:
name
- a property name
-
propertyValue
public void propertyValue(String value)
Description copied from interface:ContentHandler
Triggers the handling of a property value.- Specified by:
propertyValue
in interfaceContentHandler
- Parameters:
value
- a property value
-
endProperty
public void endProperty(String name)
Description copied from interface:ContentHandler
Triggers the end of handling a property.- Specified by:
endProperty
in interfaceContentHandler
- Parameters:
name
- a property name
-
parameter
public void parameter(String name, String value)
Description copied from interface:ContentHandler
Triggers the handling of a parameter.- Specified by:
parameter
in interfaceContentHandler
- Parameters:
name
- a parameter namevalue
- a parameter value
-
-