All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.digipost.org.oasis_open.docs.ebxml_msg.ebms.v3_0.ns.core._200704.Messaging Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2022.11.16 at 09:22:53 AM UTC 
//


package no.digipost.org.oasis_open.docs.ebxml_msg.ebms.v3_0.ns.core._200704;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.namespace.QName;
import au.edu.dstc.titanium.xml.xs3p.runtime.ZeroOneBooleanAdapter;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
import org.w3c.dom.Element;


/**
 * 
 * 	The eb:Messaging element is the top element of ebMS-3 headers, and it is
 * 	placed within the SOAP Header element (either SOAP 1.1 or SOAP 1.2). The
 * 	eb:Messaging element may contain several instances of eb:SignalMessage
 * 	and eb:UserMessage elements. However in the core part of the ebMS-3
 * 	specification, only one instance of either eb:UserMessage or eb:SignalMessage
 * 	must be present. The second part of ebMS-3 specification may need to include
 * 	multiple instances of either eb:SignalMessage, eb:UserMessage or both.
 * 	Therefore, this schema is allowing multiple instances of eb:SignalMessage
 * 	and eb:UserMessage elements for part 2 of the ebMS-3 specification. Note
 * 	that the eb:Messaging element cannot be empty (at least one of
 * 	eb:SignalMessage or eb:UserMessage element must present).
 * 			
 * 
 * 

Java class for Messaging complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="Messaging">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="SignalMessage" type="{http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/}SignalMessage" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="UserMessage" type="{http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/}UserMessage" maxOccurs="unbounded" minOccurs="0"/>
 *         <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *       <attGroup ref="{http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/}headerExtension"/>
 *       <anyAttribute processContents='lax' namespace='##other'/>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Messaging", propOrder = { "signalMessages", "userMessages", "anies" }) @XmlRootElement(name = "Messaging") public class Messaging implements Equals2, HashCode2, ToString2 { @XmlElement(name = "SignalMessage") protected List signalMessages; @XmlElement(name = "UserMessage") protected List userMessages; @XmlAnyElement(lax = true) protected List anies; @XmlAttribute(name = "id") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected String id; @XmlAttribute(name = "mustUnderstand", namespace = "http://schemas.xmlsoap.org/soap/envelope/") @XmlJavaTypeAdapter(ZeroOneBooleanAdapter.class) protected Boolean mustUnderstand; @XmlAttribute(name = "mustUnderstand", namespace = "http://www.w3.org/2003/05/soap-envelope") protected Boolean mustUnderstand12; @XmlAnyAttribute private Map otherAttributes = new HashMap(); /** * Default no-arg constructor * */ public Messaging() { super(); } /** * Fully-initialising value constructor * */ public Messaging(final List signalMessages, final List userMessages, final List anies, final String id, final Boolean mustUnderstand, final Boolean mustUnderstand12, final Map otherAttributes) { this.signalMessages = signalMessages; this.userMessages = userMessages; this.anies = anies; this.id = id; this.mustUnderstand = mustUnderstand; this.mustUnderstand12 = mustUnderstand12; this.otherAttributes = otherAttributes; } /** * Gets the value of the signalMessages property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the signalMessages property. * *

* For example, to add a new item, do as follows: *

     *    getSignalMessages().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link SignalMessage } * * */ public List getSignalMessages() { if (signalMessages == null) { signalMessages = new ArrayList(); } return this.signalMessages; } /** * Gets the value of the userMessages property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the userMessages property. * *

* For example, to add a new item, do as follows: *

     *    getUserMessages().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link UserMessage } * * */ public List getUserMessages() { if (userMessages == null) { userMessages = new ArrayList(); } return this.userMessages; } /** * Gets the value of the anies property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the anies property. * *

* For example, to add a new item, do as follows: *

     *    getAnies().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Element } * {@link Object } * * */ public List getAnies() { if (anies == null) { anies = new ArrayList(); } return this.anies; } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * * if SOAP 1.1 is being used, this attribute is required * * * @return * possible object is * {@link String } * */ public Boolean getMustUnderstand() { return mustUnderstand; } /** * Sets the value of the mustUnderstand property. * * @param value * allowed object is * {@link String } * */ public void setMustUnderstand(Boolean value) { this.mustUnderstand = value; } /** * * if SOAP 1.2 is being used, this attribute is required * * * @return * possible object is * {@link Boolean } * */ public Boolean getMustUnderstand12() { if (mustUnderstand12 == null) { return false; } else { return mustUnderstand12; } } /** * Sets the value of the mustUnderstand12 property. * * @param value * allowed object is * {@link Boolean } * */ public void setMustUnderstand12(Boolean value) { this.mustUnderstand12 = value; } /** * Gets a map that contains attributes that aren't bound to any typed property on this class. * *

* the map is keyed by the name of the attribute and * the value is the string value of the attribute. * * the map returned by this method is live, and you can add new attribute * by updating the map directly. Because of this design, there's no setter. * * * @return * always non-null */ public Map getOtherAttributes() { return otherAttributes; } public void setSignalMessages(List value) { this.signalMessages = null; if (value!= null) { List draftl = this.getSignalMessages(); draftl.addAll(value); } } public void setUserMessages(List value) { this.userMessages = null; if (value!= null) { List draftl = this.getUserMessages(); draftl.addAll(value); } } public void setAnies(List value) { this.anies = null; if (value!= null) { List draftl = this.getAnies(); draftl.addAll(value); } } public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE2; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { List theSignalMessages; theSignalMessages = (((this.signalMessages!= null)&&(!this.signalMessages.isEmpty()))?this.getSignalMessages():null); strategy.appendField(locator, this, "signalMessages", buffer, theSignalMessages, ((this.signalMessages!= null)&&(!this.signalMessages.isEmpty()))); } { List theUserMessages; theUserMessages = (((this.userMessages!= null)&&(!this.userMessages.isEmpty()))?this.getUserMessages():null); strategy.appendField(locator, this, "userMessages", buffer, theUserMessages, ((this.userMessages!= null)&&(!this.userMessages.isEmpty()))); } { List theAnies; theAnies = (((this.anies!= null)&&(!this.anies.isEmpty()))?this.getAnies():null); strategy.appendField(locator, this, "anies", buffer, theAnies, ((this.anies!= null)&&(!this.anies.isEmpty()))); } { String theId; theId = this.getId(); strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null)); } { Boolean theMustUnderstand; theMustUnderstand = this.getMustUnderstand(); strategy.appendField(locator, this, "mustUnderstand", buffer, theMustUnderstand, (this.mustUnderstand!= null)); } { Boolean theMustUnderstand12; theMustUnderstand12 = this.getMustUnderstand12(); strategy.appendField(locator, this, "mustUnderstand12", buffer, theMustUnderstand12, (this.mustUnderstand12 != null)); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final Messaging that = ((Messaging) object); { List lhsSignalMessages; lhsSignalMessages = (((this.signalMessages!= null)&&(!this.signalMessages.isEmpty()))?this.getSignalMessages():null); List rhsSignalMessages; rhsSignalMessages = (((that.signalMessages!= null)&&(!that.signalMessages.isEmpty()))?that.getSignalMessages():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "signalMessages", lhsSignalMessages), LocatorUtils.property(thatLocator, "signalMessages", rhsSignalMessages), lhsSignalMessages, rhsSignalMessages, ((this.signalMessages!= null)&&(!this.signalMessages.isEmpty())), ((that.signalMessages!= null)&&(!that.signalMessages.isEmpty())))) { return false; } } { List lhsUserMessages; lhsUserMessages = (((this.userMessages!= null)&&(!this.userMessages.isEmpty()))?this.getUserMessages():null); List rhsUserMessages; rhsUserMessages = (((that.userMessages!= null)&&(!that.userMessages.isEmpty()))?that.getUserMessages():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "userMessages", lhsUserMessages), LocatorUtils.property(thatLocator, "userMessages", rhsUserMessages), lhsUserMessages, rhsUserMessages, ((this.userMessages!= null)&&(!this.userMessages.isEmpty())), ((that.userMessages!= null)&&(!that.userMessages.isEmpty())))) { return false; } } { List lhsAnies; lhsAnies = (((this.anies!= null)&&(!this.anies.isEmpty()))?this.getAnies():null); List rhsAnies; rhsAnies = (((that.anies!= null)&&(!that.anies.isEmpty()))?that.getAnies():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "anies", lhsAnies), LocatorUtils.property(thatLocator, "anies", rhsAnies), lhsAnies, rhsAnies, ((this.anies!= null)&&(!this.anies.isEmpty())), ((that.anies!= null)&&(!that.anies.isEmpty())))) { return false; } } { String lhsId; lhsId = this.getId(); String rhsId; rhsId = that.getId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId, (this.id!= null), (that.id!= null))) { return false; } } { Boolean lhsMustUnderstand; lhsMustUnderstand = this.getMustUnderstand(); Boolean rhsMustUnderstand; rhsMustUnderstand = that.getMustUnderstand(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mustUnderstand", lhsMustUnderstand), LocatorUtils.property(thatLocator, "mustUnderstand", rhsMustUnderstand), lhsMustUnderstand, rhsMustUnderstand, (this.mustUnderstand!= null), (that.mustUnderstand!= null))) { return false; } } { Boolean lhsMustUnderstand12; lhsMustUnderstand12 = this.getMustUnderstand12(); Boolean rhsMustUnderstand12; rhsMustUnderstand12 = that.getMustUnderstand12(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mustUnderstand12", lhsMustUnderstand12), LocatorUtils.property(thatLocator, "mustUnderstand12", rhsMustUnderstand12), lhsMustUnderstand12, rhsMustUnderstand12, (this.mustUnderstand12 != null), (that.mustUnderstand12 != null))) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE2; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { List theSignalMessages; theSignalMessages = (((this.signalMessages!= null)&&(!this.signalMessages.isEmpty()))?this.getSignalMessages():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "signalMessages", theSignalMessages), currentHashCode, theSignalMessages, ((this.signalMessages!= null)&&(!this.signalMessages.isEmpty()))); } { List theUserMessages; theUserMessages = (((this.userMessages!= null)&&(!this.userMessages.isEmpty()))?this.getUserMessages():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "userMessages", theUserMessages), currentHashCode, theUserMessages, ((this.userMessages!= null)&&(!this.userMessages.isEmpty()))); } { List theAnies; theAnies = (((this.anies!= null)&&(!this.anies.isEmpty()))?this.getAnies():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "anies", theAnies), currentHashCode, theAnies, ((this.anies!= null)&&(!this.anies.isEmpty()))); } { String theId; theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null)); } { Boolean theMustUnderstand; theMustUnderstand = this.getMustUnderstand(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mustUnderstand", theMustUnderstand), currentHashCode, theMustUnderstand, (this.mustUnderstand!= null)); } { Boolean theMustUnderstand12; theMustUnderstand12 = this.getMustUnderstand12(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mustUnderstand12", theMustUnderstand12), currentHashCode, theMustUnderstand12, (this.mustUnderstand12 != null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE2; return this.hashCode(null, strategy); } public Messaging withSignalMessages(SignalMessage... values) { if (values!= null) { for (SignalMessage value: values) { getSignalMessages().add(value); } } return this; } public Messaging withSignalMessages(Collection values) { if (values!= null) { getSignalMessages().addAll(values); } return this; } public Messaging withUserMessages(UserMessage... values) { if (values!= null) { for (UserMessage value: values) { getUserMessages().add(value); } } return this; } public Messaging withUserMessages(Collection values) { if (values!= null) { getUserMessages().addAll(values); } return this; } public Messaging withAnies(Object... values) { if (values!= null) { for (Object value: values) { getAnies().add(value); } } return this; } public Messaging withAnies(Collection values) { if (values!= null) { getAnies().addAll(values); } return this; } public Messaging withId(String value) { setId(value); return this; } public Messaging withMustUnderstand(Boolean value) { setMustUnderstand(value); return this; } public Messaging withMustUnderstand12(Boolean value) { setMustUnderstand12(value); return this; } public Messaging withSignalMessages(List value) { setSignalMessages(value); return this; } public Messaging withUserMessages(List value) { setUserMessages(value); return this; } public Messaging withAnies(List value) { setAnies(value); return this; } }