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

com.prowidesoftware.swift.model.mx.dic.SingleTransport7 Maven / Gradle / Ivy

The newest version!

package com.prowidesoftware.swift.model.mx.dic;

import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * Specifies individually each leg of a transport of goods.
 * 
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SingleTransport7", propOrder = {
    "trnsprtByAir",
    "trnsprtBySea",
    "trnsprtByRoad",
    "trnsprtByRail"
})
public class SingleTransport7 {

    @XmlElement(name = "TrnsprtByAir")
    protected List trnsprtByAir;
    @XmlElement(name = "TrnsprtBySea")
    protected List trnsprtBySea;
    @XmlElement(name = "TrnsprtByRoad")
    protected List trnsprtByRoad;
    @XmlElement(name = "TrnsprtByRail")
    protected List trnsprtByRail;

    /**
     * Gets the value of the trnsprtByAir 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 Jakarta XML Binding object. * This is why there is not a {@code set} method for the trnsprtByAir property. * *

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

     *    getTrnsprtByAir().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link TransportByAir5 } * * * @return * The value of the trnsprtByAir property. */ public List getTrnsprtByAir() { if (trnsprtByAir == null) { trnsprtByAir = new ArrayList<>(); } return this.trnsprtByAir; } /** * Gets the value of the trnsprtBySea 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 Jakarta XML Binding object. * This is why there is not a {@code set} method for the trnsprtBySea property. * *

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

     *    getTrnsprtBySea().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link TransportBySea6 } * * * @return * The value of the trnsprtBySea property. */ public List getTrnsprtBySea() { if (trnsprtBySea == null) { trnsprtBySea = new ArrayList<>(); } return this.trnsprtBySea; } /** * Gets the value of the trnsprtByRoad 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 Jakarta XML Binding object. * This is why there is not a {@code set} method for the trnsprtByRoad property. * *

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

     *    getTrnsprtByRoad().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link TransportByRoad5 } * * * @return * The value of the trnsprtByRoad property. */ public List getTrnsprtByRoad() { if (trnsprtByRoad == null) { trnsprtByRoad = new ArrayList<>(); } return this.trnsprtByRoad; } /** * Gets the value of the trnsprtByRail 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 Jakarta XML Binding object. * This is why there is not a {@code set} method for the trnsprtByRail property. * *

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

     *    getTrnsprtByRail().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link TransportByRail5 } * * * @return * The value of the trnsprtByRail property. */ public List getTrnsprtByRail() { if (trnsprtByRail == null) { trnsprtByRail = new ArrayList<>(); } return this.trnsprtByRail; } @Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE); } @Override public boolean equals(Object that) { return EqualsBuilder.reflectionEquals(this, that); } @Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this); } /** * Adds a new item to the trnsprtByAir list. * @see #getTrnsprtByAir() * */ public SingleTransport7 addTrnsprtByAir(TransportByAir5 trnsprtByAir) { getTrnsprtByAir().add(trnsprtByAir); return this; } /** * Adds a new item to the trnsprtBySea list. * @see #getTrnsprtBySea() * */ public SingleTransport7 addTrnsprtBySea(TransportBySea6 trnsprtBySea) { getTrnsprtBySea().add(trnsprtBySea); return this; } /** * Adds a new item to the trnsprtByRoad list. * @see #getTrnsprtByRoad() * */ public SingleTransport7 addTrnsprtByRoad(TransportByRoad5 trnsprtByRoad) { getTrnsprtByRoad().add(trnsprtByRoad); return this; } /** * Adds a new item to the trnsprtByRail list. * @see #getTrnsprtByRail() * */ public SingleTransport7 addTrnsprtByRail(TransportByRail5 trnsprtByRail) { getTrnsprtByRail().add(trnsprtByRail); return this; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy