com.prowidesoftware.swift.model.mx.dic.LineItem11 Maven / Gradle / Ivy
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;
/**
* Commercial details of a trade transaction between a buyer and a seller.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "LineItem11", propOrder = {
"goodsDesc",
"prtlShipmnt",
"trnsShipmnt",
"shipmntDtRg",
"lineItmDtls",
"lineItmsTtlAmt",
"rtgSummry",
"incotrms",
"adjstmnt",
"frghtChrgs",
"tax",
"ttlNetAmt",
"buyrDfndInf",
"sellrDfndInf"
})
public class LineItem11 {
@XmlElement(name = "GoodsDesc")
protected String goodsDesc;
@XmlElement(name = "PrtlShipmnt")
protected boolean prtlShipmnt;
@XmlElement(name = "TrnsShipmnt")
protected Boolean trnsShipmnt;
@XmlElement(name = "ShipmntDtRg")
protected ShipmentDateRange1 shipmntDtRg;
@XmlElement(name = "LineItmDtls", required = true)
protected List lineItmDtls;
@XmlElement(name = "LineItmsTtlAmt", required = true)
protected CurrencyAndAmount lineItmsTtlAmt;
@XmlElement(name = "RtgSummry")
protected TransportMeans5 rtgSummry;
@XmlElement(name = "Incotrms")
protected Incoterms4 incotrms;
@XmlElement(name = "Adjstmnt")
protected List adjstmnt;
@XmlElement(name = "FrghtChrgs")
protected Charge24 frghtChrgs;
@XmlElement(name = "Tax")
protected List tax;
@XmlElement(name = "TtlNetAmt", required = true)
protected CurrencyAndAmount ttlNetAmt;
@XmlElement(name = "BuyrDfndInf")
protected List buyrDfndInf;
@XmlElement(name = "SellrDfndInf")
protected List sellrDfndInf;
/**
* Gets the value of the goodsDesc property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getGoodsDesc() {
return goodsDesc;
}
/**
* Sets the value of the goodsDesc property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public LineItem11 setGoodsDesc(String value) {
this.goodsDesc = value;
return this;
}
/**
* Gets the value of the prtlShipmnt property.
*
*/
public boolean isPrtlShipmnt() {
return prtlShipmnt;
}
/**
* Sets the value of the prtlShipmnt property.
*
*/
public LineItem11 setPrtlShipmnt(boolean value) {
this.prtlShipmnt = value;
return this;
}
/**
* Gets the value of the trnsShipmnt property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isTrnsShipmnt() {
return trnsShipmnt;
}
/**
* Sets the value of the trnsShipmnt property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public LineItem11 setTrnsShipmnt(Boolean value) {
this.trnsShipmnt = value;
return this;
}
/**
* Gets the value of the shipmntDtRg property.
*
* @return
* possible object is
* {@link ShipmentDateRange1 }
*
*/
public ShipmentDateRange1 getShipmntDtRg() {
return shipmntDtRg;
}
/**
* Sets the value of the shipmntDtRg property.
*
* @param value
* allowed object is
* {@link ShipmentDateRange1 }
*
*/
public LineItem11 setShipmntDtRg(ShipmentDateRange1 value) {
this.shipmntDtRg = value;
return this;
}
/**
* Gets the value of the lineItmDtls 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 lineItmDtls property.
*
*
* For example, to add a new item, do as follows:
*
* getLineItmDtls().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link LineItemDetails10 }
*
*
* @return
* The value of the lineItmDtls property.
*/
public List getLineItmDtls() {
if (lineItmDtls == null) {
lineItmDtls = new ArrayList<>();
}
return this.lineItmDtls;
}
/**
* Gets the value of the lineItmsTtlAmt property.
*
* @return
* possible object is
* {@link CurrencyAndAmount }
*
*/
public CurrencyAndAmount getLineItmsTtlAmt() {
return lineItmsTtlAmt;
}
/**
* Sets the value of the lineItmsTtlAmt property.
*
* @param value
* allowed object is
* {@link CurrencyAndAmount }
*
*/
public LineItem11 setLineItmsTtlAmt(CurrencyAndAmount value) {
this.lineItmsTtlAmt = value;
return this;
}
/**
* Gets the value of the rtgSummry property.
*
* @return
* possible object is
* {@link TransportMeans5 }
*
*/
public TransportMeans5 getRtgSummry() {
return rtgSummry;
}
/**
* Sets the value of the rtgSummry property.
*
* @param value
* allowed object is
* {@link TransportMeans5 }
*
*/
public LineItem11 setRtgSummry(TransportMeans5 value) {
this.rtgSummry = value;
return this;
}
/**
* Gets the value of the incotrms property.
*
* @return
* possible object is
* {@link Incoterms4 }
*
*/
public Incoterms4 getIncotrms() {
return incotrms;
}
/**
* Sets the value of the incotrms property.
*
* @param value
* allowed object is
* {@link Incoterms4 }
*
*/
public LineItem11 setIncotrms(Incoterms4 value) {
this.incotrms = value;
return this;
}
/**
* Gets the value of the adjstmnt 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 adjstmnt property.
*
*
* For example, to add a new item, do as follows:
*
* getAdjstmnt().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Adjustment7 }
*
*
* @return
* The value of the adjstmnt property.
*/
public List getAdjstmnt() {
if (adjstmnt == null) {
adjstmnt = new ArrayList<>();
}
return this.adjstmnt;
}
/**
* Gets the value of the frghtChrgs property.
*
* @return
* possible object is
* {@link Charge24 }
*
*/
public Charge24 getFrghtChrgs() {
return frghtChrgs;
}
/**
* Sets the value of the frghtChrgs property.
*
* @param value
* allowed object is
* {@link Charge24 }
*
*/
public LineItem11 setFrghtChrgs(Charge24 value) {
this.frghtChrgs = value;
return this;
}
/**
* Gets the value of the tax 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 tax property.
*
*
* For example, to add a new item, do as follows:
*
* getTax().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Tax23 }
*
*
* @return
* The value of the tax property.
*/
public List getTax() {
if (tax == null) {
tax = new ArrayList<>();
}
return this.tax;
}
/**
* Gets the value of the ttlNetAmt property.
*
* @return
* possible object is
* {@link CurrencyAndAmount }
*
*/
public CurrencyAndAmount getTtlNetAmt() {
return ttlNetAmt;
}
/**
* Sets the value of the ttlNetAmt property.
*
* @param value
* allowed object is
* {@link CurrencyAndAmount }
*
*/
public LineItem11 setTtlNetAmt(CurrencyAndAmount value) {
this.ttlNetAmt = value;
return this;
}
/**
* Gets the value of the buyrDfndInf 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 buyrDfndInf property.
*
*
* For example, to add a new item, do as follows:
*
* getBuyrDfndInf().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link UserDefinedInformation1 }
*
*
* @return
* The value of the buyrDfndInf property.
*/
public List getBuyrDfndInf() {
if (buyrDfndInf == null) {
buyrDfndInf = new ArrayList<>();
}
return this.buyrDfndInf;
}
/**
* Gets the value of the sellrDfndInf 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 sellrDfndInf property.
*
*
* For example, to add a new item, do as follows:
*
* getSellrDfndInf().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link UserDefinedInformation1 }
*
*
* @return
* The value of the sellrDfndInf property.
*/
public List getSellrDfndInf() {
if (sellrDfndInf == null) {
sellrDfndInf = new ArrayList<>();
}
return this.sellrDfndInf;
}
@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 lineItmDtls list.
* @see #getLineItmDtls()
*
*/
public LineItem11 addLineItmDtls(LineItemDetails10 lineItmDtls) {
getLineItmDtls().add(lineItmDtls);
return this;
}
/**
* Adds a new item to the adjstmnt list.
* @see #getAdjstmnt()
*
*/
public LineItem11 addAdjstmnt(Adjustment7 adjstmnt) {
getAdjstmnt().add(adjstmnt);
return this;
}
/**
* Adds a new item to the tax list.
* @see #getTax()
*
*/
public LineItem11 addTax(Tax23 tax) {
getTax().add(tax);
return this;
}
/**
* Adds a new item to the buyrDfndInf list.
* @see #getBuyrDfndInf()
*
*/
public LineItem11 addBuyrDfndInf(UserDefinedInformation1 buyrDfndInf) {
getBuyrDfndInf().add(buyrDfndInf);
return this;
}
/**
* Adds a new item to the sellrDfndInf list.
* @see #getSellrDfndInf()
*
*/
public LineItem11 addSellrDfndInf(UserDefinedInformation1 sellrDfndInf) {
getSellrDfndInf().add(sellrDfndInf);
return this;
}
}