/** * Convenience setter which sets the value using a {@link Date} object. Passing in <code>null</code> clears any existing value. * * Note: Sets fields using precision up to the minute * * @param theDate The date object from which to retrieve values * @since 1.1 */ public void setValueToMinute(Date theDate) throws DataTypeException { if (theDate == null) { setValue((String)null); return; } Calendar calendar = Calendar.getInstance(); calendar.setTime(theDate); setValueToMinute(calendar); }
/** * Convenience setter which sets the value using a {@link Date} object. Passing in <code>null</code> clears any existing value. * * Note: Sets fields using precision up to the minute * * @param theDate The date object from which to retrieve values * @since 1.1 */ public void setValueToMinute(Date theDate) throws DataTypeException { if (theDate == null) { setValue((String)null); return; } Calendar calendar = Calendar.getInstance(); calendar.setTime(theDate); setValueToMinute(calendar); }
/** * Convenience setter which sets the value using a {@link Calendar} object. * * Note: Sets fields using precision up to the minute * * @param theCalendar The calendar object from which to retrieve values * @since 1.1 */ public void setValueToMinute(Calendar theCalendar) throws DataTypeException { setValue((String)null); getDetail().setValueToMinute(theCalendar); }
/** * Convenience setter which sets the value using a {@link Calendar} object. * * Note: Sets fields using precision up to the minute * * @param theCalendar The calendar object from which to retrieve values * @since 1.1 */ public void setValueToMinute(Calendar theCalendar) throws DataTypeException { setValue((String)null); getDetail().setValueToMinute(theCalendar); }
/** * Convenience setter which sets the value using a {@link Date} object. * * Note: Sets fields using precision up to the minute * Note: Date is timezone-agnostic, representing always GMT time * * @param theDate The date object from which to retrieve values * @since 1.1 */ public void setValueToMinute(Date theDate) throws DataTypeException { setValue((String)null); getDetail().setValueToMinute(theDate); }
/** * Convenience setter which sets the value using a {@link Date} object. * * Note: Sets fields using precision up to the minute * Note: Date is timezone-agnostic, representing always GMT time * * @param theDate The date object from which to retrieve values * @since 1.1 */ public void setValueToMinute(Date theDate) throws DataTypeException { setValue((String)null); getDetail().setValueToMinute(theDate); }