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

oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.AttachmentType Maven / Gradle / Ivy


package oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2;

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.phloc.commons.equals.EqualsUtils;
import com.phloc.commons.hash.HashCodeGenerator;
import com.phloc.commons.string.ToStringGenerator;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.EmbeddedDocumentBinaryObjectType;


/**
 * 
 * 
 * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ABIE</ccts:ComponentType><ccts:DictionaryEntryName>Attachment. Details</ccts:DictionaryEntryName><ccts:Definition>Information about an attached document. An attachment can be referred to externally (with the URI element) or internally (with the MIME reference element) or contained within the document itself (with the EmbeddedDocument element).</ccts:Definition><ccts:ObjectClass>Attachment</ccts:ObjectClass></ccts:Component>
 * 
* * *

Java class for AttachmentType complex type. * *

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

 * <complexType name="AttachmentType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}EmbeddedDocumentBinaryObject" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}ExternalReference" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "AttachmentType", propOrder = { "embeddedDocumentBinaryObject", "externalReference" }) public class AttachmentType implements Serializable { @XmlElement(name = "EmbeddedDocumentBinaryObject", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private EmbeddedDocumentBinaryObjectType embeddedDocumentBinaryObject; @XmlElement(name = "ExternalReference") private ExternalReferenceType externalReference; /** * Default constructor * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * */ public AttachmentType() { } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Attachment. Embedded_ Document. Binary Object</ccts:DictionaryEntryName><ccts:Definition>Contains an embedded document as a BLOB (binary large object).</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Attachment</ccts:ObjectClass><ccts:PropertyTermQualifier>Embedded</ccts:PropertyTermQualifier><ccts:PropertyTerm>Document</ccts:PropertyTerm><ccts:RepresentationTerm>Binary Object</ccts:RepresentationTerm><ccts:DataType>Binary Object. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link EmbeddedDocumentBinaryObjectType } * */ @Nullable public EmbeddedDocumentBinaryObjectType getEmbeddedDocumentBinaryObject() { return embeddedDocumentBinaryObject; } /** * Sets the value of the embeddedDocumentBinaryObject property. * * @param value * allowed object is * {@link EmbeddedDocumentBinaryObjectType } * */ public void setEmbeddedDocumentBinaryObject( @Nullable EmbeddedDocumentBinaryObjectType value) { this.embeddedDocumentBinaryObject = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Attachment. External Reference</ccts:DictionaryEntryName><ccts:Definition>An attached document, externally referred to, referred to in the MIME location, or embedded.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Attachment</ccts:ObjectClass><ccts:PropertyTerm>External Reference</ccts:PropertyTerm><ccts:AssociatedObjectClass>External Reference</ccts:AssociatedObjectClass></ccts:Component>
     * 
* * * @return * possible object is * {@link ExternalReferenceType } * */ @Nullable public ExternalReferenceType getExternalReference() { return externalReference; } /** * Sets the value of the externalReference property. * * @param value * allowed object is * {@link ExternalReferenceType } * */ public void setExternalReference( @Nullable ExternalReferenceType value) { this.externalReference = value; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public boolean equals(final Object o) { if (o == this) { return true; } if ((o == null)||(!getClass().equals(o.getClass()))) { return false; } final AttachmentType rhs = ((AttachmentType) o); if (!EqualsUtils.equals(embeddedDocumentBinaryObject, rhs.embeddedDocumentBinaryObject)) { return false; } if (!EqualsUtils.equals(externalReference, rhs.externalReference)) { return false; } return true; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(embeddedDocumentBinaryObject).append(externalReference).getHashCode(); } /** * Created by phloc-jaxb22-plugin -Xphloc-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("embeddedDocumentBinaryObject", embeddedDocumentBinaryObject).append("externalReference", externalReference).toString(); } /** * Special setter with value of type byte[] * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type EmbeddedDocumentBinaryObjectType and never null */ @Nonnull public EmbeddedDocumentBinaryObjectType setEmbeddedDocumentBinaryObject( @Nullable final byte[] valueParam) { EmbeddedDocumentBinaryObjectType aObj = getEmbeddedDocumentBinaryObject(); if (aObj == null) { aObj = new EmbeddedDocumentBinaryObjectType(valueParam); setEmbeddedDocumentBinaryObject(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Get the value of the contained EmbeddedDocumentBinaryObjectType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained EmbeddedDocumentBinaryObjectType object or null */ @Nullable public byte[] getEmbeddedDocumentBinaryObjectValue() { EmbeddedDocumentBinaryObjectType aObj = getEmbeddedDocumentBinaryObject(); return ((aObj == null)?null:aObj.getValue()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy