com.prowidesoftware.swift.model.mx.dic.PartyIdentificationAndAccount56 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;
/**
* Provides information about identification and account of the party.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PartyIdentificationAndAccount56", propOrder = {
"id",
"sfkpgAcct",
"prcgId",
"addtlInf",
"altrnId"
})
public class PartyIdentificationAndAccount56 {
@XmlElement(name = "Id", required = true)
protected PartyIdentification54Choice id;
@XmlElement(name = "SfkpgAcct")
protected String sfkpgAcct;
@XmlElement(name = "PrcgId")
protected String prcgId;
@XmlElement(name = "AddtlInf")
protected String addtlInf;
@XmlElement(name = "AltrnId")
protected List altrnId;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link PartyIdentification54Choice }
*
*/
public PartyIdentification54Choice getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link PartyIdentification54Choice }
*
*/
public PartyIdentificationAndAccount56 setId(PartyIdentification54Choice value) {
this.id = value;
return this;
}
/**
* Gets the value of the sfkpgAcct property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSfkpgAcct() {
return sfkpgAcct;
}
/**
* Sets the value of the sfkpgAcct property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public PartyIdentificationAndAccount56 setSfkpgAcct(String value) {
this.sfkpgAcct = value;
return this;
}
/**
* Gets the value of the prcgId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPrcgId() {
return prcgId;
}
/**
* Sets the value of the prcgId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public PartyIdentificationAndAccount56 setPrcgId(String value) {
this.prcgId = value;
return this;
}
/**
* Gets the value of the addtlInf property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAddtlInf() {
return addtlInf;
}
/**
* Sets the value of the addtlInf property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public PartyIdentificationAndAccount56 setAddtlInf(String value) {
this.addtlInf = value;
return this;
}
/**
* Gets the value of the altrnId 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 altrnId property.
*
*
* For example, to add a new item, do as follows:
*
* getAltrnId().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AlternatePartyIdentification3 }
*
*
* @return
* The value of the altrnId property.
*/
public List getAltrnId() {
if (altrnId == null) {
altrnId = new ArrayList<>();
}
return this.altrnId;
}
@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 altrnId list.
* @see #getAltrnId()
*
*/
public PartyIdentificationAndAccount56 addAltrnId(AlternatePartyIdentification3 altrnId) {
getAltrnId().add(altrnId);
return this;
}
}