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

eu.fispace.api.lg.ReceiveRTIStatusRequestMessage Maven / Gradle / Ivy

There is a newer version: 0.17.5
Show 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.05.31 a las 10:59:27 PM CEST 
//


package eu.fispace.api.lg;

import java.io.Serializable;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
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;


/**
 * 
 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 * !!!                  BEWARE OF THE LEOPARD                   !!!
 * !!!       This is a quick and dirty workaround for RM3       !!!
 * !!! Under no circumstances should anyone try and do the same !!!
 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 * 
 * FIXME !!!
 * 
 * This class represents a message that reports a status change of a shipment's RTIs.
 * ... TODO ...
 * 				
 * 
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "status",
    "reason"
})
@XmlRootElement(name = "ReceiveRTIStatusRequestMessage")
public class ReceiveRTIStatusRequestMessage
    extends PIAPushMessageType
    implements Serializable, ToString
{

    @XmlElement(required = true, nillable = true)
    protected ShipmentStatusType status;
    @XmlElementRef(name = "reason", type = JAXBElement.class, required = false)
    protected JAXBElement reason;

    /**
     * Obtiene el valor de la propiedad status.
     * 
     * @return
     *     possible object is
     *     {@link ShipmentStatusType }
     *     
     */
    public ShipmentStatusType getStatus() {
        return status;
    }

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

    public boolean isSetStatus() {
        return (this.status!= null);
    }

    /**
     * Obtiene el valor de la propiedad reason.
     * 
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *     
     */
    public JAXBElement getReason() {
        return reason;
    }

    /**
     * Define el valor de la propiedad reason.
     * 
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *     
     */
    public void setReason(JAXBElement value) {
        this.reason = value;
    }

    public boolean isSetReason() {
        return (this.reason!= 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);
        {
            ShipmentStatusType theStatus;
            theStatus = this.getStatus();
            strategy.appendField(locator, this, "status", buffer, theStatus);
        }
        {
            JAXBElement theReason;
            theReason = this.getReason();
            strategy.appendField(locator, this, "reason", buffer, theReason);
        }
        return buffer;
    }

    public ReceiveRTIStatusRequestMessage withStatus(ShipmentStatusType value) {
        setStatus(value);
        return this;
    }

    public ReceiveRTIStatusRequestMessage withReason(JAXBElement value) {
        setReason(value);
        return this;
    }

    @Override
    public ReceiveRTIStatusRequestMessage withShipmentId(String value) {
        setShipmentId(value);
        return this;
    }

    @Override
    public ReceiveRTIStatusRequestMessage withShipmentDataLink(String value) {
        setShipmentDataLink(value);
        return this;
    }

    @Override
    public ReceiveRTIStatusRequestMessage withMessageId(String value) {
        setMessageId(value);
        return this;
    }

    @Override
    public ReceiveRTIStatusRequestMessage withSenderId(String value) {
        setSenderId(value);
        return this;
    }

    @Override
    public ReceiveRTIStatusRequestMessage withReceiverId(String value) {
        setReceiverId(value);
        return this;
    }

    @Override
    public ReceiveRTIStatusRequestMessage withSenderAppType(String value) {
        setSenderAppType(value);
        return this;
    }

    @Override
    public ReceiveRTIStatusRequestMessage withReceiverAppType(String value) {
        setReceiverAppType(value);
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy