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

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


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

import java.io.Serializable;
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 javax.xml.datatype.XMLGregorianCalendar;
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.ManufactureDateType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ManufactureTimeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ProductTraceIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.RegistrationIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.SerialIDType;


/**
 * 
 * 
 * <?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>Item Instance. Details</ccts:DictionaryEntryName><ccts:Definition>Information about a specific instance of an item.</ccts:Definition><ccts:ObjectClass>Item Instance</ccts:ObjectClass></ccts:Component>
 * 
* * *

Java class for ItemInstanceType complex type. * *

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

 * <complexType name="ItemInstanceType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ProductTraceID" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ManufactureDate" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ManufactureTime" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}RegistrationID" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}SerialID" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}AdditionalItemProperty" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}LotIdentification" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ItemInstanceType", propOrder = { "productTraceID", "manufactureDate", "manufactureTime", "registrationID", "serialID", "additionalItemProperty", "lotIdentification" }) public class ItemInstanceType implements Serializable { @XmlElement(name = "ProductTraceID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private ProductTraceIDType productTraceID; @XmlElement(name = "ManufactureDate", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private ManufactureDateType manufactureDate; @XmlElement(name = "ManufactureTime", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private ManufactureTimeType manufactureTime; @XmlElement(name = "RegistrationID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private RegistrationIDType registrationID; @XmlElement(name = "SerialID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private SerialIDType serialID; @XmlElement(name = "AdditionalItemProperty") private List additionalItemProperty; @XmlElement(name = "LotIdentification") private LotIdentificationType lotIdentification; /** * Default constructor * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * */ public ItemInstanceType() { } /** * *
     * <?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>Item Instance. Product Trace_ Identifier. Identifier</ccts:DictionaryEntryName><ccts:Definition>An identifier used for tracing the item, such as the EPC number used in RFID.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Item Instance</ccts:ObjectClass><ccts:PropertyTermQualifier>Product Trace</ccts:PropertyTermQualifier><ccts:PropertyTerm>Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link ProductTraceIDType } * */ @Nullable public ProductTraceIDType getProductTraceID() { return productTraceID; } /** * Sets the value of the productTraceID property. * * @param value * allowed object is * {@link ProductTraceIDType } * */ public void setProductTraceID( @Nullable ProductTraceIDType value) { this.productTraceID = 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>Item Instance. Manufacture Date. Date</ccts:DictionaryEntryName><ccts:Definition>The date of manufacture of the Item Instance.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Item Instance</ccts:ObjectClass><ccts:PropertyTerm>Manufacture Date</ccts:PropertyTerm><ccts:RepresentationTerm>Date</ccts:RepresentationTerm><ccts:DataType>Date. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link ManufactureDateType } * */ @Nullable public ManufactureDateType getManufactureDate() { return manufactureDate; } /** * Sets the value of the manufactureDate property. * * @param value * allowed object is * {@link ManufactureDateType } * */ public void setManufactureDate( @Nullable ManufactureDateType value) { this.manufactureDate = 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>Item Instance. Manufacture Time. Time</ccts:DictionaryEntryName><ccts:Definition>The time of manufacture of the Item Instance.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Item Instance</ccts:ObjectClass><ccts:PropertyTerm>Manufacture Time</ccts:PropertyTerm><ccts:RepresentationTerm>Time</ccts:RepresentationTerm><ccts:DataType>Time. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link ManufactureTimeType } * */ @Nullable public ManufactureTimeType getManufactureTime() { return manufactureTime; } /** * Sets the value of the manufactureTime property. * * @param value * allowed object is * {@link ManufactureTimeType } * */ public void setManufactureTime( @Nullable ManufactureTimeType value) { this.manufactureTime = 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>Item Instance. Registration Identifier. Identifier</ccts:DictionaryEntryName><ccts:Definition>The registration identifier of the Item Instance.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Item Instance</ccts:ObjectClass><ccts:PropertyTerm>Registration Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType><ccts:Examples>car registration or licensing number</ccts:Examples></ccts:Component>
     * 
* * * @return * possible object is * {@link RegistrationIDType } * */ @Nullable public RegistrationIDType getRegistrationID() { return registrationID; } /** * Sets the value of the registrationID property. * * @param value * allowed object is * {@link RegistrationIDType } * */ public void setRegistrationID( @Nullable RegistrationIDType value) { this.registrationID = 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>Item Instance. Serial Identifier. Identifier</ccts:DictionaryEntryName><ccts:Definition>The serial number of the Item Instance.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Item Instance</ccts:ObjectClass><ccts:PropertyTerm>Serial Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType><ccts:Examples>chassis number of a car</ccts:Examples></ccts:Component>
     * 
* * * @return * possible object is * {@link SerialIDType } * */ @Nullable public SerialIDType getSerialID() { return serialID; } /** * Sets the value of the serialID property. * * @param value * allowed object is * {@link SerialIDType } * */ public void setSerialID( @Nullable SerialIDType value) { this.serialID = 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>Item Instance. Additional_ Item Property. Item Property</ccts:DictionaryEntryName><ccts:Definition>An association to Additional Item Property.</ccts:Definition><ccts:Cardinality>0..n</ccts:Cardinality><ccts:ObjectClass>Item Instance</ccts:ObjectClass><ccts:PropertyTermQualifier>Additional</ccts:PropertyTermQualifier><ccts:PropertyTerm>Item Property</ccts:PropertyTerm><ccts:AssociatedObjectClass>Item Property</ccts:AssociatedObjectClass></ccts:Component>
     * 
* Gets the value of the additionalItemProperty 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 additionalItemProperty property. * *

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

     *    getAdditionalItemProperty().add(newItem);
     * 
* * *

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

     * <?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>Item Instance. Lot Identification</ccts:DictionaryEntryName><ccts:Definition>Associates the item instance with its lot identification (the identification that allows recall of the item if necessary).</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Item Instance</ccts:ObjectClass><ccts:PropertyTerm>Lot Identification</ccts:PropertyTerm><ccts:AssociatedObjectClass>Lot Identification</ccts:AssociatedObjectClass></ccts:Component>
     * 
* * * @return * possible object is * {@link LotIdentificationType } * */ @Nullable public LotIdentificationType getLotIdentification() { return lotIdentification; } /** * Sets the value of the lotIdentification property. * * @param value * allowed object is * {@link LotIdentificationType } * */ public void setLotIdentification( @Nullable LotIdentificationType value) { this.lotIdentification = 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 ItemInstanceType rhs = ((ItemInstanceType) o); if (!EqualsUtils.equals(productTraceID, rhs.productTraceID)) { return false; } if (!EqualsUtils.equals(manufactureDate, rhs.manufactureDate)) { return false; } if (!EqualsUtils.equals(manufactureTime, rhs.manufactureTime)) { return false; } if (!EqualsUtils.equals(registrationID, rhs.registrationID)) { return false; } if (!EqualsUtils.equals(serialID, rhs.serialID)) { return false; } if (!EqualsUtils.equals(additionalItemProperty, rhs.additionalItemProperty)) { return false; } if (!EqualsUtils.equals(lotIdentification, rhs.lotIdentification)) { return false; } return true; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(productTraceID).append(manufactureDate).append(manufactureTime).append(registrationID).append(serialID).append(additionalItemProperty).append(lotIdentification).getHashCode(); } /** * Created by phloc-jaxb22-plugin -Xphloc-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("productTraceID", productTraceID).append("manufactureDate", manufactureDate).append("manufactureTime", manufactureTime).append("registrationID", registrationID).append("serialID", serialID).append("additionalItemProperty", additionalItemProperty).append("lotIdentification", lotIdentification).toString(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @param aList * The new list member to set. May be null. */ public void setAdditionalItemProperty( @Nullable final List aList) { additionalItemProperty = aList; } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * true if at least one item is contained, false otherwise. */ public boolean hasAdditionalItemPropertyEntries() { return (!getAdditionalItemProperty().isEmpty()); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * true if no item is contained, false otherwise. */ public boolean hasNoAdditionalItemPropertyEntries() { return getAdditionalItemProperty().isEmpty(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * The number of contained elements. Always ≥ 0. */ @Nonnegative public int getAdditionalItemPropertyCount() { return getAdditionalItemProperty().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 ItemPropertyType getAdditionalItemPropertyAtIndex( @Nonnegative final int index) { return getAdditionalItemProperty().get(index); } /** * Special setter with value of type XMLGregorianCalendar * 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 ManufactureTimeType and never null */ @Nonnull public ManufactureTimeType setManufactureTime( @Nullable final XMLGregorianCalendar valueParam) { ManufactureTimeType aObj = getManufactureTime(); if (aObj == null) { aObj = new ManufactureTimeType(valueParam); setManufactureTime(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type XMLGregorianCalendar * 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 ManufactureDateType and never null */ @Nonnull public ManufactureDateType setManufactureDate( @Nullable final XMLGregorianCalendar valueParam) { ManufactureDateType aObj = getManufactureDate(); if (aObj == null) { aObj = new ManufactureDateType(valueParam); setManufactureDate(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 ProductTraceIDType and never null */ @Nonnull public ProductTraceIDType setProductTraceID( @Nullable final String valueParam) { ProductTraceIDType aObj = getProductTraceID(); if (aObj == null) { aObj = new ProductTraceIDType(valueParam); setProductTraceID(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 RegistrationIDType and never null */ @Nonnull public RegistrationIDType setRegistrationID( @Nullable final String valueParam) { RegistrationIDType aObj = getRegistrationID(); if (aObj == null) { aObj = new RegistrationIDType(valueParam); setRegistrationID(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 SerialIDType and never null */ @Nonnull public SerialIDType setSerialID( @Nullable final String valueParam) { SerialIDType aObj = getSerialID(); if (aObj == null) { aObj = new SerialIDType(valueParam); setSerialID(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Get the value of the contained ProductTraceIDType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained ProductTraceIDType object or null */ @Nullable public String getProductTraceIDValue() { ProductTraceIDType aObj = getProductTraceID(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained ManufactureDateType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained ManufactureDateType object or null */ @Nullable public XMLGregorianCalendar getManufactureDateValue() { ManufactureDateType aObj = getManufactureDate(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained ManufactureTimeType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained ManufactureTimeType object or null */ @Nullable public XMLGregorianCalendar getManufactureTimeValue() { ManufactureTimeType aObj = getManufactureTime(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained RegistrationIDType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained RegistrationIDType object or null */ @Nullable public String getRegistrationIDValue() { RegistrationIDType aObj = getRegistrationID(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained SerialIDType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained SerialIDType object or null */ @Nullable public String getSerialIDValue() { SerialIDType aObj = getSerialID(); return ((aObj == null)?null:aObj.getValue()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy