/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public ExecuteChangesType clone() { try { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final ExecuteChangesType clone = ((ExecuteChangesType) super.clone()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.api_types_3.ObjectDeltaListType clone.deltaList = ((this.deltaList == null)?null:((this.getDeltaList() == null)?null:this.getDeltaList().clone())); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ModelExecuteOptionsType clone.options = ((this.options == null)?null:((this.getOptions() == null)?null:this.getOptions().clone())); return clone; } } catch (CloneNotSupportedException e) { // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ throw new AssertionError(e); } }
/** * Creates a new {@code ExecuteChangesType} instance by deeply copying a given {@code ExecuteChangesType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public ExecuteChangesType(final ExecuteChangesType o) { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 super(); if (o == null) { throw new NullPointerException("Cannot create a copy of 'ExecuteChangesType' from 'null'."); } // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.api_types_3.ObjectDeltaListType this.deltaList = ((o.deltaList == null)?null:((o.getDeltaList() == null)?null:o.getDeltaList().clone())); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ModelExecuteOptionsType this.options = ((o.options == null)?null:((o.getOptions() == null)?null:o.getOptions().clone())); }