com.prowidesoftware.swift.model.mx.dic.BreakdownByCountry1 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 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 the cash-in and cash-out flows by country.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BreakdownByCountry1", propOrder = {
"ctry",
"cshInFcst",
"cshOutFcst",
"netCshFcst"
})
public class BreakdownByCountry1 {
@XmlElement(name = "Ctry", required = true)
protected String ctry;
@XmlElement(name = "CshInFcst")
protected List cshInFcst;
@XmlElement(name = "CshOutFcst")
protected List cshOutFcst;
@XmlElement(name = "NetCshFcst")
protected List netCshFcst;
/**
* Gets the value of the ctry property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCtry() {
return ctry;
}
/**
* Sets the value of the ctry property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public BreakdownByCountry1 setCtry(String value) {
this.ctry = value;
return this;
}
/**
* Gets the value of the cshInFcst 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 cshInFcst property.
*
*
* For example, to add a new item, do as follows:
*
* getCshInFcst().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CashInForecast3 }
*
*
* @return
* The value of the cshInFcst property.
*/
public List getCshInFcst() {
if (cshInFcst == null) {
cshInFcst = new ArrayList<>();
}
return this.cshInFcst;
}
/**
* Gets the value of the cshOutFcst 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 cshOutFcst property.
*
*
* For example, to add a new item, do as follows:
*
* getCshOutFcst().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CashOutForecast3 }
*
*
* @return
* The value of the cshOutFcst property.
*/
public List getCshOutFcst() {
if (cshOutFcst == null) {
cshOutFcst = new ArrayList<>();
}
return this.cshOutFcst;
}
/**
* Gets the value of the netCshFcst 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 netCshFcst property.
*
*
* For example, to add a new item, do as follows:
*
* getNetCshFcst().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link NetCashForecast2 }
*
*
* @return
* The value of the netCshFcst property.
*/
public List getNetCshFcst() {
if (netCshFcst == null) {
netCshFcst = new ArrayList<>();
}
return this.netCshFcst;
}
@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 cshInFcst list.
* @see #getCshInFcst()
*
*/
public BreakdownByCountry1 addCshInFcst(CashInForecast3 cshInFcst) {
getCshInFcst().add(cshInFcst);
return this;
}
/**
* Adds a new item to the cshOutFcst list.
* @see #getCshOutFcst()
*
*/
public BreakdownByCountry1 addCshOutFcst(CashOutForecast3 cshOutFcst) {
getCshOutFcst().add(cshOutFcst);
return this;
}
/**
* Adds a new item to the netCshFcst list.
* @see #getNetCshFcst()
*
*/
public BreakdownByCountry1 addNetCshFcst(NetCashForecast2 netCshFcst) {
getNetCshFcst().add(netCshFcst);
return this;
}
}