/** * Convenience method for retrieving a list of named components. * @param name name of components to retrieve * @return a component list containing only components with the specified name */ public final <C extends CalendarComponent> ComponentList<C> getComponents(final String name) { return getComponents().getComponents(name); }
/** * Convenience method for retrieving a list of named components. * @param name name of components to retrieve * @return a component list containing only components with the specified name */ public final <C extends CalendarComponent> ComponentList<C> getComponents(final String name) { return getComponents().getComponents(name); }
/** * Convenience method for retrieving a list of named components. * @param name name of components to retrieve * @return a component list containing only components with the specified name */ public final ComponentList getComponents(final String name) { return getComponents().getComponents(name); }
/** * Convenience method for retrieving a list of named components. * @param name name of components to retrieve * @return a component list containing only components with the specified name */ public final <C extends CalendarComponent> ComponentList<C> getComponents(final String name) { return getComponents().getComponents(name); }
/** * Convenience method for retrieving a list of named components. * @param name name of components to retrieve * @return a component list containing only components with the specified name */ public final <C extends CalendarComponent> ComponentList<C> getComponents(final String name) { return getComponents().getComponents(name); }
/** * @param componentName a component name used in the assertion * @param components a list of components * @throws ValidationException where the assertion fails */ public static void assertOneOrLess(String componentName, ComponentList<?> components) throws ValidationException { if (components.getComponents(componentName).size() > 1) { throw new ValidationException(ASSERT_ONE_OR_LESS_MESSAGE, new Object[] {componentName}); } } }
/** * {@inheritDoc} */ public final boolean useDaylightTime() { final ComponentList<Observance> daylights = vTimeZone.getObservances().getComponents(Observance.DAYLIGHT); return (!daylights.isEmpty()); }
/** * @param componentName a component name used in the assertion * @param components a list of components * @throws ValidationException where the assertion fails */ public static void assertOneOrLess(String componentName, ComponentList<?> components) throws ValidationException { if (components.getComponents(componentName).size() > 1) { throw new ValidationException(ASSERT_ONE_OR_LESS_MESSAGE, new Object[] {componentName}); } } }
/** * @param componentName a component name used in the assertion * @param components a list of components * @throws ValidationException where the assertion fails */ public static void assertOneOrLess(String componentName, ComponentList components) throws ValidationException { if (components.getComponents(componentName).size() > 1) { throw new ValidationException(ASSERT_ONE_OR_LESS_MESSAGE, new Object[] {componentName}); } } }
/** * {@inheritDoc} */ public final boolean useDaylightTime() { final ComponentList daylights = vTimeZone.getObservances().getComponents(Observance.DAYLIGHT); return (!daylights.isEmpty()); }
/** * {@inheritDoc} */ public final boolean useDaylightTime() { final ComponentList<Observance> daylights = vTimeZone.getObservances().getComponents(Observance.DAYLIGHT); return (!daylights.isEmpty()); }
/** * {@inheritDoc} */ public final boolean useDaylightTime() { final ComponentList<Observance> daylights = vTimeZone.getObservances().getComponents(Observance.DAYLIGHT); return (!daylights.isEmpty()); }
/** * {@inheritDoc} */ public final boolean useDaylightTime() { final ComponentList<Observance> daylights = vTimeZone.getObservances().getComponents(Observance.DAYLIGHT); return (!daylights.isEmpty()); }
/** * @param componentName a component name used in the assertion * @param components a list of components * @throws ValidationException where the assertion fails */ public static void assertOneOrLess(String componentName, ComponentList<?> components) throws ValidationException { if (components.getComponents(componentName).size() > 1) { throw new ValidationException(ASSERT_ONE_OR_LESS_MESSAGE, new Object[] {componentName}); } } }
/** * @param componentName a component name used in the assertion * @param components a list of components * @throws ValidationException where the assertion fails */ public static void assertOneOrLess(String componentName, ComponentList<?> components) throws ValidationException { if (components.getComponents(componentName).size() > 1) { throw new ValidationException(ASSERT_ONE_OR_LESS_MESSAGE, new Object[] {componentName}); } } }
public VEvent getExceptionEvent() { return (VEvent) getEventCalendar().getComponents().getComponents( Component.VEVENT).get(0); }
public VEvent getMasterEvent() { if(getEventCalendar()==null) { return null; } ComponentList<VEvent> events = getEventCalendar().getComponents().getComponents( Component.VEVENT); if(events.size()==0) { return null; } return (VEvent) events.get(0); }
public VEvent getMasterEvent() { if(getEventCalendar()==null) { return null; } ComponentList<VEvent> events = getEventCalendar().getComponents().getComponents( Component.VEVENT); if(events.size()==0) { return null; } return (VEvent) events.get(0); }
public void setExceptionEvent(VEvent event) { if(getEventCalendar()==null) { createCalendar(); } // remove all events getEventCalendar().getComponents().removeAll( getEventCalendar().getComponents().getComponents(Component.VEVENT)); // add event exception getEventCalendar().getComponents().add(event); }
public void setExceptionEvent(VEvent event) { if(getEventCalendar()==null) { createCalendar(); } // remove all events getEventCalendar().getComponents().removeAll( getEventCalendar().getComponents().getComponents(Component.VEVENT)); // add event exception getEventCalendar().getComponents().add(event); }