public static FuzzyDate valueOf(Integer year, Integer month, Integer day) { FuzzyDate fuzzyDate = new FuzzyDate(); fuzzyDate.year = year != null ? new Year(year) : null; fuzzyDate.month = month != null ? new Month(month) : null; fuzzyDate.day = day != null ? new Day(day) : null; return fuzzyDate; }
public FuzzyDate toFuzzyDate() { FuzzyDate fd = new FuzzyDate(); if (!PojoUtil.isEmpty(this.getDay())) fd.setDay(new Day(new Integer(this.getDay()))); if (!PojoUtil.isEmpty(this.getMonth())) fd.setMonth(new Month(new Integer(this.getMonth()))); if (!PojoUtil.isEmpty(this.getYear())) fd.setYear(new Year(new Integer(this.getYear()))); return fd; }
public org.orcid.jaxb.model.v3.rc2.common.FuzzyDate toV3FuzzyDate() { org.orcid.jaxb.model.v3.rc2.common.FuzzyDate fd = new org.orcid.jaxb.model.v3.rc2.common.FuzzyDate(); if (!PojoUtil.isEmpty(this.getDay())) fd.setDay(new org.orcid.jaxb.model.v3.rc2.common.Day(new Integer(this.getDay()))); if (!PojoUtil.isEmpty(this.getMonth())) fd.setMonth(new org.orcid.jaxb.model.v3.rc2.common.Month(new Integer(this.getMonth()))); if (!PojoUtil.isEmpty(this.getYear())) fd.setYear(new org.orcid.jaxb.model.v3.rc2.common.Year(new Integer(this.getYear()))); return fd; }
result.setDescription(description.getValue()); if (!PojoUtil.isEmpty(startDate)) result.setStartDate(new FuzzyDate(startDate.toFuzzyDate())); if (!PojoUtil.isEmpty(endDate)) result.setEndDate(new FuzzyDate(endDate.toFuzzyDate())); if (!PojoUtil.isEmpty(putCode)) result.setPutCode(Long.valueOf(putCode.getValue()));