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

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


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

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nonnegative;
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.annotations.ReturnsMutableObject;
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.IDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PackageLevelCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PackagingTypeCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PackingMaterialType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.QuantityType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ReturnableMaterialIndicatorType;


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

Java class for PackageType complex type. * *

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

 * <complexType name="PackageType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ID" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Quantity" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ReturnableMaterialIndicator" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PackageLevelCode" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PackagingTypeCode" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PackingMaterial" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}ContainedPackage" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}GoodsItem" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}MeasurementDimension" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}DeliveryUnit" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "PackageType", propOrder = { "id", "quantity", "returnableMaterialIndicator", "packageLevelCode", "packagingTypeCode", "packingMaterial", "containedPackage", "goodsItem", "measurementDimension", "deliveryUnit" }) public class PackageType implements Serializable { @XmlElement(name = "ID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private IDType id; @XmlElement(name = "Quantity", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private QuantityType quantity; @XmlElement(name = "ReturnableMaterialIndicator", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private ReturnableMaterialIndicatorType returnableMaterialIndicator; @XmlElement(name = "PackageLevelCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private PackageLevelCodeType packageLevelCode; @XmlElement(name = "PackagingTypeCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private PackagingTypeCodeType packagingTypeCode; @XmlElement(name = "PackingMaterial", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private List packingMaterial; @XmlElement(name = "ContainedPackage") private List containedPackage; @XmlElement(name = "GoodsItem") private List goodsItem; @XmlElement(name = "MeasurementDimension") private List measurementDimension; @XmlElement(name = "DeliveryUnit") private List deliveryUnit; /** * Default constructor * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * */ public PackageType() { } /** * *
     * <?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>Package. Identifier</ccts:DictionaryEntryName><ccts:Definition>Identifies the package.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Package</ccts:ObjectClass><ccts:PropertyTerm>Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link IDType } * */ @Nullable public IDType getID() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link IDType } * */ public void setID( @Nullable IDType value) { this.id = 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>Package. Quantity</ccts:DictionaryEntryName><ccts:Definition>The quantity (of items) contained in the package.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Package</ccts:ObjectClass><ccts:PropertyTerm>Quantity</ccts:PropertyTerm><ccts:RepresentationTerm>Quantity</ccts:RepresentationTerm><ccts:DataType>Quantity. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link QuantityType } * */ @Nullable public QuantityType getQuantity() { return quantity; } /** * Sets the value of the quantity property. * * @param value * allowed object is * {@link QuantityType } * */ public void setQuantity( @Nullable QuantityType value) { this.quantity = 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>Package. Returnable Material_ Indicator. Indicator</ccts:DictionaryEntryName><ccts:Definition>Indicates whether the packaging material is returnable (true) or not (false).</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Package</ccts:ObjectClass><ccts:PropertyTermQualifier>Returnable Material</ccts:PropertyTermQualifier><ccts:PropertyTerm>Indicator</ccts:PropertyTerm><ccts:RepresentationTerm>Indicator</ccts:RepresentationTerm><ccts:DataType>Indicator. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link ReturnableMaterialIndicatorType } * */ @Nullable public ReturnableMaterialIndicatorType getReturnableMaterialIndicator() { return returnableMaterialIndicator; } /** * Sets the value of the returnableMaterialIndicator property. * * @param value * allowed object is * {@link ReturnableMaterialIndicatorType } * */ public void setReturnableMaterialIndicator( @Nullable ReturnableMaterialIndicatorType value) { this.returnableMaterialIndicator = 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>Package. Package Level Code. Code</ccts:DictionaryEntryName><ccts:Definition>Code specifying a level of packaging.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Package</ccts:ObjectClass><ccts:PropertyTerm>Package Level Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Code. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link PackageLevelCodeType } * */ @Nullable public PackageLevelCodeType getPackageLevelCode() { return packageLevelCode; } /** * Sets the value of the packageLevelCode property. * * @param value * allowed object is * {@link PackageLevelCodeType } * */ public void setPackageLevelCode( @Nullable PackageLevelCodeType value) { this.packageLevelCode = 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>Package. Packaging Type Code. Code</ccts:DictionaryEntryName><ccts:Definition>Code specifying the type of packaging of an item.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Package</ccts:ObjectClass><ccts:PropertyTerm>Packaging Type Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Packaging Type_ Code. Type</ccts:DataType><ccts:AlternativeBusinessTerms>Package classification code</ccts:AlternativeBusinessTerms></ccts:Component>
     * 
* * * @return * possible object is * {@link PackagingTypeCodeType } * */ @Nullable public PackagingTypeCodeType getPackagingTypeCode() { return packagingTypeCode; } /** * Sets the value of the packagingTypeCode property. * * @param value * allowed object is * {@link PackagingTypeCodeType } * */ public void setPackagingTypeCode( @Nullable PackagingTypeCodeType value) { this.packagingTypeCode = 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>Package. Packing Material. Text</ccts:DictionaryEntryName><ccts:Definition>Description of the type of packaging of an item.</ccts:Definition><ccts:Cardinality>0..n</ccts:Cardinality><ccts:ObjectClass>Package</ccts:ObjectClass><ccts:PropertyTerm>Packing Material</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType></ccts:Component>
     * 
* Gets the value of the packingMaterial property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the packingMaterial property. * *

* For example, to add a new item, do as follows: *

     *    getPackingMaterial().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link PackingMaterialType } * * */ @Nonnull @ReturnsMutableObject(reason = "JAXB implementation style") public List getPackingMaterial() { if (packingMaterial == null) { packingMaterial = new ArrayList(); } return this.packingMaterial; } /** * *

     * <?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>Package. Contained_ Package. Package</ccts:DictionaryEntryName><ccts:Definition>An association to Contained Package; used to describe a package within a package.</ccts:Definition><ccts:Cardinality>0..n</ccts:Cardinality><ccts:ObjectClass>Package</ccts:ObjectClass><ccts:PropertyTermQualifier>Contained</ccts:PropertyTermQualifier><ccts:PropertyTerm>Package</ccts:PropertyTerm><ccts:AssociatedObjectClass>Package</ccts:AssociatedObjectClass></ccts:Component>
     * 
* Gets the value of the containedPackage property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the containedPackage property. * *

* For example, to add a new item, do as follows: *

     *    getContainedPackage().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link PackageType } * * */ @Nonnull @ReturnsMutableObject(reason = "JAXB implementation style") public List getContainedPackage() { if (containedPackage == null) { containedPackage = new ArrayList(); } return this.containedPackage; } /** * *

     * <?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>Package. Goods Item</ccts:DictionaryEntryName><ccts:Definition>An association to Goods Item.</ccts:Definition><ccts:Cardinality>0..n</ccts:Cardinality><ccts:ObjectClass>Package</ccts:ObjectClass><ccts:PropertyTerm>Goods Item</ccts:PropertyTerm><ccts:AssociatedObjectClass>Goods Item</ccts:AssociatedObjectClass></ccts:Component>
     * 
* Gets the value of the goodsItem property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the goodsItem property. * *

* For example, to add a new item, do as follows: *

     *    getGoodsItem().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link GoodsItemType } * * */ @Nonnull @ReturnsMutableObject(reason = "JAXB implementation style") public List getGoodsItem() { if (goodsItem == null) { goodsItem = new ArrayList(); } return this.goodsItem; } /** * *

     * <?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>Package. Measurement_ Dimension. Dimension</ccts:DictionaryEntryName><ccts:Definition>An association to describe the measurement dimensions of the package.</ccts:Definition><ccts:Cardinality>0..n</ccts:Cardinality><ccts:ObjectClass>Package</ccts:ObjectClass><ccts:PropertyTermQualifier>Measurement</ccts:PropertyTermQualifier><ccts:PropertyTerm>Dimension</ccts:PropertyTerm><ccts:AssociatedObjectClass>Dimension</ccts:AssociatedObjectClass></ccts:Component>
     * 
* Gets the value of the measurementDimension property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the measurementDimension property. * *

* For example, to add a new item, do as follows: *

     *    getMeasurementDimension().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link DimensionType } * * */ @Nonnull @ReturnsMutableObject(reason = "JAXB implementation style") public List getMeasurementDimension() { if (measurementDimension == null) { measurementDimension = new ArrayList(); } return this.measurementDimension; } /** * *

     * <?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>Package. Delivery Unit</ccts:DictionaryEntryName><ccts:Definition>An association to Delivery Units in the package.</ccts:Definition><ccts:Cardinality>0..n</ccts:Cardinality><ccts:ObjectClass>Package</ccts:ObjectClass><ccts:PropertyTerm>Delivery Unit</ccts:PropertyTerm><ccts:AssociatedObjectClass>Delivery Unit</ccts:AssociatedObjectClass></ccts:Component>
     * 
* Gets the value of the deliveryUnit property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the deliveryUnit property. * *

* For example, to add a new item, do as follows: *

     *    getDeliveryUnit().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link DeliveryUnitType } * * */ @Nonnull @ReturnsMutableObject(reason = "JAXB implementation style") public List getDeliveryUnit() { if (deliveryUnit == null) { deliveryUnit = new ArrayList(); } return this.deliveryUnit; } /** * 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 PackageType rhs = ((PackageType) o); if (!EqualsUtils.equals(id, rhs.id)) { return false; } if (!EqualsUtils.equals(quantity, rhs.quantity)) { return false; } if (!EqualsUtils.equals(returnableMaterialIndicator, rhs.returnableMaterialIndicator)) { return false; } if (!EqualsUtils.equals(packageLevelCode, rhs.packageLevelCode)) { return false; } if (!EqualsUtils.equals(packagingTypeCode, rhs.packagingTypeCode)) { return false; } if (!EqualsUtils.equals(packingMaterial, rhs.packingMaterial)) { return false; } if (!EqualsUtils.equals(containedPackage, rhs.containedPackage)) { return false; } if (!EqualsUtils.equals(goodsItem, rhs.goodsItem)) { return false; } if (!EqualsUtils.equals(measurementDimension, rhs.measurementDimension)) { return false; } if (!EqualsUtils.equals(deliveryUnit, rhs.deliveryUnit)) { return false; } return true; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(id).append(quantity).append(returnableMaterialIndicator).append(packageLevelCode).append(packagingTypeCode).append(packingMaterial).append(containedPackage).append(goodsItem).append(measurementDimension).append(deliveryUnit).getHashCode(); } /** * Created by phloc-jaxb22-plugin -Xphloc-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("id", id).append("quantity", quantity).append("returnableMaterialIndicator", returnableMaterialIndicator).append("packageLevelCode", packageLevelCode).append("packagingTypeCode", packagingTypeCode).append("packingMaterial", packingMaterial).append("containedPackage", containedPackage).append("goodsItem", goodsItem).append("measurementDimension", measurementDimension).append("deliveryUnit", deliveryUnit).toString(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @param aList * The new list member to set. May be null. */ public void setPackingMaterial( @Nullable final List aList) { packingMaterial = aList; } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @param aList * The new list member to set. May be null. */ public void setContainedPackage( @Nullable final List aList) { containedPackage = aList; } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @param aList * The new list member to set. May be null. */ public void setGoodsItem( @Nullable final List aList) { goodsItem = aList; } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @param aList * The new list member to set. May be null. */ public void setMeasurementDimension( @Nullable final List aList) { measurementDimension = aList; } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @param aList * The new list member to set. May be null. */ public void setDeliveryUnit( @Nullable final List aList) { deliveryUnit = aList; } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * true if at least one item is contained, false otherwise. */ public boolean hasPackingMaterialEntries() { return (!getPackingMaterial().isEmpty()); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * true if no item is contained, false otherwise. */ public boolean hasNoPackingMaterialEntries() { return getPackingMaterial().isEmpty(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * The number of contained elements. Always ≥ 0. */ @Nonnegative public int getPackingMaterialCount() { return getPackingMaterial().size(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @param index * The index to retrieve * @return * The element at the specified index. May be null * @throws ArrayIndexOutOfBoundsException * if the index is invalid! */ @Nullable public PackingMaterialType getPackingMaterialAtIndex( @Nonnegative final int index) { return getPackingMaterial().get(index); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * true if at least one item is contained, false otherwise. */ public boolean hasContainedPackageEntries() { return (!getContainedPackage().isEmpty()); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * true if no item is contained, false otherwise. */ public boolean hasNoContainedPackageEntries() { return getContainedPackage().isEmpty(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * The number of contained elements. Always ≥ 0. */ @Nonnegative public int getContainedPackageCount() { return getContainedPackage().size(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @param index * The index to retrieve * @return * The element at the specified index. May be null * @throws ArrayIndexOutOfBoundsException * if the index is invalid! */ @Nullable public PackageType getContainedPackageAtIndex( @Nonnegative final int index) { return getContainedPackage().get(index); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * true if at least one item is contained, false otherwise. */ public boolean hasGoodsItemEntries() { return (!getGoodsItem().isEmpty()); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * true if no item is contained, false otherwise. */ public boolean hasNoGoodsItemEntries() { return getGoodsItem().isEmpty(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * The number of contained elements. Always ≥ 0. */ @Nonnegative public int getGoodsItemCount() { return getGoodsItem().size(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @param index * The index to retrieve * @return * The element at the specified index. May be null * @throws ArrayIndexOutOfBoundsException * if the index is invalid! */ @Nullable public GoodsItemType getGoodsItemAtIndex( @Nonnegative final int index) { return getGoodsItem().get(index); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * true if at least one item is contained, false otherwise. */ public boolean hasMeasurementDimensionEntries() { return (!getMeasurementDimension().isEmpty()); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * true if no item is contained, false otherwise. */ public boolean hasNoMeasurementDimensionEntries() { return getMeasurementDimension().isEmpty(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * The number of contained elements. Always ≥ 0. */ @Nonnegative public int getMeasurementDimensionCount() { return getMeasurementDimension().size(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @param index * The index to retrieve * @return * The element at the specified index. May be null * @throws ArrayIndexOutOfBoundsException * if the index is invalid! */ @Nullable public DimensionType getMeasurementDimensionAtIndex( @Nonnegative final int index) { return getMeasurementDimension().get(index); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * true if at least one item is contained, false otherwise. */ public boolean hasDeliveryUnitEntries() { return (!getDeliveryUnit().isEmpty()); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * true if no item is contained, false otherwise. */ public boolean hasNoDeliveryUnitEntries() { return getDeliveryUnit().isEmpty(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * The number of contained elements. Always ≥ 0. */ @Nonnegative public int getDeliveryUnitCount() { return getDeliveryUnit().size(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @param index * The index to retrieve * @return * The element at the specified index. May be null * @throws ArrayIndexOutOfBoundsException * if the index is invalid! */ @Nullable public DeliveryUnitType getDeliveryUnitAtIndex( @Nonnegative final int index) { return getDeliveryUnit().get(index); } /** * Special setter with value of type boolean * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. * @return * The created intermediary object of type ReturnableMaterialIndicatorType and never null */ @Nonnull public ReturnableMaterialIndicatorType setReturnableMaterialIndicator(final boolean valueParam) { ReturnableMaterialIndicatorType aObj = getReturnableMaterialIndicator(); if (aObj == null) { aObj = new ReturnableMaterialIndicatorType(valueParam); setReturnableMaterialIndicator(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 IDType and never null */ @Nonnull public IDType setID( @Nullable final String valueParam) { IDType aObj = getID(); if (aObj == null) { aObj = new IDType(valueParam); setID(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 PackageLevelCodeType and never null */ @Nonnull public PackageLevelCodeType setPackageLevelCode( @Nullable final String valueParam) { PackageLevelCodeType aObj = getPackageLevelCode(); if (aObj == null) { aObj = new PackageLevelCodeType(valueParam); setPackageLevelCode(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 PackagingTypeCodeType and never null */ @Nonnull public PackagingTypeCodeType setPackagingTypeCode( @Nullable final String valueParam) { PackagingTypeCodeType aObj = getPackagingTypeCode(); if (aObj == null) { aObj = new PackagingTypeCodeType(valueParam); setPackagingTypeCode(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type BigDecimal * 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 QuantityType and never null */ @Nonnull public QuantityType setQuantity( @Nullable final BigDecimal valueParam) { QuantityType aObj = getQuantity(); if (aObj == null) { aObj = new QuantityType(valueParam); setQuantity(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Get the value of the contained IDType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained IDType object or null */ @Nullable public String getIDValue() { IDType aObj = getID(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained QuantityType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained QuantityType object or null */ @Nullable public BigDecimal getQuantityValue() { QuantityType aObj = getQuantity(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained ReturnableMaterialIndicatorType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param nullValue * The value to be returned, if the owning object is nullnull */ @Nullable public String getPackageLevelCodeValue() { PackageLevelCodeType aObj = getPackageLevelCode(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained PackagingTypeCodeType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained PackagingTypeCodeType object or null */ @Nullable public String getPackagingTypeCodeValue() { PackagingTypeCodeType aObj = getPackagingTypeCode(); return ((aObj == null)?null:aObj.getValue()); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy