com.prowidesoftware.swift.model.mx.dic.BalanceDetails4 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.XmlSchemaType;
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;
/**
* Balance related detailed for a cash account.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BalanceDetails4", propOrder = {
"balTp",
"ctrPtyTp",
"ctrPtyId",
"balValDt"
})
public class BalanceDetails4 {
@XmlElement(name = "BalTp")
protected List balTp;
@XmlElement(name = "CtrPtyTp", required = true)
@XmlSchemaType(name = "string")
protected BalanceCounterparty1Code ctrPtyTp;
@XmlElement(name = "CtrPtyId")
protected List ctrPtyId;
@XmlElement(name = "BalValDt")
protected List balValDt;
/**
* Gets the value of the balTp 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 balTp property.
*
*
* For example, to add a new item, do as follows:
*
* getBalTp().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link BalanceType3Choice }
*
*
*/
public List getBalTp() {
if (balTp == null) {
balTp = new ArrayList();
}
return this.balTp;
}
/**
* 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 BalanceDetails4 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 JAXB object.
* This is why there is not a 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 MemberIdentificationChoice }
*
*
*/
public List getCtrPtyId() {
if (ctrPtyId == null) {
ctrPtyId = new ArrayList();
}
return this.ctrPtyId;
}
/**
* Gets the value of the balValDt 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 balValDt property.
*
*
* For example, to add a new item, do as follows:
*
* getBalValDt().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link DateAndDateTimeSearchChoice }
*
*
*/
public List getBalValDt() {
if (balValDt == null) {
balValDt = new ArrayList();
}
return this.balValDt;
}
@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 balTp list.
* @see #getBalTp()
*
*/
public BalanceDetails4 addBalTp(BalanceType3Choice balTp) {
getBalTp().add(balTp);
return this;
}
/**
* Adds a new item to the ctrPtyId list.
* @see #getCtrPtyId()
*
*/
public BalanceDetails4 addCtrPtyId(MemberIdentificationChoice ctrPtyId) {
getCtrPtyId().add(ctrPtyId);
return this;
}
/**
* Adds a new item to the balValDt list.
* @see #getBalValDt()
*
*/
public BalanceDetails4 addBalValDt(DateAndDateTimeSearchChoice balValDt) {
getBalValDt().add(balValDt);
return this;
}
}