/** * Constructs a <code>DateValue</code> object representing a date. * * @param date the date this <code>DateValue</code> should represent * @throws IllegalArgumentException if the given date cannot be represented * as defined by ISO 8601. */ public DateValue(Calendar date) throws IllegalArgumentException { super(TYPE); this.date = date; ISO8601.getYear(date); }
/** * Constructs a <code>DateValue</code> object representing a date. * * @param date the date this <code>DateValue</code> should represent * @throws IllegalArgumentException if the given date cannot be represented * as defined by ISO 8601. */ public DateValue(Calendar date) throws IllegalArgumentException { super(TYPE); this.date = date; ISO8601.getYear(date); }
/** * Constructs a <code>DateValue</code> object representing a date. * * @param date the date this <code>DateValue</code> should represent * @throws IllegalArgumentException if the given date cannot be represented * as defined by ISO 8601. */ public DateValue(Calendar date) throws IllegalArgumentException { super(TYPE); this.date = date; ISO8601.getYear(date); }
/** * {@inheritDoc} */ public Value createValue(Calendar value) { try { ISO8601.getYear(value); QValue qvalue = qfactory.create(value); return new QValueValue(qvalue, resolver); } catch (RepositoryException ex) { throw new RuntimeException(ex); } }
/** * {@inheritDoc} */ public Value createValue(Calendar value) { try { ISO8601.getYear(value); QValue qvalue = qfactory.create(value); return new QValueValue(qvalue, resolver); } catch (RepositoryException ex) { throw new RuntimeException(ex); } }
getYear(cal); } catch (IllegalArgumentException e) { return null;
getYear(cal); } catch (IllegalArgumentException e) { return null;
getYear(cal); } catch (IllegalArgumentException e) { return null;
appendZeroPaddedInt(buf, getYear(cal), 4); buf.append('-');
appendZeroPaddedInt(buf, getYear(cal), 4); buf.append('-');
appendZeroPaddedInt(buf, getYear(cal), 4); buf.append('-');