1 package org.collectionspace.services.structureddate;
5 * A deferred date that represents the start of a century. The start year
6 * can not be determined until the era of the century is known. Once the
7 * era is known, resolveDate() may be called to calculate the year.
9 public class DeferredCenturyStartDate extends DeferredCenturyDate {
11 public DeferredCenturyStartDate(int century) {
16 public void resolveDate() {
20 era = Date.DEFAULT_ERA;
23 Date startDate = DateUtils.getCenturyStartDate(century, era);
25 setYear(startDate.getYear());
26 setMonth(startDate.getMonth());
27 setDay(startDate.getDay());
28 setEra(startDate.getEra());