public InformationType part(InformationPartType value) { getPart().add(value); return this; }
@NotNull public static InformationType createInformationType(List<LocalizableMessageType> messages) { InformationType rv = new InformationType(); messages.forEach(s -> rv.getPart().add(new InformationPartType().localizableText(s))); return rv; }
public static InformationType stringToInformationType(String s) { InformationType info = new InformationType(); InformationPartType part = new InformationPartType(); part.setLocalizableText(LocalizationUtil.createForFallbackMessage(s)); info.getPart().add(part); return info; } }
/** * 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()); } }
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; }
lhsPart = (((this.part!= null)&&(!this.part.isEmpty()))?this.getPart():null); List<InformationPartType> rhsPart; rhsPart = (((that.part!= null)&&(!that.part.isEmpty()))?that.getPart():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "part", lhsPart), LocatorUtils.property(thatLocator, "part", rhsPart), lhsPart, rhsPart)) { return false;