/** * Convenience setter which sets the value using a {@link Calendar} object. * * Note: Sets fields using precision up to the millisecond, including timezone offset * * @param theCalendar The calendar object from which to retrieve values * @since 1.1 */ public void setValue(Calendar theCalendar) throws DataTypeException { setValue((String)null); getDetail().setValue(theCalendar); }
/** * Convenience setter which sets the value using a {@link Calendar} object. * * Note: Sets fields using precision up to the second * * @param theCalendar The calendar object from which to retrieve values * @since 1.1 */ public void setValueToSecond(Calendar theCalendar) throws DataTypeException { setValue((String)null); getDetail().setValueToSecond(theCalendar); }
/** * @see CommonDT#setYearMonthDayPrecision(int, int, int) * @throws DataTypeException if the value is incorrectly formatted. If validation is enabled, this * exception should be thrown at setValue(), but if not, detailed parsing may be deferred until * this method is called. */ public void setYearMonthDayPrecision(int yr, int mnth, int dy) throws DataTypeException { getDetail().setYearMonthDayPrecision(yr,mnth,dy); }
/** * @see CommonTM#setHourMinutePrecision(int, int) * @throws DataTypeException if the value is incorrectly formatted. If validation is enabled, this * exception should be thrown at setValue(), but if not, detailed parsing may be deferred until * this method is called. */ public void setHourMinutePrecision(int hr, int min) throws DataTypeException { getDetail().setHourMinutePrecision(hr,min); }
/** * @see CommonTM#setHourMinSecondPrecision(int, int, float) * @throws DataTypeException if the value is incorrectly formatted. If validation is enabled, this * exception should be thrown at setValue(), but if not, detailed parsing may be deferred until * this method is called. */ public void setHourMinSecondPrecision(int hr, int min, float sec) throws DataTypeException { getDetail().setHourMinSecondPrecision(hr,min,sec); }
/** * Returns the second as an integer. * @throws DataTypeException if the value is incorrectly formatted. If validation is enabled, this * exception should be thrown at setValue(), but if not, detailed parsing may be deferred until * this method is called. */ public int getSecond() throws DataTypeException { return getDetail().getSecond(); }
/** * @see CommonDT#setYearPrecision(int) * @throws DataTypeException if the value is incorrectly formatted. If validation is enabled, this * exception should be thrown at setValue(), but if not, detailed parsing may be deferred until * this method is called. */ public void setYearPrecision(int yr) throws DataTypeException { getDetail().setYearPrecision(yr); }
/** * @see CommonDT#setYearMonthPrecision(int, int) * @throws DataTypeException if the value is incorrectly formatted. If validation is enabled, this * exception should be thrown at setValue(), but if not, detailed parsing may be deferred until * this method is called. */ public void setYearMonthPrecision(int yr, int mnth) throws DataTypeException { getDetail().setYearMonthPrecision(yr,mnth); }
/** * Returns the month as an integer. * @throws DataTypeException if the value is incorrectly formatted. If validation is enabled, this * exception should be thrown at setValue(), but if not, detailed parsing may be deferred until * this method is called. */ public int getMonth() throws DataTypeException { return getDetail().getMonth(); }
/** * Returns the day as an integer. * @throws DataTypeException if the value is incorrectly formatted. If validation is enabled, this * exception should be thrown at setValue(), but if not, detailed parsing may be deferred until * this method is called. */ public int getDay() throws DataTypeException { return getDetail().getDay(); } }
/** * @see CommonTS#setDatePrecision(int, int, int) * @throws DataTypeException if the value is incorrectly formatted. If validation is enabled, this * exception should be thrown at setValue(), but if not, detailed parsing may be deferred until * this method is called. */ public void setDatePrecision(int yr, int mnth, int dy) throws DataTypeException { getDetail().setDatePrecision(yr,mnth,dy); }
/** * Returns the year as an integer. * @throws DataTypeException if the value is incorrectly formatted. If validation is enabled, this * exception should be thrown at setValue(), but if not, detailed parsing may be deferred until * this method is called. */ public int getYear() throws DataTypeException { return getDetail().getYear(); }
/** * Returns the hour as an integer. * @throws DataTypeException if the value is incorrectly formatted. If validation is enabled, this * exception should be thrown at setValue(), but if not, detailed parsing may be deferred until * this method is called. */ public int getHour() throws DataTypeException { return getDetail().getHour(); }
/** * Returns the second as an integer. * @throws DataTypeException if the value is incorrectly formatted. If validation is enabled, this * exception should be thrown at setValue(), but if not, detailed parsing may be deferred until * this method is called. */ public int getSecond() throws DataTypeException { return getDetail().getSecond(); }
/** * @see CommonTM#setOffset(int) * @throws DataTypeException if the value is incorrectly formatted. If validation is enabled, this * exception should be thrown at setValue(), but if not, detailed parsing may be deferred until * this method is called. */ public void setOffset(int signedOffset) throws DataTypeException { getDetail().setOffset(signedOffset); }
/** * @see CommonTS#setDateMinutePrecision(int, int, int, int, int) * @throws DataTypeException if the value is incorrectly formatted. If validation is enabled, this * exception should be thrown at setValue(), but if not, detailed parsing may be deferred until * this method is called. */ public void setDateMinutePrecision(int yr, int mnth, int dy, int hr, int min) throws DataTypeException { getDetail().setDateMinutePrecision(yr,mnth,dy,hr,min); }
/** * Returns the month as an integer. * @throws DataTypeException if the value is incorrectly formatted. If validation is enabled, this * exception should be thrown at setValue(), but if not, detailed parsing may be deferred until * this method is called. */ public int getMonth() throws DataTypeException { return getDetail().getMonth(); }