/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public OperationBusinessContextType clone() { try { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final OperationBusinessContextType clone = ((OperationBusinessContextType) super.clone()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ExtensionType clone.extension = ((this.extension == null)?null:((this.getExtension() == null)?null:this.getExtension().clone())); // CBuiltinLeafInfo: java.lang.String clone.comment = ((this.comment == null)?null:this.getComment()); return clone; } } catch (CloneNotSupportedException e) { // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ throw new AssertionError(e); } }
/** * Creates a new {@code OperationBusinessContextType} instance by deeply copying a given {@code OperationBusinessContextType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public OperationBusinessContextType(final OperationBusinessContextType 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 'OperationBusinessContextType' from 'null'."); } // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ExtensionType this.extension = ((o.extension == null)?null:((o.getExtension() == null)?null:o.getExtension().clone())); // CBuiltinLeafInfo: java.lang.String this.comment = ((o.comment == null)?null:o.getComment()); }
clone.extension = ((this.extension == null)?null:((this.getExtension() == null)?null:this.getExtension().clone()));
this.extension = ((o.extension == null)?null:((o.getExtension() == null)?null:o.getExtension().clone()));