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

eu.fispace.api.lg.TransportPlan 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.lg;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
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;


/**
 * 
 * Message sent from logistics planning app to FIspace,
 * representing a notification about a logistics plan,
 * can be used for a new logistics plan as well as an update of an existing plan.
 * 				
 * 
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "logisticsPlan",
    "transportLeg"
})
@XmlRootElement(name = "TransportPlan")
public class TransportPlan
    extends RequestMessage
    implements Serializable, ToString
{

    @XmlElement(name = "LogisticsPlan", required = true)
    protected TransportPlanType logisticsPlan;
    @XmlElement(name = "TransportLeg", required = true)
    protected List transportLeg;

    /**
     * Obtiene el valor de la propiedad logisticsPlan.
     * 
     * @return
     *     possible object is
     *     {@link TransportPlanType }
     *     
     */
    public TransportPlanType getLogisticsPlan() {
        return logisticsPlan;
    }

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

    public boolean isSetLogisticsPlan() {
        return (this.logisticsPlan!= null);
    }

    /**
     * Gets the value of the transportLeg 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 transportLeg property. * *

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

     *    getTransportLeg().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link TransportLegType } * * */ public List getTransportLeg() { if (transportLeg == null) { transportLeg = new ArrayList(); } return this.transportLeg; } public boolean isSetTransportLeg() { return ((this.transportLeg!= null)&&(!this.transportLeg.isEmpty())); } public void unsetTransportLeg() { this.transportLeg = 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); { TransportPlanType theLogisticsPlan; theLogisticsPlan = this.getLogisticsPlan(); strategy.appendField(locator, this, "logisticsPlan", buffer, theLogisticsPlan); } { List theTransportLeg; theTransportLeg = (this.isSetTransportLeg()?this.getTransportLeg():null); strategy.appendField(locator, this, "transportLeg", buffer, theTransportLeg); } return buffer; } public TransportPlan withLogisticsPlan(TransportPlanType value) { setLogisticsPlan(value); return this; } public TransportPlan withTransportLeg(TransportLegType... values) { if (values!= null) { for (TransportLegType value: values) { getTransportLeg().add(value); } } return this; } public TransportPlan withTransportLeg(Collection values) { if (values!= null) { getTransportLeg().addAll(values); } return this; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy