/** * 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 minute 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 getMinute() throws DataTypeException { return getDetail().getMinute(); }
/** * Return the value as a calendar object * @since 1.1 * @throws DataTypeException If the current underlying string representation can not be parsed into a valid date/time */ public Calendar getValueAsCalendar() throws DataTypeException { return getDetail().getValueAsCalendar(); }
/** * Returns the minute 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 getMinute() throws DataTypeException { return getDetail().getMinute(); }
/** * Returns the fractional second value as a 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 float getFractSecond() throws DataTypeException { return getDetail().getFractSecond(); }
/** * Return the value as a calendar object * @since 1.1 * @throws DataTypeException If the current underlying string representation can not be parsed into a valid date/time */ public Calendar getValueAsCalendar() throws DataTypeException { return getDetail().getValueAsCalendar(); }
/** * Return the value as a date object * Note: Sets fields using precision up to the second * * @since 1.1 * @throws DataTypeException If the current underlying string representation can not be parsed into a valid date/time */ public Date getValueAsDate() throws DataTypeException { return getDetail().getValueAsDate(); }
/** * @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 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); }
/** * @see CommonTS#setDateSecondPrecision(int, int, int, 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 setDateSecondPrecision(int yr, int mnth, int dy, int hr, int min, float sec) throws DataTypeException { getDetail().setDateSecondPrecision(yr,mnth,dy,hr,min,sec); }
/** * @see CommonTS#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); }
/** * 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(); }
/** * 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); }
/** * 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 second * * @param theDate The date object from which to retrieve values * @since 1.1 */ public void setValueToSecond(Date theDate) throws DataTypeException { setValue((String)null); getDetail().setValueToSecond(theDate); }