@Override public void endComponent(String name) { assertComponent(componentBuilder); if (subComponentBuilder != null) { Component subComponent = subComponentBuilder.build(); componentBuilder.subComponent(subComponent); subComponentBuilder = null; } else { CalendarComponent component = componentBuilder.build(); calendar.getComponents().add(component); if (component instanceof VTimeZone && tzRegistry != null) { // register the timezone for use with iCalendar objects.. tzRegistry.register(new TimeZone((VTimeZone) component)); } componentBuilder = null; } }
@Override public void endComponent(String name) { assertComponent(componentBuilder); if (subComponentBuilder != null) { Component subComponent = subComponentBuilder.build(); componentBuilder.subComponent(subComponent); subComponentBuilder = null; } else { CalendarComponent component = componentBuilder.build(); calendar.getComponents().add(component); if (component instanceof VTimeZone && tzRegistry != null) { // register the timezone for use with iCalendar objects.. tzRegistry.register(new TimeZone((VTimeZone) component)); } componentBuilder = null; } }
public void endComponent(final String name) { assertComponent(component); if (subComponent != null) { if (component instanceof VTimeZone) { ((VTimeZone) component).getObservances().add((Observance) subComponent); } else if (component instanceof VEvent) { ((VEvent) component).getAlarms().add((VAlarm) subComponent); } else if (component instanceof VToDo) { ((VToDo) component).getAlarms().add((VAlarm) subComponent); } else if (component instanceof VAvailability) { ((VAvailability) component).getAvailable().add((Available) subComponent); } subComponent = null; } else { calendar.getComponents().add(component); if (component instanceof VTimeZone && tzRegistry != null) { // register the timezone for use with iCalendar objects.. tzRegistry.register(new TimeZone((VTimeZone) component)); } component = null; } }
if (component instanceof VTimeZone && tzRegistry != null) { tzRegistry.register(new TimeZone((VTimeZone) component));
if (component instanceof VTimeZone && tzRegistry != null) { tzRegistry.register(new TimeZone((VTimeZone) component));
if ((component instanceof VTimeZone) && (tzRegistry != null)) { tzRegistry.register(new TimeZone((VTimeZone) component));
if ((component instanceof VTimeZone) && (bs.getTzRegistry() != null)) { bs.getTzRegistry().register(new TimeZone((VTimeZone) component));