public CTTrackChange getCopy(CTTrackChange copy, boolean whenNull) { if (copy != null) { CTTrackChange result = myFactory.createCTTrackChange(); result.setDate((XMLGregorianCalendar) copy.getDate().clone()); result.setAuthor(copy.getAuthor()); return result; } if (whenNull) { return myFactory.createCTTrackChange(); } return null; }
/** * This method clones all values from <code>this</code> to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2 * * @param ret * The target object to clone to. May not be <code>null</code>. */ public void cloneTo( @Nonnull Ebi43PeriodType ret) { ret.fromDate = ((fromDate == null)?null:((XMLGregorianCalendar) fromDate.clone())); ret.toDate = ((toDate == null)?null:((XMLGregorianCalendar) toDate.clone())); }
/** * This method clones all values from <code>this</code> to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2 * * @param ret * The target object to clone to. May not be <code>null</code>. */ public void cloneTo( @Nonnull Ebi40PeriodType ret) { ret.fromDate = ((fromDate == null)?null:((XMLGregorianCalendar) fromDate.clone())); ret.toDate = ((toDate == null)?null:((XMLGregorianCalendar) toDate.clone())); }
/** * This method clones all values from <code>this</code> to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2 * * @param ret * The target object to clone to. May not be <code>null</code>. */ public void cloneTo( @Nonnull Ebi42PeriodType ret) { ret.fromDate = ((fromDate == null)?null:((XMLGregorianCalendar) fromDate.clone())); ret.toDate = ((toDate == null)?null:((XMLGregorianCalendar) toDate.clone())); }
/** * This method clones all values from <code>this</code> to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2 * * @param ret * The target object to clone to. May not be <code>null</code>. */ public void cloneTo( @Nonnull DateType ret) { ret.value = ((value == null)?null:((XMLGregorianCalendar) value.clone())); }
/** * This method clones all values from <code>this</code> to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2 * * @param ret * The target object to clone to. May not be <code>null</code>. */ public void cloneTo( @Nonnull TimeType ret) { ret.value = ((value == null)?null:((XMLGregorianCalendar) value.clone())); }
/** * This method clones all values from <code>this</code> to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2 * * @param ret * The target object to clone to. May not be <code>null</code>. */ public void cloneTo( @Nonnull OccurrenceDateType ret) { ret.value = ((value == null)?null:((XMLGregorianCalendar) value.clone())); }
/** * This method clones all values from <code>this</code> to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2 * * @param ret * The target object to clone to. May not be <code>null</code>. */ public void cloneTo( @Nonnull TaxPointDateType ret) { ret.value = ((value == null)?null:((XMLGregorianCalendar) value.clone())); }
/** * This method clones all values from <code>this</code> to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2 * * @param ret * The target object to clone to. May not be <code>null</code>. */ public void cloneTo( @Nonnull ActualDespatchTimeType ret) { ret.value = ((value == null)?null:((XMLGregorianCalendar) value.clone())); }
/** * This method clones all values from <code>this</code> to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2 * * @param ret * The target object to clone to. May not be <code>null</code>. */ public void cloneTo( @Nonnull ReceivedDateType ret) { ret.value = ((value == null)?null:((XMLGregorianCalendar) value.clone())); }
/** * This method clones all values from <code>this</code> to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2 * * @param ret * The target object to clone to. May not be <code>null</code>. */ public void cloneTo( @Nonnull ReferenceDateType ret) { ret.value = ((value == null)?null:((XMLGregorianCalendar) value.clone())); }
/** * This method clones all values from <code>this</code> to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2 * * @param ret * The target object to clone to. May not be <code>null</code>. */ public void cloneTo( @Nonnull DateTimeType ret) { ret.value = ((value == null)?null:((XMLGregorianCalendar) value.clone())); }
/** * This method clones all values from <code>this</code> to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2 * * @param ret * The target object to clone to. May not be <code>null</code>. */ public void cloneTo( @Nonnull RequestedDespatchTimeType ret) { ret.value = ((value == null)?null:((XMLGregorianCalendar) value.clone())); }
/** * This method clones all values from <code>this</code> to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2 * * @param ret * The target object to clone to. May not be <code>null</code>. */ public void cloneTo( @Nonnull ActualDeliveryTimeType ret) { ret.value = ((value == null)?null:((XMLGregorianCalendar) value.clone())); }
/** * This method clones all values from <code>this</code> to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2 * * @param ret * The target object to clone to. May not be <code>null</code>. */ public void cloneTo( @Nonnull DespatchTimeType ret) { ret.value = ((value == null)?null:((XMLGregorianCalendar) value.clone())); }
/** * This method clones all values from <code>this</code> to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2 * * @param ret * The target object to clone to. May not be <code>null</code>. */ public void cloneTo( @Nonnull ActualDeliveryDateType ret) { ret.value = ((value == null)?null:((XMLGregorianCalendar) value.clone())); }
/** * This method clones all values from <code>this</code> to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2 * * @param ret * The target object to clone to. May not be <code>null</code>. */ public void cloneTo( @Nonnull TimeType ret) { ret.value = ((value == null)?null:((XMLGregorianCalendar) value.clone())); }
private static XMLGregorianCalendar xsd_add(XMLGregorianCalendar cal, Duration duration) { //if ( ! isYearMonth(duration) && ! isDayTime(duration) ) XMLGregorianCalendar result = (XMLGregorianCalendar)cal.clone() ; result.add(duration) ; return result ; }
/** {@inheritDoc} */ @Override public DateValue add(final DurationValue<?> durationVal) { final XMLGregorianCalendar cal = (XMLGregorianCalendar) value.clone(); cal.add(durationVal.getUnderlyingValue()); return new DateValue(cal); }
@Override public XMLGregorianCalendar date(XMLGregorianCalendar from) { if (from == null) { return null; } XMLGregorianCalendar clone = (XMLGregorianCalendar) from.clone(); clone.setTime(DatatypeConstants.FIELD_UNDEFINED, DatatypeConstants.FIELD_UNDEFINED, DatatypeConstants.FIELD_UNDEFINED); clone.setTimezone(DatatypeConstants.FIELD_UNDEFINED); return DateTimeUtil.isValidDate(clone) ? clone : null; }