本文整理了Java中javax.xml.datatype.XMLGregorianCalendar.clone()
方法的一些代码示例,展示了XMLGregorianCalendar.clone()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLGregorianCalendar.clone()
方法的具体详情如下:
包路径:javax.xml.datatype.XMLGregorianCalendar
类名称:XMLGregorianCalendar
方法名:clone
[英]Creates and returns a copy of this object.
[中]创建并返回此对象的副本。
代码示例来源:origin: vsch/flexmark-java
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;
}
代码示例来源:origin: com.helger/ph-ebinterface
/**
* 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()));
}
代码示例来源:origin: com.helger/ph-ebinterface
/**
* 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()));
}
代码示例来源:origin: com.helger/ph-ebinterface
/**
* 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()));
}
代码示例来源:origin: com.helger/ph-ubl21
/**
* 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()));
}
代码示例来源:origin: com.helger/ph-ubl21
/**
* 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()));
}
代码示例来源:origin: com.helger/ph-ubl20
/**
* 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()));
}
代码示例来源:origin: com.helger/ph-ubl20
/**
* 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()));
}
代码示例来源:origin: com.helger/ph-ubl20
/**
* 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()));
}
代码示例来源:origin: com.helger/ph-ubl20
/**
* 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()));
}
代码示例来源:origin: com.helger/ph-ubl20
/**
* 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()));
}
代码示例来源:origin: com.helger/ph-ubl21
/**
* 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()));
}
代码示例来源:origin: com.helger/ph-ubl20
/**
* 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()));
}
代码示例来源:origin: com.helger/ph-ubl20
/**
* 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()));
}
代码示例来源:origin: com.helger/ph-ubl20
/**
* 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()));
}
代码示例来源:origin: com.helger/ph-ubl20
/**
* 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()));
}
代码示例来源:origin: com.helger/ph-ubl20
/**
* 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()));
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
private static XMLGregorianCalendar xsd_add(XMLGregorianCalendar cal, Duration duration)
{
//if ( ! isYearMonth(duration) && ! isDayTime(duration) )
XMLGregorianCalendar result = (XMLGregorianCalendar)cal.clone() ;
result.add(duration) ;
return result ;
}
代码示例来源:origin: org.ow2.authzforce/authzforce-ce-core-pdp-api
/** {@inheritDoc} */
@Override
public DateValue add(final DurationValue<?> durationVal)
{
final XMLGregorianCalendar cal = (XMLGregorianCalendar) value.clone();
cal.add(durationVal.getUnderlyingValue());
return new DateValue(cal);
}
代码示例来源:origin: com.goldmansachs.jdmn/jdmn-core
@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;
}
内容来源于网络,如有侵权,请联系作者删除!