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

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


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.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
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 TCPayload complex type. * *

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

 * <complexType name="TCPayload">
 *   <simpleContent>
 *     <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary">
 *       <attribute name="ContentID" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="MimeType" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </extension>
 *   </simpleContent>
 * </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 = "TCPayload", propOrder = { "value" }) @CodingStyleguideUnaware public class TCPayload implements Serializable, IExplicitlyCloneable { @XmlValue private byte[] value; @XmlAttribute(name = "ContentID") private String contentID; @XmlAttribute(name = "MimeType", required = true) private String mimeType; /** * Gets the value of the value property. * * @return * possible object is * byte[] */ @Nullable public byte[] getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * byte[] */ public void setValue( @Nullable byte[] value) { this.value = value; } /** * Gets the value of the contentID property. * * @return * possible object is * {@link String } * */ @Nullable public String getContentID() { return contentID; } /** * Sets the value of the contentID property. * * @param value * allowed object is * {@link String } * */ public void setContentID( @Nullable String value) { this.contentID = value; } /** * Gets the value of the mimeType property. * * @return * possible object is * {@link String } * */ @Nullable public String getMimeType() { return mimeType; } /** * Sets the value of the mimeType property. * * @param value * allowed object is * {@link String } * */ public void setMimeType( @Nullable String value) { this.mimeType = 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 TCPayload rhs = ((TCPayload) o); if (!EqualsHelper.equals(contentID, rhs.contentID)) { return false; } if (!EqualsHelper.equals(mimeType, rhs.mimeType)) { return false; } if (!EqualsHelper.equals(value, rhs.value)) { return false; } return true; } /** * Created by ph-jaxb22-plugin -Xph-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(contentID).append(mimeType).append(value).getHashCode(); } /** * Created by ph-jaxb22-plugin -Xph-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("contentID", contentID).append("mimeType", mimeType).append("value", value).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 TCPayload ret) { ret.contentID = contentID; ret.mimeType = mimeType; ret.value = ArrayHelper.getCopy(value); } /** * Created by ph-jaxb22-plugin -Xph-cloneable2 * * @return * The cloned object. Never null. */ @Nonnull @ReturnsMutableCopy @Override public TCPayload clone() { TCPayload ret = new TCPayload(); cloneTo(ret); return ret; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy