/** * Constructor. Date or Date-Time format is determined based on the presence of a VALUE parameter. * * @param aDate a date */ public DtStart(final Date aDate) { super(DTSTART, PropertyFactoryImpl.getInstance()); setDate(aDate); }
/** * Constructor. Date or Date-Time format is determined based on the presence of a VALUE parameter. * * @param aDate a date */ public DtStart(final Date aDate) { super(DTSTART, new Factory()); setDate(aDate); }
/** * Constructor. Date or Date-Time format is determined based on the presence of a VALUE parameter. * * @param aList a list of parameters for this component * @param aDate a date */ public DtStart(final ParameterList aList, final Date aDate) { super(DTSTART, aList, new Factory()); setDate(aDate); }
/** * Constructor. Date or Date-Time format is determined based on the presence of a VALUE parameter. * * @param aList a list of parameters for this component * @param aDate a date */ public DtStart(final ParameterList aList, final Date aDate) { super(DTSTART, aList, PropertyFactoryImpl.getInstance()); setDate(aDate); }
/** * Constructor. Date or Date-Time format is determined based on the presence of a VALUE parameter. * @param aDate a date */ public DtStart(final Date aDate) { super(DTSTART, PropertyFactoryImpl.getInstance()); setDate(aDate); }
/** * Constructor. Date or Date-Time format is determined based on the presence of a VALUE parameter. * * @param aDate a date */ public DtStart(final Date aDate) { super(DTSTART, new Factory()); setDate(aDate); }
/** * Constructor. Date or Date-Time format is determined based on the presence of a VALUE parameter. * * @param aList a list of parameters for this component * @param aDate a date */ public DtStart(final ParameterList aList, final Date aDate) { super(DTSTART, aList, new Factory()); setDate(aDate); }
/** * Constructor. Date or Date-Time format is determined based on the presence of a VALUE parameter. * @param aList a list of parameters for this component * @param aDate a date */ public DtStart(final ParameterList aList, final Date aDate) { super(DTSTART, aList, PropertyFactoryImpl.getInstance()); setDate(aDate); }
/** * Constructor. Date or Date-Time format is determined based on the presence of a VALUE parameter. * * @param aList a list of parameters for this component * @param aDate a date */ public DtStart(final ParameterList aList, final Date aDate) { super(DTSTART, aList, PropertyFactoryImpl.getInstance()); setDate(aDate); }
/** * Constructor. Date or Date-Time format is determined based on the presence of a VALUE parameter. * * @param aDate a date */ public DtStart(final Date aDate) { super(DTSTART, PropertyFactoryImpl.getInstance()); setDate(aDate); }
/** * Constructs a new DtStart with the specified time. * * @param time the time of the DtStart * @param utc specifies whether time is UTC */ public DtStart(final Date time, final boolean utc) { super(DTSTART, PropertyFactoryImpl.getInstance()); setDate(time); setUtc(utc); }
/** * Constructs a new DtStart with the specified time. * * @param time the time of the DtStart * @param utc specifies whether time is UTC */ public DtStart(final Date time, final boolean utc) { super(DTSTART, new Factory()); setDate(time); setUtc(utc); }
/** * Constructs a new DtStart with the specified time. * * @param time the time of the DtStart * @param utc specifies whether time is UTC */ public DtStart(final Date time, final boolean utc) { super(DTSTART, PropertyFactoryImpl.getInstance()); setDate(time); setUtc(utc); }
/** * Constructs a new DtStart with the specified time. * * @param time the time of the DtStart * @param utc specifies whether time is UTC */ public DtStart(final Date time, final boolean utc) { super(DTSTART, new Factory()); setDate(time); setUtc(utc); }
/** * Constructs a new DtStart with the specified time. * @param time the time of the DtStart * @param utc specifies whether time is UTC */ public DtStart(final Date time, final boolean utc) { super(DTSTART, PropertyFactoryImpl.getInstance()); setDate(time); setUtc(utc); }
public void setStartDate(Date date) { DtStart dtStart = getEvent().getStartDate(); if (dtStart != null) { dtStart.setDate(date); } else { dtStart = new DtStart(date); getEvent().getProperties().add(dtStart); } setDatePropertyValue(dtStart, date); }
public void setStartDate(Date date) { DtStart dtStart = getEvent().getStartDate(); if (dtStart != null) { dtStart.setDate(date); } else { dtStart = new DtStart(date); getEvent().getProperties().add(dtStart); } setDatePropertyValue(dtStart, date); }
/** * Unit tests for timezone constructor. */ public void testDtStartTimezone() throws ParseException { DtStart dtStart = new DtStart(timezone); dtStart.setValue(new DateTime().toString()); assertEquals(timezone, dtStart.getTimeZone()); // initialising with DATE value should reset timezone.. dtStart.setDate(new Date()); assertNull(dtStart.getTimeZone()); }