/** * Create an instance of {@link InformationType } * */ public InformationType createInformationType() { return new InformationType(); }
public boolean equals(Object object) { final EqualsStrategy strategy = DomAwareEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public InformationType part(InformationPartType value) { getPart().add(value); return this; }
/** * 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()); } }
@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 int hashCode() { final HashCodeStrategy strategy = DomAwareHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public InformationPartType beginPart() { InformationPartType value = new InformationPartType(); part(value); return value; }
clone.order = ((this.order == null)?null:this.getOrder()); clone.localizableTitle = ((this.localizableTitle == null)?null:((this.getLocalizableTitle() == null)?null:this.getLocalizableTitle().clone())); clone.title = ((this.title == null)?null:this.getTitle()); copyPart(this.getPart(), clone.getPart());
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; } }
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; }
/** * Create an instance of {@link InformationType } * */ public InformationType createInformationType() { return new InformationType(); }
lhsOrder = this.getOrder(); Integer rhsOrder; rhsOrder = that.getOrder(); if (!strategy.equals(LocatorUtils.property(thisLocator, "order", lhsOrder), LocatorUtils.property(thatLocator, "order", rhsOrder), lhsOrder, rhsOrder)) { return false; 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; lhsTitle = this.getTitle(); String rhsTitle; rhsTitle = that.getTitle(); if (!strategy.equals(LocatorUtils.property(thisLocator, "title", lhsTitle), LocatorUtils.property(thatLocator, "title", rhsTitle), lhsTitle, rhsTitle)) { return false; 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;
/** * Create an instance of {@link InformationType } * */ public InformationType createInformationType() { return new InformationType(); }
public InformationType beginAdditionalInformation() { InformationType value = new InformationType(); additionalInformation(value); return value; }