/** * Creates a new {@code LocalizableMessageListType} instance by deeply copying a given {@code LocalizableMessageListType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public LocalizableMessageListType(final LocalizableMessageListType 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 'LocalizableMessageListType' from 'null'."); } // 'Message' collection. if (o.message!= null) { copyMessage(o.getMessage(), this.getMessage()); } // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.LocalizableMessageType this.separator = ((o.separator == null)?null:((o.getSeparator() == null)?null:o.getSeparator().clone())); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.LocalizableMessageType this.prefix = ((o.prefix == null)?null:((o.getPrefix() == null)?null:o.getPrefix().clone())); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.LocalizableMessageType this.postfix = ((o.postfix == null)?null:((o.getPostfix() == null)?null:o.getPostfix().clone())); }
private static LocalizableMessage toLocalizableMessage(@NotNull LocalizableMessageListType messageList) { LocalizableMessageListBuilder builder = new LocalizableMessageListBuilder(); for (LocalizableMessageType m : messageList.getMessage()) { builder.addMessage(toLocalizableMessage(m)); } if (messageList.getSeparator() != null) { builder = builder.separator(toLocalizableMessage(messageList.getSeparator())); } if (messageList.getPostfix() != null) { builder = builder.postfix(toLocalizableMessage(messageList.getPostfix())); } if (messageList.getPrefix() != null) { builder = builder.postfix(toLocalizableMessage(messageList.getPostfix())); } return builder.build(); }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public LocalizableMessageListType clone() { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final LocalizableMessageListType clone = ((LocalizableMessageListType) super.clone()); // 'Message' collection. if (this.message!= null) { clone.message = null; copyMessage(this.getMessage(), clone.getMessage()); } // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.LocalizableMessageType clone.separator = ((this.separator == null)?null:((this.getSeparator() == null)?null:this.getSeparator().clone())); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.LocalizableMessageType clone.prefix = ((this.prefix == null)?null:((this.getPrefix() == null)?null:this.getPrefix().clone())); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.LocalizableMessageType clone.postfix = ((this.postfix == null)?null:((this.getPostfix() == null)?null:this.getPostfix().clone())); return clone; } }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { List<LocalizableMessageType> theMessage; theMessage = (((this.message!= null)&&(!this.message.isEmpty()))?this.getMessage():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "message", theMessage), currentHashCode, theMessage); } { LocalizableMessageType theSeparator; theSeparator = this.getSeparator(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "separator", theSeparator), currentHashCode, theSeparator); } { LocalizableMessageType thePrefix; thePrefix = this.getPrefix(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "prefix", thePrefix), currentHashCode, thePrefix); } { LocalizableMessageType thePostfix; thePostfix = this.getPostfix(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "postfix", thePostfix), currentHashCode, thePostfix); } return currentHashCode; }
lhsSeparator = this.getSeparator(); LocalizableMessageType rhsSeparator; rhsSeparator = that.getSeparator(); if (!strategy.equals(LocatorUtils.property(thisLocator, "separator", lhsSeparator), LocatorUtils.property(thatLocator, "separator", rhsSeparator), lhsSeparator, rhsSeparator)) { return false;