
com.prowidesoftware.swift.model.mx.dic.TransportByRoad5 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 road.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TransportByRoad5", propOrder = {
"plcOfRct",
"plcOfDlvry",
"roadCrrierNm",
"roadCrrierCtry",
"crrierAgtNm",
"crrierAgtCtry"
})
public class TransportByRoad5 {
@XmlElement(name = "PlcOfRct")
protected List plcOfRct;
@XmlElement(name = "PlcOfDlvry", required = true)
protected List plcOfDlvry;
@XmlElement(name = "RoadCrrierNm")
protected String roadCrrierNm;
@XmlElement(name = "RoadCrrierCtry")
protected String roadCrrierCtry;
@XmlElement(name = "CrrierAgtNm")
protected String crrierAgtNm;
@XmlElement(name = "CrrierAgtCtry")
protected String crrierAgtCtry;
/**
* 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 roadCrrierNm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRoadCrrierNm() {
return roadCrrierNm;
}
/**
* Sets the value of the roadCrrierNm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TransportByRoad5 setRoadCrrierNm(String value) {
this.roadCrrierNm = value;
return this;
}
/**
* Gets the value of the roadCrrierCtry property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRoadCrrierCtry() {
return roadCrrierCtry;
}
/**
* Sets the value of the roadCrrierCtry property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TransportByRoad5 setRoadCrrierCtry(String value) {
this.roadCrrierCtry = value;
return this;
}
/**
* Gets the value of the crrierAgtNm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCrrierAgtNm() {
return crrierAgtNm;
}
/**
* Sets the value of the crrierAgtNm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TransportByRoad5 setCrrierAgtNm(String value) {
this.crrierAgtNm = value;
return this;
}
/**
* Gets the value of the crrierAgtCtry property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCrrierAgtCtry() {
return crrierAgtCtry;
}
/**
* Sets the value of the crrierAgtCtry property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TransportByRoad5 setCrrierAgtCtry(String value) {
this.crrierAgtCtry = 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 TransportByRoad5 addPlcOfRct(String plcOfRct) {
getPlcOfRct().add(plcOfRct);
return this;
}
/**
* Adds a new item to the plcOfDlvry list.
* @see #getPlcOfDlvry()
*
*/
public TransportByRoad5 addPlcOfDlvry(String plcOfDlvry) {
getPlcOfDlvry().add(plcOfDlvry);
return this;
}
}