Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.oasis_open.docs.ebxml_msg.ebms.v3_0.ns.core._200704.SignalMessage Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.07.08 at 09:17:24 AM CEST
//
package org.oasis_open.docs.ebxml_msg.ebms.v3_0.ns.core._200704;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
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.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
import org.w3c.dom.Element;
/**
*
* In the core part of ebMS-3 specification, an eb:Signal Message is allowed to
* contain eb:MessageInfo and at most one Receipt Signal, at most one eb:PullRequest
* element, and/or a series of eb:Error elements. In part 2 of the ebMS-3
* specification, new signals may be introduced, and for this reason,
* an extensibility point is added here to the eb:SignalMessage element to
* allow it to contain any elements.
*
*
* Java class for SignalMessage complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="SignalMessage">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="MessageInfo" type="{http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/}MessageInfo"/>
* <element name="PullRequest" type="{http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/}PullRequest" minOccurs="0"/>
* <element name="Receipt" type="{http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/}Receipt" minOccurs="0"/>
* <element name="Error" type="{http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/}Error" maxOccurs="unbounded" minOccurs="0"/>
* <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SignalMessage", propOrder = {
"messageInfo",
"pullRequest",
"receipt",
"errors",
"anies"
})
public class SignalMessage implements Equals, HashCode, ToString
{
@XmlElement(name = "MessageInfo", required = true)
protected MessageInfo messageInfo;
@XmlElement(name = "PullRequest")
protected PullRequest pullRequest;
@XmlElement(name = "Receipt")
protected Receipt receipt;
@XmlElement(name = "Error")
protected List errors;
@XmlAnyElement(lax = true)
protected List anies;
/**
* Default no-arg constructor
*
*/
public SignalMessage() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public SignalMessage(final MessageInfo messageInfo, final PullRequest pullRequest, final Receipt receipt, final List errors, final List anies) {
this.messageInfo = messageInfo;
this.pullRequest = pullRequest;
this.receipt = receipt;
this.errors = errors;
this.anies = anies;
}
/**
* Gets the value of the messageInfo property.
*
* @return
* possible object is
* {@link MessageInfo }
*
*/
public MessageInfo getMessageInfo() {
return messageInfo;
}
/**
* Sets the value of the messageInfo property.
*
* @param value
* allowed object is
* {@link MessageInfo }
*
*/
public void setMessageInfo(MessageInfo value) {
this.messageInfo = value;
}
/**
* Gets the value of the pullRequest property.
*
* @return
* possible object is
* {@link PullRequest }
*
*/
public PullRequest getPullRequest() {
return pullRequest;
}
/**
* Sets the value of the pullRequest property.
*
* @param value
* allowed object is
* {@link PullRequest }
*
*/
public void setPullRequest(PullRequest value) {
this.pullRequest = value;
}
/**
* Gets the value of the receipt property.
*
* @return
* possible object is
* {@link Receipt }
*
*/
public Receipt getReceipt() {
return receipt;
}
/**
* Sets the value of the receipt property.
*
* @param value
* allowed object is
* {@link Receipt }
*
*/
public void setReceipt(Receipt value) {
this.receipt = value;
}
/**
* Gets the value of the errors 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 errors property.
*
*
* For example, to add a new item, do as follows:
*
* getErrors().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Error }
*
*
*/
public List getErrors() {
if (errors == null) {
errors = new ArrayList();
}
return this.errors;
}
/**
* 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;
}
public void setErrors(List value) {
this.errors = null;
List draftl = this.getErrors();
draftl.addAll(value);
}
public void setAnies(List value) {
this.anies = null;
List draftl = this.getAnies();
draftl.addAll(value);
}
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
{
MessageInfo theMessageInfo;
theMessageInfo = this.getMessageInfo();
strategy.appendField(locator, this, "messageInfo", buffer, theMessageInfo);
}
{
PullRequest thePullRequest;
thePullRequest = this.getPullRequest();
strategy.appendField(locator, this, "pullRequest", buffer, thePullRequest);
}
{
Receipt theReceipt;
theReceipt = this.getReceipt();
strategy.appendField(locator, this, "receipt", buffer, theReceipt);
}
{
List theErrors;
theErrors = (((this.errors!= null)&&(!this.errors.isEmpty()))?this.getErrors():null);
strategy.appendField(locator, this, "errors", buffer, theErrors);
}
{
List theAnies;
theAnies = (((this.anies!= null)&&(!this.anies.isEmpty()))?this.getAnies():null);
strategy.appendField(locator, this, "anies", buffer, theAnies);
}
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof SignalMessage)) {
return false;
}
if (this == object) {
return true;
}
final SignalMessage that = ((SignalMessage) object);
{
MessageInfo lhsMessageInfo;
lhsMessageInfo = this.getMessageInfo();
MessageInfo rhsMessageInfo;
rhsMessageInfo = that.getMessageInfo();
if (!strategy.equals(LocatorUtils.property(thisLocator, "messageInfo", lhsMessageInfo), LocatorUtils.property(thatLocator, "messageInfo", rhsMessageInfo), lhsMessageInfo, rhsMessageInfo)) {
return false;
}
}
{
PullRequest lhsPullRequest;
lhsPullRequest = this.getPullRequest();
PullRequest rhsPullRequest;
rhsPullRequest = that.getPullRequest();
if (!strategy.equals(LocatorUtils.property(thisLocator, "pullRequest", lhsPullRequest), LocatorUtils.property(thatLocator, "pullRequest", rhsPullRequest), lhsPullRequest, rhsPullRequest)) {
return false;
}
}
{
Receipt lhsReceipt;
lhsReceipt = this.getReceipt();
Receipt rhsReceipt;
rhsReceipt = that.getReceipt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "receipt", lhsReceipt), LocatorUtils.property(thatLocator, "receipt", rhsReceipt), lhsReceipt, rhsReceipt)) {
return false;
}
}
{
List lhsErrors;
lhsErrors = (((this.errors!= null)&&(!this.errors.isEmpty()))?this.getErrors():null);
List rhsErrors;
rhsErrors = (((that.errors!= null)&&(!that.errors.isEmpty()))?that.getErrors():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "errors", lhsErrors), LocatorUtils.property(thatLocator, "errors", rhsErrors), lhsErrors, rhsErrors)) {
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)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
MessageInfo theMessageInfo;
theMessageInfo = this.getMessageInfo();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "messageInfo", theMessageInfo), currentHashCode, theMessageInfo);
}
{
PullRequest thePullRequest;
thePullRequest = this.getPullRequest();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "pullRequest", thePullRequest), currentHashCode, thePullRequest);
}
{
Receipt theReceipt;
theReceipt = this.getReceipt();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "receipt", theReceipt), currentHashCode, theReceipt);
}
{
List theErrors;
theErrors = (((this.errors!= null)&&(!this.errors.isEmpty()))?this.getErrors():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "errors", theErrors), currentHashCode, theErrors);
}
{
List theAnies;
theAnies = (((this.anies!= null)&&(!this.anies.isEmpty()))?this.getAnies():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "anies", theAnies), currentHashCode, theAnies);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public SignalMessage withMessageInfo(MessageInfo value) {
setMessageInfo(value);
return this;
}
public SignalMessage withPullRequest(PullRequest value) {
setPullRequest(value);
return this;
}
public SignalMessage withReceipt(Receipt value) {
setReceipt(value);
return this;
}
public SignalMessage withErrors(Error... values) {
if (values!= null) {
for (Error value: values) {
getErrors().add(value);
}
}
return this;
}
public SignalMessage withErrors(Collection values) {
if (values!= null) {
getErrors().addAll(values);
}
return this;
}
public SignalMessage withAnies(Object... values) {
if (values!= null) {
for (Object value: values) {
getAnies().add(value);
}
}
return this;
}
public SignalMessage withAnies(Collection values) {
if (values!= null) {
getAnies().addAll(values);
}
return this;
}
public SignalMessage withErrors(List value) {
setErrors(value);
return this;
}
public SignalMessage withAnies(List value) {
setAnies(value);
return this;
}
}