public Property createProperty(final String name, final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new RecurrenceId(parameters, value); }
public Property createProperty() { return new RecurrenceId(); } }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new RecurrenceId(parameters, value); }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new RecurrenceId(parameters, value); }
public Property createProperty() { return new RecurrenceId(); } }
public Property createProperty() { return new RecurrenceId(); } }
public Property createProperty() { return new RecurrenceId(); } }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new RecurrenceId(parameters, value); }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new RecurrenceId(parameters, value); }
public Property createProperty(final String name) { return new RecurrenceId(); } };
/** * Returns a single occurrence of a recurring event. * @param date a date on which the occurence should occur * @return a single non-recurring event instance for the specified date, or null if the event doesn't * occur on the specified date * @throws IOException where an error occurs reading data * @throws URISyntaxException where an invalid URI is encountered * @throws ParseException where an error occurs parsing data */ public final VEvent getOccurrence(final Date date) throws IOException, URISyntaxException, ParseException { final PeriodList consumedTime = getConsumedTime(date, date); for (final Iterator i = consumedTime.iterator(); i.hasNext();) { final Period p = (Period) i.next(); if (p.getStart().equals(date)) { final VEvent occurrence = (VEvent) this.copy(); occurrence.getProperties().add(new RecurrenceId(date)); return occurrence; } } return null; }
/** * Returns a single occurrence of a recurring event. * @param date a date on which the occurence should occur * @return a single non-recurring event instance for the specified date, or null if the event doesn't * occur on the specified date * @throws IOException where an error occurs reading data * @throws URISyntaxException where an invalid URI is encountered * @throws ParseException where an error occurs parsing data */ public final VEvent getOccurrence(final Date date) throws IOException, URISyntaxException, ParseException { final PeriodList consumedTime = getConsumedTime(date, date); for (final Period p : consumedTime) { if (p.getStart().equals(date)) { final VEvent occurrence = (VEvent) this.copy(); occurrence.getProperties().add(new RecurrenceId(date)); return occurrence; } } return null; }
/** * Returns a single occurrence of a recurring event. * @param date a date on which the occurence should occur * @return a single non-recurring event instance for the specified date, or null if the event doesn't * occur on the specified date * @throws IOException where an error occurs reading data * @throws URISyntaxException where an invalid URI is encountered * @throws ParseException where an error occurs parsing data */ public final VEvent getOccurrence(final Date date) throws IOException, URISyntaxException, ParseException { final PeriodList consumedTime = getConsumedTime(date, date); for (final Period p : consumedTime) { if (p.getStart().equals(date)) { final VEvent occurrence = (VEvent) this.copy(); occurrence.getProperties().add(new RecurrenceId(date)); return occurrence; } } return null; }
/** * Returns a single occurrence of a recurring event. * @param date a date on which the occurence should occur * @return a single non-recurring event instance for the specified date, or null if the event doesn't * occur on the specified date * @throws IOException where an error occurs reading data * @throws URISyntaxException where an invalid URI is encountered * @throws ParseException where an error occurs parsing data */ public final VEvent getOccurrence(final Date date) throws IOException, URISyntaxException, ParseException { final PeriodList consumedTime = getConsumedTime(date, date); for (final Period p : consumedTime) { if (p.getStart().equals(date)) { final VEvent occurrence = (VEvent) this.copy(); occurrence.getProperties().add(new RecurrenceId(date)); return occurrence; } } return null; }
/** * Returns a single occurrence of a recurring event. * @param date a date on which the occurence should occur * @return a single non-recurring event instance for the specified date, or null if the event doesn't * occur on the specified date * @throws IOException where an error occurs reading data * @throws URISyntaxException where an invalid URI is encountered * @throws ParseException where an error occurs parsing data */ public final VEvent getOccurrence(final Date date) throws IOException, URISyntaxException, ParseException { final PeriodList consumedTime = getConsumedTime(date, date); for (final Period p : consumedTime) { if (p.getStart().equals(date)) { final VEvent occurrence = (VEvent) this.copy(); occurrence.getProperties().add(new RecurrenceId(date)); return occurrence; } } return null; }
/** * @return * @throws ParseException */ public static TestSuite suite() throws ParseException { TestSuite suite = new TestSuite(); RecurrenceId id = new RecurrenceId("20081124T180000"); suite.addTest(new RecurrenceIdTest(id, "20081124T180000")); suite.addTest(new RecurrenceIdTest("testValidation", id)); suite.addTest(new RecurrenceIdTest("testEquals", id)); return suite; }
public void setRecurrenceId(Date date) { RecurrenceId recurrenceId = (RecurrenceId) getEvent().getProperties(). getProperty(Property.RECURRENCE_ID); if (date == null) { if (recurrenceId != null) { getEvent().getProperties().remove(recurrenceId); } return; } if (recurrenceId == null) { recurrenceId = new RecurrenceId(); getEvent().getProperties().add(recurrenceId); } recurrenceId.setDate(date); setDatePropertyValue(recurrenceId, date); }
public void setRecurrenceId(Date date) { RecurrenceId recurrenceId = (RecurrenceId) getEvent().getProperties(). getProperty(Property.RECURRENCE_ID); if (date == null) { if (recurrenceId != null) { getEvent().getProperties().remove(recurrenceId); } return; } if (recurrenceId == null) { recurrenceId = new RecurrenceId(); getEvent().getProperties().add(recurrenceId); } recurrenceId.setDate(date); setDatePropertyValue(recurrenceId, date); }
if(eventStamp.getEvent() != null && eventStamp.getEvent().getStartDate() != null){ DtStart startDate = eventStamp.getEvent().getStartDate(); rid = new RecurrenceId(); try { if(startDate.isUtc()){
if(eventStamp.getEvent() != null && eventStamp.getEvent().getStartDate() != null){ DtStart startDate = eventStamp.getEvent().getStartDate(); rid = new RecurrenceId(); try { if(startDate.isUtc()){