/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public DecisionType clone() { try { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final DecisionType clone = ((DecisionType) super.clone()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType clone.approverRef = ((this.approverRef == null)?null:((this.getApproverRef() == null)?null:this.getApproverRef().clone())); // CBuiltinLeafInfo: java.lang.Boolean clone.approved = ((this.approved == null)?null:this.isApproved()); // CBuiltinLeafInfo: java.lang.String clone.resultAsString = ((this.resultAsString == null)?null:this.getResultAsString()); // CBuiltinLeafInfo: java.lang.String clone.comment = ((this.comment == null)?null:this.getComment()); // CBuiltinLeafInfo: javax.xml.datatype.XMLGregorianCalendar clone.dateTime = ((this.dateTime == null)?null:((this.getDateTime() == null)?null:((XMLGregorianCalendar) this.getDateTime().clone()))); return clone; } } catch (CloneNotSupportedException e) { // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ throw new AssertionError(e); } }
/** * Creates a new {@code DecisionType} instance by deeply copying a given {@code DecisionType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public DecisionType(final DecisionType 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 'DecisionType' from 'null'."); } // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType this.approverRef = ((o.approverRef == null)?null:((o.getApproverRef() == null)?null:o.getApproverRef().clone())); // CBuiltinLeafInfo: java.lang.Boolean this.approved = ((o.approved == null)?null:o.isApproved()); // CBuiltinLeafInfo: java.lang.String this.resultAsString = ((o.resultAsString == null)?null:o.getResultAsString()); // CBuiltinLeafInfo: java.lang.String this.comment = ((o.comment == null)?null:o.getComment()); // CBuiltinLeafInfo: javax.xml.datatype.XMLGregorianCalendar this.dateTime = ((o.dateTime == null)?null:((o.getDateTime() == null)?null:((XMLGregorianCalendar) o.getDateTime().clone()))); }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { ObjectReferenceType theApproverRef; theApproverRef = this.getApproverRef(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "approverRef", theApproverRef), currentHashCode, theApproverRef); } { Boolean theApproved; theApproved = this.isApproved(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "approved", theApproved), currentHashCode, theApproved); } { String theResultAsString; theResultAsString = this.getResultAsString(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "resultAsString", theResultAsString), currentHashCode, theResultAsString); } { String theComment; theComment = this.getComment(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "comment", theComment), currentHashCode, theComment); } { XMLGregorianCalendar theDateTime; theDateTime = this.getDateTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dateTime", theDateTime), currentHashCode, theDateTime); } return currentHashCode; }
lhsResultAsString = this.getResultAsString(); String rhsResultAsString; rhsResultAsString = that.getResultAsString(); if (!strategy.equals(LocatorUtils.property(thisLocator, "resultAsString", lhsResultAsString), LocatorUtils.property(thatLocator, "resultAsString", rhsResultAsString), lhsResultAsString, rhsResultAsString)) { return false;