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

oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.CommodityClassificationType 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.CargoTypeCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.CommodityCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ItemClassificationCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.NatureCodeType;


/**
 * 
 * 
 * <?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>Commodity Classification. Details</ccts:DictionaryEntryName><ccts:Definition>Information about Commodity Classification.</ccts:Definition><ccts:ObjectClass>Commodity Classification</ccts:ObjectClass></ccts:Component>
 * 
* * *

Java class for CommodityClassificationType complex type. * *

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

 * <complexType name="CommodityClassificationType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}NatureCode" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}CargoTypeCode" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}CommodityCode" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ItemClassificationCode" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CommodityClassificationType", propOrder = { "natureCode", "cargoTypeCode", "commodityCode", "itemClassificationCode" }) public class CommodityClassificationType implements Serializable { @XmlElement(name = "NatureCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private NatureCodeType natureCode; @XmlElement(name = "CargoTypeCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private CargoTypeCodeType cargoTypeCode; @XmlElement(name = "CommodityCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private CommodityCodeType commodityCode; @XmlElement(name = "ItemClassificationCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private ItemClassificationCodeType itemClassificationCode; /** * Default constructor * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * */ public CommodityClassificationType() { } /** * *
     * <?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>Commodity Classification. Nature Code. Code</ccts:DictionaryEntryName><ccts:Definition>The high-level nature of the Classification issued by a specific maintenance agency, expressed as a code.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Commodity Classification</ccts:ObjectClass><ccts:PropertyTerm>Nature Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Code. Type</ccts:DataType><ccts:Examples>"wooden products"</ccts:Examples></ccts:Component>
     * 
* * * @return * possible object is * {@link NatureCodeType } * */ @Nullable public NatureCodeType getNatureCode() { return natureCode; } /** * Sets the value of the natureCode property. * * @param value * allowed object is * {@link NatureCodeType } * */ public void setNatureCode( @Nullable NatureCodeType value) { this.natureCode = 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>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Commodity Classification. Cargo Type Code. Code</ccts:DictionaryEntryName><ccts:Definition>The type of cargo, expressed as a code.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Commodity Classification</ccts:ObjectClass><ccts:PropertyTerm>Cargo Type Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Code. Type</ccts:DataType><ccts:Examples>"Refrigerated"</ccts:Examples></ccts:Component>
     * 
* * * @return * possible object is * {@link CargoTypeCodeType } * */ @Nullable public CargoTypeCodeType getCargoTypeCode() { return cargoTypeCode; } /** * Sets the value of the cargoTypeCode property. * * @param value * allowed object is * {@link CargoTypeCodeType } * */ public void setCargoTypeCode( @Nullable CargoTypeCodeType value) { this.cargoTypeCode = 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>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Commodity Classification. Commodity Code. Code</ccts:DictionaryEntryName><ccts:Definition>The harmonized international commodity code for regulatory (customs and trade statistics) purposes.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Commodity Classification</ccts:ObjectClass><ccts:PropertyTerm>Commodity Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Code. Type</ccts:DataType><ccts:AlternativeBusinessTerms>Harmonized Code</ccts:AlternativeBusinessTerms><ccts:Examples>"1102222883"</ccts:Examples></ccts:Component>
     * 
* * * @return * possible object is * {@link CommodityCodeType } * */ @Nullable public CommodityCodeType getCommodityCode() { return commodityCode; } /** * Sets the value of the commodityCode property. * * @param value * allowed object is * {@link CommodityCodeType } * */ public void setCommodityCode( @Nullable CommodityCodeType value) { this.commodityCode = 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>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Commodity Classification. Item Classification Code. Code</ccts:DictionaryEntryName><ccts:Definition>The trade commodity classification, expressed as a code.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Commodity Classification</ccts:ObjectClass><ccts:PropertyTerm>Item Classification Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Code. Type</ccts:DataType><ccts:AlternativeBusinessTerms>UN/SPSC Code</ccts:AlternativeBusinessTerms><ccts:Examples>"3440234"</ccts:Examples></ccts:Component>
     * 
* * * @return * possible object is * {@link ItemClassificationCodeType } * */ @Nullable public ItemClassificationCodeType getItemClassificationCode() { return itemClassificationCode; } /** * Sets the value of the itemClassificationCode property. * * @param value * allowed object is * {@link ItemClassificationCodeType } * */ public void setItemClassificationCode( @Nullable ItemClassificationCodeType value) { this.itemClassificationCode = 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 CommodityClassificationType rhs = ((CommodityClassificationType) o); if (!EqualsUtils.equals(natureCode, rhs.natureCode)) { return false; } if (!EqualsUtils.equals(cargoTypeCode, rhs.cargoTypeCode)) { return false; } if (!EqualsUtils.equals(commodityCode, rhs.commodityCode)) { return false; } if (!EqualsUtils.equals(itemClassificationCode, rhs.itemClassificationCode)) { return false; } return true; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(natureCode).append(cargoTypeCode).append(commodityCode).append(itemClassificationCode).getHashCode(); } /** * Created by phloc-jaxb22-plugin -Xphloc-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("natureCode", natureCode).append("cargoTypeCode", cargoTypeCode).append("commodityCode", commodityCode).append("itemClassificationCode", itemClassificationCode).toString(); } /** * Special setter with value of type String * 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 NatureCodeType and never null */ @Nonnull public NatureCodeType setNatureCode( @Nullable final String valueParam) { NatureCodeType aObj = getNatureCode(); if (aObj == null) { aObj = new NatureCodeType(valueParam); setNatureCode(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type String * 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 CargoTypeCodeType and never null */ @Nonnull public CargoTypeCodeType setCargoTypeCode( @Nullable final String valueParam) { CargoTypeCodeType aObj = getCargoTypeCode(); if (aObj == null) { aObj = new CargoTypeCodeType(valueParam); setCargoTypeCode(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type String * 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 CommodityCodeType and never null */ @Nonnull public CommodityCodeType setCommodityCode( @Nullable final String valueParam) { CommodityCodeType aObj = getCommodityCode(); if (aObj == null) { aObj = new CommodityCodeType(valueParam); setCommodityCode(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type String * 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 ItemClassificationCodeType and never null */ @Nonnull public ItemClassificationCodeType setItemClassificationCode( @Nullable final String valueParam) { ItemClassificationCodeType aObj = getItemClassificationCode(); if (aObj == null) { aObj = new ItemClassificationCodeType(valueParam); setItemClassificationCode(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Get the value of the contained NatureCodeType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained NatureCodeType object or null */ @Nullable public String getNatureCodeValue() { NatureCodeType aObj = getNatureCode(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained CargoTypeCodeType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained CargoTypeCodeType object or null */ @Nullable public String getCargoTypeCodeValue() { CargoTypeCodeType aObj = getCargoTypeCode(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained CommodityCodeType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained CommodityCodeType object or null */ @Nullable public String getCommodityCodeValue() { CommodityCodeType aObj = getCommodityCode(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained ItemClassificationCodeType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained ItemClassificationCodeType object or null */ @Nullable public String getItemClassificationCodeValue() { ItemClassificationCodeType aObj = getItemClassificationCode(); return ((aObj == null)?null:aObj.getValue()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy