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

eu.toop.connector.api.rest.TCOutgoingMetadata Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version

package eu.toop.connector.api.rest;

import java.io.Serializable;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import com.helger.commons.annotation.CodingStyleguideUnaware;
import com.helger.commons.annotation.ReturnsMutableCopy;
import com.helger.commons.collection.ArrayHelper;
import com.helger.commons.equals.EqualsHelper;
import com.helger.commons.hashcode.HashCodeGenerator;
import com.helger.commons.lang.IExplicitlyCloneable;
import com.helger.commons.string.ToStringGenerator;


/**
 * 

Java class for TCOutgoingMetadata complex type. * *

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

 * <complexType name="TCOutgoingMetadata">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="SenderID" type="{urn:eu.toop/toop-connector-ng/2020/05/}TCIdentifierType"/>
 *         <element name="ReceiverID" type="{urn:eu.toop/toop-connector-ng/2020/05/}TCIdentifierType"/>
 *         <element name="DocTypeID" type="{urn:eu.toop/toop-connector-ng/2020/05/}TCIdentifierType"/>
 *         <element name="ProcessID" type="{urn:eu.toop/toop-connector-ng/2020/05/}TCIdentifierType"/>
 *         <element name="TransportProtocol" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="EndpointURL" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="ReceiverCertificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
*

This class was annotated by ph-jaxb22-plugin -Xph-annotate

*

This class contains methods created by ph-jaxb22-plugin -Xph-equalshashcode

*

This class contains methods created by ph-jaxb22-plugin -Xph-tostring

*

This class contains methods created by ph-jaxb22-plugin -Xph-cloneable2

* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TCOutgoingMetadata", propOrder = { "senderID", "receiverID", "docTypeID", "processID", "transportProtocol", "endpointURL", "receiverCertificate" }) @CodingStyleguideUnaware public class TCOutgoingMetadata implements Serializable, IExplicitlyCloneable { @XmlElement(name = "SenderID", required = true) private TCIdentifierType senderID; @XmlElement(name = "ReceiverID", required = true) private TCIdentifierType receiverID; @XmlElement(name = "DocTypeID", required = true) private TCIdentifierType docTypeID; @XmlElement(name = "ProcessID", required = true) private TCIdentifierType processID; @XmlElement(name = "TransportProtocol", required = true) private String transportProtocol; @XmlElement(name = "EndpointURL") private String endpointURL; @XmlElement(name = "ReceiverCertificate") private byte[] receiverCertificate; /** * Gets the value of the senderID property. * * @return * possible object is * {@link TCIdentifierType } * */ @Nullable public TCIdentifierType getSenderID() { return senderID; } /** * Sets the value of the senderID property. * * @param value * allowed object is * {@link TCIdentifierType } * */ public void setSenderID( @Nullable TCIdentifierType value) { this.senderID = value; } /** * Gets the value of the receiverID property. * * @return * possible object is * {@link TCIdentifierType } * */ @Nullable public TCIdentifierType getReceiverID() { return receiverID; } /** * Sets the value of the receiverID property. * * @param value * allowed object is * {@link TCIdentifierType } * */ public void setReceiverID( @Nullable TCIdentifierType value) { this.receiverID = value; } /** * Gets the value of the docTypeID property. * * @return * possible object is * {@link TCIdentifierType } * */ @Nullable public TCIdentifierType getDocTypeID() { return docTypeID; } /** * Sets the value of the docTypeID property. * * @param value * allowed object is * {@link TCIdentifierType } * */ public void setDocTypeID( @Nullable TCIdentifierType value) { this.docTypeID = value; } /** * Gets the value of the processID property. * * @return * possible object is * {@link TCIdentifierType } * */ @Nullable public TCIdentifierType getProcessID() { return processID; } /** * Sets the value of the processID property. * * @param value * allowed object is * {@link TCIdentifierType } * */ public void setProcessID( @Nullable TCIdentifierType value) { this.processID = value; } /** * Gets the value of the transportProtocol property. * * @return * possible object is * {@link String } * */ @Nullable public String getTransportProtocol() { return transportProtocol; } /** * Sets the value of the transportProtocol property. * * @param value * allowed object is * {@link String } * */ public void setTransportProtocol( @Nullable String value) { this.transportProtocol = value; } /** * Gets the value of the endpointURL property. * * @return * possible object is * {@link String } * */ @Nullable public String getEndpointURL() { return endpointURL; } /** * Sets the value of the endpointURL property. * * @param value * allowed object is * {@link String } * */ public void setEndpointURL( @Nullable String value) { this.endpointURL = value; } /** * Gets the value of the receiverCertificate property. * * @return * possible object is * byte[] */ @Nullable public byte[] getReceiverCertificate() { return receiverCertificate; } /** * Sets the value of the receiverCertificate property. * * @param value * allowed object is * byte[] */ public void setReceiverCertificate( @Nullable byte[] value) { this.receiverCertificate = value; } /** * Created by ph-jaxb22-plugin -Xph-equalshashcode * */ @Override public boolean equals(final Object o) { if (o == this) { return true; } if ((o == null)||(!getClass().equals(o.getClass()))) { return false; } final TCOutgoingMetadata rhs = ((TCOutgoingMetadata) o); if (!EqualsHelper.equals(docTypeID, rhs.docTypeID)) { return false; } if (!EqualsHelper.equals(endpointURL, rhs.endpointURL)) { return false; } if (!EqualsHelper.equals(processID, rhs.processID)) { return false; } if (!EqualsHelper.equals(receiverCertificate, rhs.receiverCertificate)) { return false; } if (!EqualsHelper.equals(receiverID, rhs.receiverID)) { return false; } if (!EqualsHelper.equals(senderID, rhs.senderID)) { return false; } if (!EqualsHelper.equals(transportProtocol, rhs.transportProtocol)) { return false; } return true; } /** * Created by ph-jaxb22-plugin -Xph-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(docTypeID).append(endpointURL).append(processID).append(receiverCertificate).append(receiverID).append(senderID).append(transportProtocol).getHashCode(); } /** * Created by ph-jaxb22-plugin -Xph-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("docTypeID", docTypeID).append("endpointURL", endpointURL).append("processID", processID).append("receiverCertificate", receiverCertificate).append("receiverID", receiverID).append("senderID", senderID).append("transportProtocol", transportProtocol).getToString(); } /** * This method clones all values from this to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2 * * @param ret * The target object to clone to. May not be null. */ public void cloneTo( @Nonnull TCOutgoingMetadata ret) { ret.docTypeID = ((docTypeID == null)?null:docTypeID.clone()); ret.endpointURL = endpointURL; ret.processID = ((processID == null)?null:processID.clone()); ret.receiverCertificate = ArrayHelper.getCopy(receiverCertificate); ret.receiverID = ((receiverID == null)?null:receiverID.clone()); ret.senderID = ((senderID == null)?null:senderID.clone()); ret.transportProtocol = transportProtocol; } /** * Created by ph-jaxb22-plugin -Xph-cloneable2 * * @return * The cloned object. Never null. */ @Nonnull @ReturnsMutableCopy @Override public TCOutgoingMetadata clone() { TCOutgoingMetadata ret = new TCOutgoingMetadata(); cloneTo(ret); return ret; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy