/** * Create an instance of {@link LocalizableMessageListType } * */ public LocalizableMessageListType createLocalizableMessageListType() { return new LocalizableMessageListType(); }
public boolean equals(Object object) { final EqualsStrategy strategy = DomAwareEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public LocalizableMessageListType message(LocalizableMessageType value) { getMessage().add(value); return this; }
/** * 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())); }
@NotNull private static LocalizableMessageListType createLocalizableMessageType(@NotNull LocalizableMessageList messageList, Function<LocalizableMessage, String> resolveKeys) { LocalizableMessageListType rv = new LocalizableMessageListType(); messageList.getMessages().forEach(message -> {if (rv.getMessage() != null) rv.getMessage().add(createLocalizableMessageType(message, resolveKeys));}); rv.setSeparator(createLocalizableMessageType(messageList.getSeparator(), resolveKeys)); rv.setPrefix(createLocalizableMessageType(messageList.getPrefix(), resolveKeys)); rv.setPostfix(createLocalizableMessageType(messageList.getPostfix(), resolveKeys)); return rv; }
public int hashCode() { final HashCodeStrategy strategy = DomAwareHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public LocalizableMessageListType postfix(LocalizableMessageType value) { setPostfix(value); return this; }
/** * 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; } }
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(); }
/** * Create an instance of {@link LocalizableMessageListType } * */ public LocalizableMessageListType createLocalizableMessageListType() { return new LocalizableMessageListType(); }
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; }
/** * Create an instance of {@link LocalizableMessageListType } * */ public LocalizableMessageListType createLocalizableMessageListType() { return new LocalizableMessageListType(); }
lhsMessage = (((this.message!= null)&&(!this.message.isEmpty()))?this.getMessage():null); List<LocalizableMessageType> rhsMessage; rhsMessage = (((that.message!= null)&&(!that.message.isEmpty()))?that.getMessage():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "message", lhsMessage), LocatorUtils.property(thatLocator, "message", rhsMessage), lhsMessage, rhsMessage)) { return false; 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; lhsPrefix = this.getPrefix(); LocalizableMessageType rhsPrefix; rhsPrefix = that.getPrefix(); if (!strategy.equals(LocatorUtils.property(thisLocator, "prefix", lhsPrefix), LocatorUtils.property(thatLocator, "prefix", rhsPrefix), lhsPrefix, rhsPrefix)) { return false; lhsPostfix = this.getPostfix(); LocalizableMessageType rhsPostfix; rhsPostfix = that.getPostfix(); if (!strategy.equals(LocatorUtils.property(thisLocator, "postfix", lhsPostfix), LocatorUtils.property(thatLocator, "postfix", rhsPostfix), lhsPostfix, rhsPostfix)) { return false;