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

un.unece.uncefact.data.specification.unqualifieddatatypesschemamodule._2.GraphicType Maven / Gradle / Ivy


package un.unece.uncefact.data.specification.unqualifieddatatypesschemamodule._2;

import java.io.Serializable;
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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.phloc.commons.equals.EqualsUtils;
import com.phloc.commons.hash.HashCodeGenerator;
import com.phloc.commons.string.ToStringGenerator;
import un.unece.uncefact.codelist.specification.ianamimemediatype._2003.BinaryObjectMimeCodeContentType;


/**
 * 
 * 
 * <?xml version="1.0" encoding="UTF-8"?><ccts:UniqueID xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:clm54217="urn:un:unece:uncefact:codelist:specification:54217:2001" xmlns:clm5639="urn:un:unece:uncefact:codelist:specification:5639:1988" xmlns:clm66411="urn:un:unece:uncefact:codelist:specification:66411:2001" xmlns:clmIANAMIMEMediaType="urn:un:unece:uncefact:codelist:specification:IANAMIMEMediaType:2003" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">UDT000003</ccts:UniqueID>
 * 
* *
 * <?xml version="1.0" encoding="UTF-8"?><ccts:CategoryCode xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:clm54217="urn:un:unece:uncefact:codelist:specification:54217:2001" xmlns:clm5639="urn:un:unece:uncefact:codelist:specification:5639:1988" xmlns:clm66411="urn:un:unece:uncefact:codelist:specification:66411:2001" xmlns:clmIANAMIMEMediaType="urn:un:unece:uncefact:codelist:specification:IANAMIMEMediaType:2003" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">UDT</ccts:CategoryCode>
 * 
* *
 * <?xml version="1.0" encoding="UTF-8"?><ccts:DictionaryEntryName xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:clm54217="urn:un:unece:uncefact:codelist:specification:54217:2001" xmlns:clm5639="urn:un:unece:uncefact:codelist:specification:5639:1988" xmlns:clm66411="urn:un:unece:uncefact:codelist:specification:66411:2001" xmlns:clmIANAMIMEMediaType="urn:un:unece:uncefact:codelist:specification:IANAMIMEMediaType:2003" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">Graphic. Type</ccts:DictionaryEntryName>
 * 
* *
 * <?xml version="1.0" encoding="UTF-8"?><ccts:VersionID xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:clm54217="urn:un:unece:uncefact:codelist:specification:54217:2001" xmlns:clm5639="urn:un:unece:uncefact:codelist:specification:5639:1988" xmlns:clm66411="urn:un:unece:uncefact:codelist:specification:66411:2001" xmlns:clmIANAMIMEMediaType="urn:un:unece:uncefact:codelist:specification:IANAMIMEMediaType:2003" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">1.0</ccts:VersionID>
 * 
* *
 * <?xml version="1.0" encoding="UTF-8"?><ccts:Definition xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:clm54217="urn:un:unece:uncefact:codelist:specification:54217:2001" xmlns:clm5639="urn:un:unece:uncefact:codelist:specification:5639:1988" xmlns:clm66411="urn:un:unece:uncefact:codelist:specification:66411:2001" xmlns:clmIANAMIMEMediaType="urn:un:unece:uncefact:codelist:specification:IANAMIMEMediaType:2003" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">A diagram, graph, mathematical curves, or similar representation.</ccts:Definition>
 * 
* *
 * <?xml version="1.0" encoding="UTF-8"?><ccts:RepresentationTermName xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:clm54217="urn:un:unece:uncefact:codelist:specification:54217:2001" xmlns:clm5639="urn:un:unece:uncefact:codelist:specification:5639:1988" xmlns:clm66411="urn:un:unece:uncefact:codelist:specification:66411:2001" xmlns:clmIANAMIMEMediaType="urn:un:unece:uncefact:codelist:specification:IANAMIMEMediaType:2003" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">Graphic</ccts:RepresentationTermName>
 * 
* *
 * <?xml version="1.0" encoding="UTF-8"?><ccts:PrimitiveType xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:clm54217="urn:un:unece:uncefact:codelist:specification:54217:2001" xmlns:clm5639="urn:un:unece:uncefact:codelist:specification:5639:1988" xmlns:clm66411="urn:un:unece:uncefact:codelist:specification:66411:2001" xmlns:clmIANAMIMEMediaType="urn:un:unece:uncefact:codelist:specification:IANAMIMEMediaType:2003" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">binary</ccts:PrimitiveType>
 * 
* *
 * <?xml version="1.0" encoding="UTF-8"?><xsd:BuiltinType xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:clm54217="urn:un:unece:uncefact:codelist:specification:54217:2001" xmlns:clm5639="urn:un:unece:uncefact:codelist:specification:5639:1988" xmlns:clm66411="urn:un:unece:uncefact:codelist:specification:66411:2001" xmlns:clmIANAMIMEMediaType="urn:un:unece:uncefact:codelist:specification:IANAMIMEMediaType:2003" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2">base64Binary</xsd:BuiltinType>
 * 
* * *

Java class for GraphicType complex type. * *

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

 * <complexType name="GraphicType">
 *   <simpleContent>
 *     <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary">
 *       <attribute name="format" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="mimeCode" use="required" type="{urn:un:unece:uncefact:codelist:specification:IANAMIMEMediaType:2003}BinaryObjectMimeCodeContentType" />
 *       <attribute name="encodingCode" type="{http://www.w3.org/2001/XMLSchema}normalizedString" />
 *       <attribute name="uri" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
 *       <attribute name="filename" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </extension>
 *   </simpleContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "GraphicType", propOrder = { "value" }) public class GraphicType implements Serializable { @XmlValue private byte[] value; @XmlAttribute(name = "format") private String format; @XmlAttribute(name = "mimeCode", required = true) private BinaryObjectMimeCodeContentType mimeCode; @XmlAttribute(name = "encodingCode") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) @XmlSchemaType(name = "normalizedString") private String encodingCode; @XmlAttribute(name = "uri") @XmlSchemaType(name = "anyURI") private String uri; @XmlAttribute(name = "filename") private String filename; /** * Default constructor * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * */ public GraphicType() { } /** * Constructor for value of type byte[] * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. */ public GraphicType( @Nullable final byte[] valueParam) { setValue(valueParam); } /** * 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[] valueParam) { this.value = valueParam; } /** * Gets the value of the format property. * * @return * possible object is * {@link String } * */ @Nullable public String getFormat() { return format; } /** * Sets the value of the format property. * * @param value * allowed object is * {@link String } * */ public void setFormat( @Nullable String valueParam) { this.format = valueParam; } /** * Gets the value of the mimeCode property. * * @return * possible object is * {@link BinaryObjectMimeCodeContentType } * */ @Nullable public BinaryObjectMimeCodeContentType getMimeCode() { return mimeCode; } /** * Sets the value of the mimeCode property. * * @param value * allowed object is * {@link BinaryObjectMimeCodeContentType } * */ public void setMimeCode( @Nullable BinaryObjectMimeCodeContentType valueParam) { this.mimeCode = valueParam; } /** * Gets the value of the encodingCode property. * * @return * possible object is * {@link String } * */ @Nullable public String getEncodingCode() { return encodingCode; } /** * Sets the value of the encodingCode property. * * @param value * allowed object is * {@link String } * */ public void setEncodingCode( @Nullable String valueParam) { this.encodingCode = valueParam; } /** * Gets the value of the uri property. * * @return * possible object is * {@link String } * */ @Nullable public String getUri() { return uri; } /** * Sets the value of the uri property. * * @param value * allowed object is * {@link String } * */ public void setUri( @Nullable String valueParam) { this.uri = valueParam; } /** * Gets the value of the filename property. * * @return * possible object is * {@link String } * */ @Nullable public String getFilename() { return filename; } /** * Sets the value of the filename property. * * @param value * allowed object is * {@link String } * */ public void setFilename( @Nullable String valueParam) { this.filename = valueParam; } /** * 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 GraphicType rhs = ((GraphicType) o); if (!EqualsUtils.equals(value, rhs.value)) { return false; } if (!EqualsUtils.equals(format, rhs.format)) { return false; } if (!EqualsUtils.equals(mimeCode, rhs.mimeCode)) { return false; } if (!EqualsUtils.equals(encodingCode, rhs.encodingCode)) { return false; } if (!EqualsUtils.equals(uri, rhs.uri)) { return false; } if (!EqualsUtils.equals(filename, rhs.filename)) { return false; } return true; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(value).append(format).append(mimeCode).append(encodingCode).append(uri).append(filename).getHashCode(); } /** * Created by phloc-jaxb22-plugin -Xphloc-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("value", value).append("format", format).append("mimeCode", mimeCode).append("encodingCode", encodingCode).append("uri", uri).append("filename", filename).toString(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy