/** * 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(); }
private CommonDT getDetail() throws DataTypeException { if (myDetail == null) { myDetail = new CommonDT(getValue()); } return myDetail; }
private CommonDT getDetail() throws DataTypeException { if (myDetail == null) { myDetail = new CommonDT(getValue()); } return myDetail; }
/** * @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); }
/** * 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 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 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 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); }
/** * @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(); } }