com.prowidesoftware.swift.model.mx.dic.TransportByRail3 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.util.ArrayList;
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.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;
/**
* Information related to the transportation of goods by rail.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TransportByRail3", propOrder = {
"plcOfRct",
"plcOfDlvry",
"railCrrierNm"
})
public class TransportByRail3 {
@XmlElement(name = "PlcOfRct")
protected List plcOfRct;
@XmlElement(name = "PlcOfDlvry", required = true)
protected List plcOfDlvry;
@XmlElement(name = "RailCrrierNm")
protected String railCrrierNm;
/**
* Gets the value of the plcOfRct 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 plcOfRct property.
*
*
* For example, to add a new item, do as follows:
*
* getPlcOfRct().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getPlcOfRct() {
if (plcOfRct == null) {
plcOfRct = new ArrayList();
}
return this.plcOfRct;
}
/**
* Gets the value of the plcOfDlvry 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 plcOfDlvry property.
*
*
* For example, to add a new item, do as follows:
*
* getPlcOfDlvry().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getPlcOfDlvry() {
if (plcOfDlvry == null) {
plcOfDlvry = new ArrayList();
}
return this.plcOfDlvry;
}
/**
* Gets the value of the railCrrierNm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRailCrrierNm() {
return railCrrierNm;
}
/**
* Sets the value of the railCrrierNm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TransportByRail3 setRailCrrierNm(String value) {
this.railCrrierNm = value;
return this;
}
@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 plcOfRct list.
* @see #getPlcOfRct()
*
*/
public TransportByRail3 addPlcOfRct(String plcOfRct) {
getPlcOfRct().add(plcOfRct);
return this;
}
/**
* Adds a new item to the plcOfDlvry list.
* @see #getPlcOfDlvry()
*
*/
public TransportByRail3 addPlcOfDlvry(String plcOfDlvry) {
getPlcOfDlvry().add(plcOfDlvry);
return this;
}
}