com.prowidesoftware.swift.model.mx.dic.CashBalance4 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.XmlSchemaType;
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;
/**
* Balance details for a cash account.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CashBalance4", propOrder = {
"tp",
"ctrPtyTp",
"ctrPtyId",
"valDt"
})
public class CashBalance4 {
@XmlElement(name = "Tp")
protected List tp;
@XmlElement(name = "CtrPtyTp", required = true)
@XmlSchemaType(name = "string")
protected BalanceCounterparty1Code ctrPtyTp;
@XmlElement(name = "CtrPtyId")
protected List ctrPtyId;
@XmlElement(name = "ValDt")
protected List valDt;
/**
* Gets the value of the tp 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 tp property.
*
*
* For example, to add a new item, do as follows:
*
* getTp().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link BalanceType8Choice }
*
*
* @return
* The value of the tp property.
*/
public List getTp() {
if (tp == null) {
tp = new ArrayList<>();
}
return this.tp;
}
/**
* Gets the value of the ctrPtyTp property.
*
* @return
* possible object is
* {@link BalanceCounterparty1Code }
*
*/
public BalanceCounterparty1Code getCtrPtyTp() {
return ctrPtyTp;
}
/**
* Sets the value of the ctrPtyTp property.
*
* @param value
* allowed object is
* {@link BalanceCounterparty1Code }
*
*/
public CashBalance4 setCtrPtyTp(BalanceCounterparty1Code value) {
this.ctrPtyTp = value;
return this;
}
/**
* Gets the value of the ctrPtyId 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 ctrPtyId property.
*
*
* For example, to add a new item, do as follows:
*
* getCtrPtyId().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link BranchAndFinancialInstitutionIdentification5 }
*
*
* @return
* The value of the ctrPtyId property.
*/
public List getCtrPtyId() {
if (ctrPtyId == null) {
ctrPtyId = new ArrayList<>();
}
return this.ctrPtyId;
}
/**
* Gets the value of the valDt 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 valDt property.
*
*
* For example, to add a new item, do as follows:
*
* getValDt().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link DateAndDateTimeSearchChoice }
*
*
* @return
* The value of the valDt property.
*/
public List getValDt() {
if (valDt == null) {
valDt = new ArrayList<>();
}
return this.valDt;
}
@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 tp list.
* @see #getTp()
*
*/
public CashBalance4 addTp(BalanceType8Choice tp) {
getTp().add(tp);
return this;
}
/**
* Adds a new item to the ctrPtyId list.
* @see #getCtrPtyId()
*
*/
public CashBalance4 addCtrPtyId(BranchAndFinancialInstitutionIdentification5 ctrPtyId) {
getCtrPtyId().add(ctrPtyId);
return this;
}
/**
* Adds a new item to the valDt list.
* @see #getValDt()
*
*/
public CashBalance4 addValDt(DateAndDateTimeSearchChoice valDt) {
getValDt().add(valDt);
return this;
}
}