com.prowidesoftware.swift.model.mx.dic.CashAccountSearchCriteria3 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.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;
/**
* Defines the criteria used to search for an account.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CashAccountSearchCriteria3", propOrder = {
"acctId",
"tp",
"ccy",
"bal",
"acctOwnr",
"acctSvcr"
})
public class CashAccountSearchCriteria3 {
@XmlElement(name = "AcctId")
protected List acctId;
@XmlElement(name = "Tp")
@XmlSchemaType(name = "string")
protected List tp;
@XmlElement(name = "Ccy")
protected List ccy;
@XmlElement(name = "Bal")
protected List bal;
@XmlElement(name = "AcctOwnr")
protected String acctOwnr;
@XmlElement(name = "AcctSvcr")
protected String acctSvcr;
/**
* Gets the value of the acctId 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 acctId property.
*
*
* For example, to add a new item, do as follows:
*
* getAcctId().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AccountIdentificationSearchCriteriaChoice }
*
*
* @return
* The value of the acctId property.
*/
public List getAcctId() {
if (acctId == null) {
acctId = new ArrayList<>();
}
return this.acctId;
}
/**
* 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 CashAccountType2Code }
*
*
* @return
* The value of the tp property.
*/
public List getTp() {
if (tp == null) {
tp = new ArrayList<>();
}
return this.tp;
}
/**
* Gets the value of the ccy 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 ccy property.
*
*
* For example, to add a new item, do as follows:
*
* getCcy().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
* @return
* The value of the ccy property.
*/
public List getCcy() {
if (ccy == null) {
ccy = new ArrayList<>();
}
return this.ccy;
}
/**
* Gets the value of the bal 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 bal property.
*
*
* For example, to add a new item, do as follows:
*
* getBal().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link BalanceDetails3 }
*
*
* @return
* The value of the bal property.
*/
public List getBal() {
if (bal == null) {
bal = new ArrayList<>();
}
return this.bal;
}
/**
* Gets the value of the acctOwnr property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAcctOwnr() {
return acctOwnr;
}
/**
* Sets the value of the acctOwnr property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CashAccountSearchCriteria3 setAcctOwnr(String value) {
this.acctOwnr = value;
return this;
}
/**
* Gets the value of the acctSvcr property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAcctSvcr() {
return acctSvcr;
}
/**
* Sets the value of the acctSvcr property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CashAccountSearchCriteria3 setAcctSvcr(String value) {
this.acctSvcr = 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 acctId list.
* @see #getAcctId()
*
*/
public CashAccountSearchCriteria3 addAcctId(AccountIdentificationSearchCriteriaChoice acctId) {
getAcctId().add(acctId);
return this;
}
/**
* Adds a new item to the tp list.
* @see #getTp()
*
*/
public CashAccountSearchCriteria3 addTp(CashAccountType2Code tp) {
getTp().add(tp);
return this;
}
/**
* Adds a new item to the ccy list.
* @see #getCcy()
*
*/
public CashAccountSearchCriteria3 addCcy(String ccy) {
getCcy().add(ccy);
return this;
}
/**
* Adds a new item to the bal list.
* @see #getBal()
*
*/
public CashAccountSearchCriteria3 addBal(BalanceDetails3 bal) {
getBal().add(bal);
return this;
}
}