/** * Creates a new {@code InformationType} instance by deeply copying a given {@code InformationType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public InformationType(final InformationType 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 'InformationType' from 'null'."); } // CBuiltinLeafInfo: java.lang.Integer this.order = ((o.order == null)?null:o.getOrder()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.LocalizableMessageType this.localizableTitle = ((o.localizableTitle == null)?null:((o.getLocalizableTitle() == null)?null:o.getLocalizableTitle().clone())); // CBuiltinLeafInfo: java.lang.String this.title = ((o.title == null)?null:o.getTitle()); // 'Part' collection. if (o.part!= null) { copyPart(o.getPart(), this.getPart()); } }
clone.localizableTitle = ((this.localizableTitle == null)?null:((this.getLocalizableTitle() == null)?null:this.getLocalizableTitle().clone()));
lhsLocalizableTitle = this.getLocalizableTitle(); LocalizableMessageType rhsLocalizableTitle; rhsLocalizableTitle = that.getLocalizableTitle(); if (!strategy.equals(LocatorUtils.property(thisLocator, "localizableTitle", lhsLocalizableTitle), LocatorUtils.property(thatLocator, "localizableTitle", rhsLocalizableTitle), lhsLocalizableTitle, rhsLocalizableTitle)) { return false;
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { Integer theOrder; theOrder = this.getOrder(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "order", theOrder), currentHashCode, theOrder); } { LocalizableMessageType theLocalizableTitle; theLocalizableTitle = this.getLocalizableTitle(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "localizableTitle", theLocalizableTitle), currentHashCode, theLocalizableTitle); } { String theTitle; theTitle = this.getTitle(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "title", theTitle), currentHashCode, theTitle); } { List<InformationPartType> thePart; thePart = (((this.part!= null)&&(!this.part.isEmpty()))?this.getPart():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "part", thePart), currentHashCode, thePart); } return currentHashCode; }