/** * Creates a new {@code WorkItemDelegationEventType} instance by deeply copying a given {@code WorkItemDelegationEventType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public WorkItemDelegationEventType(final WorkItemDelegationEventType o) { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 super(o); if (o == null) { throw new NullPointerException("Cannot create a copy of 'WorkItemDelegationEventType' from 'null'."); } // 'AssigneeBefore' collection. if (o.assigneeBefore!= null) { copyAssigneeBefore(o.getAssigneeBefore(), this.getAssigneeBefore()); } // 'DelegatedTo' collection. if (o.delegatedTo!= null) { copyDelegatedTo(o.getDelegatedTo(), this.getDelegatedTo()); } // CEnumLeafInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemDelegationMethodType this.delegationMethod = ((o.delegationMethod == null)?null:o.getDelegationMethod()); }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public WorkItemDelegationEventType clone() { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final WorkItemDelegationEventType clone = ((WorkItemDelegationEventType) super.clone()); // 'AssigneeBefore' collection. if (this.assigneeBefore!= null) { clone.assigneeBefore = null; copyAssigneeBefore(this.getAssigneeBefore(), clone.getAssigneeBefore()); } // 'DelegatedTo' collection. if (this.delegatedTo!= null) { clone.delegatedTo = null; copyDelegatedTo(this.getDelegatedTo(), clone.getDelegatedTo()); } // CEnumLeafInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemDelegationMethodType clone.delegationMethod = ((this.delegationMethod == null)?null:this.getDelegationMethod()); return clone; } }