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

oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.LotIdentificationType 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.ExpiryDateType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.LotNumberIDType;


/**
 * 
 * 
 * <?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>Lot Identification. Details</ccts:DictionaryEntryName><ccts:Definition>Information about a lot (of Item Instances).</ccts:Definition><ccts:ObjectClass>Lot Identification</ccts:ObjectClass></ccts:Component>
 * 
* * *

Java class for LotIdentificationType complex type. * *

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

 * <complexType name="LotIdentificationType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}LotNumberID" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ExpiryDate" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}AdditionalItemProperty" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "LotIdentificationType", propOrder = { "lotNumberID", "expiryDate", "additionalItemProperty" }) public class LotIdentificationType implements Serializable { @XmlElement(name = "LotNumberID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private LotNumberIDType lotNumberID; @XmlElement(name = "ExpiryDate", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private ExpiryDateType expiryDate; @XmlElement(name = "AdditionalItemProperty") private List additionalItemProperty; /** * Default constructor * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * */ public LotIdentificationType() { } /** * *
     * <?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>Lot Identification. Lot Number. Identifier</ccts:DictionaryEntryName><ccts:Definition>Identifies the lot.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Lot Identification</ccts:ObjectClass><ccts:PropertyTerm>Lot Number</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link LotNumberIDType } * */ @Nullable public LotNumberIDType getLotNumberID() { return lotNumberID; } /** * Sets the value of the lotNumberID property. * * @param value * allowed object is * {@link LotNumberIDType } * */ public void setLotNumberID( @Nullable LotNumberIDType value) { this.lotNumberID = 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>Lot Identification. Expiry Date. Date</ccts:DictionaryEntryName><ccts:Definition>The expiry date of the lot.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Lot Identification</ccts:ObjectClass><ccts:PropertyTerm>Expiry Date</ccts:PropertyTerm><ccts:RepresentationTerm>Date</ccts:RepresentationTerm><ccts:DataType>Date. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link ExpiryDateType } * */ @Nullable public ExpiryDateType getExpiryDate() { return expiryDate; } /** * Sets the value of the expiryDate property. * * @param value * allowed object is * {@link ExpiryDateType } * */ public void setExpiryDate( @Nullable ExpiryDateType value) { this.expiryDate = 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>Lot Identification. 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>Lot Identification</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; } /** * 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 LotIdentificationType rhs = ((LotIdentificationType) o); if (!EqualsUtils.equals(lotNumberID, rhs.lotNumberID)) { return false; } if (!EqualsUtils.equals(expiryDate, rhs.expiryDate)) { return false; } if (!EqualsUtils.equals(additionalItemProperty, rhs.additionalItemProperty)) { return false; } return true; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(lotNumberID).append(expiryDate).append(additionalItemProperty).getHashCode(); } /** * Created by phloc-jaxb22-plugin -Xphloc-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("lotNumberID", lotNumberID).append("expiryDate", expiryDate).append("additionalItemProperty", additionalItemProperty).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 ExpiryDateType and never null */ @Nonnull public ExpiryDateType setExpiryDate( @Nullable final XMLGregorianCalendar valueParam) { ExpiryDateType aObj = getExpiryDate(); if (aObj == null) { aObj = new ExpiryDateType(valueParam); setExpiryDate(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 LotNumberIDType and never null */ @Nonnull public LotNumberIDType setLotNumberID( @Nullable final String valueParam) { LotNumberIDType aObj = getLotNumberID(); if (aObj == null) { aObj = new LotNumberIDType(valueParam); setLotNumberID(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Get the value of the contained LotNumberIDType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained LotNumberIDType object or null */ @Nullable public String getLotNumberIDValue() { LotNumberIDType aObj = getLotNumberID(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained ExpiryDateType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained ExpiryDateType object or null */ @Nullable public XMLGregorianCalendar getExpiryDateValue() { ExpiryDateType aObj = getExpiryDate(); return ((aObj == null)?null:aObj.getValue()); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy