/** * Check if the date of creation is set * * @return <code>true</code>, if the date of creation is set */ public boolean isSetDateOfCreation() { return getDateOfCreation() != null && !getDateOfCreation().isEmpty(); }
/** * Check if the date of last revision is set * * @return <code>true</code>, if the date of last revision is set */ public boolean isSetDateOfLastRevision() { return getDateOfLastRevision() != null; }
/** * Add a date of publication * * @param dateOfPublication * the date of publication to add * @return this */ public InspireTemporalReference addDateOfPublication(InspireDateOfPublication dateOfPublication) { getDatesOfPublication().add(dateOfPublication); return this; }
if (!temporalReference.isSetDateOfCreation() && !temporalReference.isSetDateOfLastRevision() && !temporalReference.isSetDatesOfPublication() && !temporalReference.isSetTemporalExtents()) { empty(QN_TEMPORAL_REFERENCE); } else { start(QN_TEMPORAL_REFERENCE); if (temporalReference.isSetDateOfCreation()) { writeDateOfCreation(temporalReference.getDateOfCreation()); if (temporalReference.isSetDateOfLastRevision()) { writeDateOfLastRevision(temporalReference.getDateOfLastRevision()); if (temporalReference.isSetDatesOfPublication()) { for (InspireDateOfPublication dateOfPublication : temporalReference.getDatesOfPublication()) { writeDateOfPublication(dateOfPublication); if (temporalReference.isSetTemporalExtents()) { for (Time temporalExtent : temporalReference.getTemporalExtents()) { writeTemporalExtent(temporalExtent);
@Override public String toString() { return String.format( "%s %n[%n dateOfCreation=%s,%n dateOfLastRevision=%s," + "%n dateOfPublication=%s,%n temporalReferences=%s%n]", this.getClass().getSimpleName(), getDateOfCreation(), getDateOfLastRevision(), CollectionHelper.collectionToString(getDatesOfPublication()), CollectionHelper.collectionToString(getTemporalExtents())); } }
/** * Add a temporal extent * * @param temporalExtent * the temporal extent to add * @return this */ public InspireTemporalReference addTemporalExtent(Time temporalExtent) { getTemporalExtents().add(temporalExtent); return this; }
if (!temporalReference.isSetDateOfCreation() && !temporalReference.isSetDateOfLastRevision() && !temporalReference.isSetDatesOfPublication() && !temporalReference.isSetTemporalExtents()) { empty(QN_TEMPORAL_REFERENCE); } else { start(QN_TEMPORAL_REFERENCE); if (temporalReference.isSetDateOfCreation()) { writeDateOfCreation(temporalReference.getDateOfCreation()); if (temporalReference.isSetDateOfLastRevision()) { writeDateOfLastRevision(temporalReference.getDateOfLastRevision()); if (temporalReference.isSetDatesOfPublication()) { for (InspireDateOfPublication dateOfPublication : temporalReference.getDatesOfPublication()) { writeDateOfPublication(dateOfPublication); if (temporalReference.isSetTemporalExtents()) { for (Time temporalExtent : temporalReference.getTemporalExtents()) { writeTemporalExtent(temporalExtent);
@Override public String toString() { return String.format( "%s %n[%n dateOfCreation=%s,%n dateOfLastRevision=%s," + "%n dateOfPublication=%s,%n temporalReferences=%s%n]", this.getClass().getSimpleName(), getDateOfCreation(), getDateOfLastRevision(), CollectionHelper.collectionToString(getDatesOfPublication()), CollectionHelper.collectionToString(getTemporalExtents())); } }
/** * Add a temporal extent * * @param temporalExtent * the temporal extent to add * @return this */ public InspireTemporalReference addTemporalExtent(Time temporalExtent) { getTemporalExtents().add(temporalExtent); return this; }
/** * Add a date of publication * * @param dateOfPublication * the date of publication to add * @return this */ public InspireTemporalReference addDateOfPublication(InspireDateOfPublication dateOfPublication) { getDatesOfPublication().add(dateOfPublication); return this; }
/** * Set the temporal extents, clears the existing collection * * @param temporalExtents * the temporalExtents to set */ public void setTemporalExtents(Collection<Time> temporalExtents) { getTemporalExtents().clear(); if (CollectionHelper.isNotEmpty(temporalExtents)) { getTemporalExtents().addAll(temporalExtents); } }
/** * Check if the date of last revision is set * * @return <code>true</code>, if the date of last revision is set */ public boolean isSetDateOfLastRevision() { return getDateOfLastRevision() != null; }
/** * Check if the date of creation is set * * @return <code>true</code>, if the date of creation is set */ public boolean isSetDateOfCreation() { return getDateOfCreation() != null && !getDateOfCreation().isEmpty(); }
/** * Set the dates of publication, clears the existing collection * * @param datesOfPublication * the datesOfPublication to set */ public void setDatesOfPublication(Collection<InspireDateOfPublication> datesOfPublication) { getDatesOfPublication().clear(); if (CollectionHelper.isNotEmpty(datesOfPublication)) { getDatesOfPublication().addAll(datesOfPublication); } }
/** * Set the temporal extents, clears the existing collection * * @param temporalExtents * the temporalExtents to set */ public void setTemporalExtents(Collection<Time> temporalExtents) { getTemporalExtents().clear(); if (CollectionHelper.isNotEmpty(temporalExtents)) { getTemporalExtents().addAll(temporalExtents); } }
/** * Set the dates of publication, clears the existing collection * * @param datesOfPublication * the datesOfPublication to set */ public void setDatesOfPublication(Collection<InspireDateOfPublication> datesOfPublication) { getDatesOfPublication().clear(); if (CollectionHelper.isNotEmpty(datesOfPublication)) { getDatesOfPublication().addAll(datesOfPublication); } }
/** * Check if temporal extents are set * * @return <code>true</code>, if temporal extents are set */ public boolean isSetTemporalExtents() { return CollectionHelper.isNotEmpty(getTemporalExtents()); }
/** * Check if date of publications are set * * @return <code>true</code>, if date of publications are set */ public boolean isSetDatesOfPublication() { return CollectionHelper.isNotEmpty(getDatesOfPublication()); }
/** * Check if temporal extents are set * * @return <code>true</code>, if temporal extents are set */ public boolean isSetTemporalExtents() { return CollectionHelper.isNotEmpty(getTemporalExtents()); }
/** * Check if date of publications are set * * @return <code>true</code>, if date of publications are set */ public boolean isSetDatesOfPublication() { return CollectionHelper.isNotEmpty(getDatesOfPublication()); }