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

eu.fispace.api.ag.BasicTraceabilityInformationRequest Maven / Gradle / Ivy

The newest version!
//
// Este archivo ha sido generado por la arquitectura JavaTM para la implantación de la referencia de enlace (JAXB) XML v2.2.7 
// Visite http://java.sun.com/xml/jaxb 
// Todas las modificaciones realizadas en este archivo se perderán si se vuelve a compilar el esquema de origen. 
// Generado el: 2016.06.30 a las 10:15:50 PM CEST 
//


package eu.fispace.api.ag;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import eu.limetri.ygg.api.RequestMessage;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;


/**
 * 
 *                     This class represents the request for ........
 * 
 *                     The requester will send this information to the B2B engine,
 *                     which will forward it to the FMIS
 *                 
 * 
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "productBarcode",
    "lotId"
})
@XmlRootElement(name = "BasicTraceabilityInformationRequest")
public class BasicTraceabilityInformationRequest
    extends RequestMessage
    implements Serializable, ToString
{

    @XmlElement(name = "ProductBarcode", required = true)
    protected String productBarcode;
    @XmlElement(name = "LotId", required = true)
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    @XmlID
    @XmlSchemaType(name = "ID")
    protected String lotId;

    /**
     * Obtiene el valor de la propiedad productBarcode.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getProductBarcode() {
        return productBarcode;
    }

    /**
     * Define el valor de la propiedad productBarcode.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setProductBarcode(String value) {
        this.productBarcode = value;
    }

    public boolean isSetProductBarcode() {
        return (this.productBarcode!= null);
    }

    /**
     * Obtiene el valor de la propiedad lotId.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getLotId() {
        return lotId;
    }

    /**
     * Define el valor de la propiedad lotId.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setLotId(String value) {
        this.lotId = value;
    }

    public boolean isSetLotId() {
        return (this.lotId!= null);
    }

    public String toString() {
        final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
        final StringBuilder buffer = new StringBuilder();
        append(null, buffer, strategy);
        return buffer.toString();
    }

    public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
        strategy.appendStart(locator, this, buffer);
        appendFields(locator, buffer, strategy);
        strategy.appendEnd(locator, this, buffer);
        return buffer;
    }

    public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
        super.appendFields(locator, buffer, strategy);
        {
            String theProductBarcode;
            theProductBarcode = this.getProductBarcode();
            strategy.appendField(locator, this, "productBarcode", buffer, theProductBarcode);
        }
        {
            String theLotId;
            theLotId = this.getLotId();
            strategy.appendField(locator, this, "lotId", buffer, theLotId);
        }
        return buffer;
    }

    public BasicTraceabilityInformationRequest withProductBarcode(String value) {
        setProductBarcode(value);
        return this;
    }

    public BasicTraceabilityInformationRequest withLotId(String value) {
        setLotId(value);
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy