com.prowidesoftware.swift.model.mx.dic.TransactionParties4 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.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 further details on the parties specific to the individual transaction.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TransactionParties4", propOrder = {
"initgPty",
"dbtr",
"dbtrAcct",
"ultmtDbtr",
"cdtr",
"cdtrAcct",
"ultmtCdtr",
"tradgPty",
"prtry"
})
public class TransactionParties4 {
@XmlElement(name = "InitgPty")
protected Party35Choice initgPty;
@XmlElement(name = "Dbtr")
protected Party35Choice dbtr;
@XmlElement(name = "DbtrAcct")
protected CashAccount24 dbtrAcct;
@XmlElement(name = "UltmtDbtr")
protected Party35Choice ultmtDbtr;
@XmlElement(name = "Cdtr")
protected Party35Choice cdtr;
@XmlElement(name = "CdtrAcct")
protected CashAccount24 cdtrAcct;
@XmlElement(name = "UltmtCdtr")
protected Party35Choice ultmtCdtr;
@XmlElement(name = "TradgPty")
protected Party35Choice tradgPty;
@XmlElement(name = "Prtry")
protected List prtry;
/**
* Gets the value of the initgPty property.
*
* @return
* possible object is
* {@link Party35Choice }
*
*/
public Party35Choice getInitgPty() {
return initgPty;
}
/**
* Sets the value of the initgPty property.
*
* @param value
* allowed object is
* {@link Party35Choice }
*
*/
public TransactionParties4 setInitgPty(Party35Choice value) {
this.initgPty = value;
return this;
}
/**
* Gets the value of the dbtr property.
*
* @return
* possible object is
* {@link Party35Choice }
*
*/
public Party35Choice getDbtr() {
return dbtr;
}
/**
* Sets the value of the dbtr property.
*
* @param value
* allowed object is
* {@link Party35Choice }
*
*/
public TransactionParties4 setDbtr(Party35Choice value) {
this.dbtr = value;
return this;
}
/**
* Gets the value of the dbtrAcct property.
*
* @return
* possible object is
* {@link CashAccount24 }
*
*/
public CashAccount24 getDbtrAcct() {
return dbtrAcct;
}
/**
* Sets the value of the dbtrAcct property.
*
* @param value
* allowed object is
* {@link CashAccount24 }
*
*/
public TransactionParties4 setDbtrAcct(CashAccount24 value) {
this.dbtrAcct = value;
return this;
}
/**
* Gets the value of the ultmtDbtr property.
*
* @return
* possible object is
* {@link Party35Choice }
*
*/
public Party35Choice getUltmtDbtr() {
return ultmtDbtr;
}
/**
* Sets the value of the ultmtDbtr property.
*
* @param value
* allowed object is
* {@link Party35Choice }
*
*/
public TransactionParties4 setUltmtDbtr(Party35Choice value) {
this.ultmtDbtr = value;
return this;
}
/**
* Gets the value of the cdtr property.
*
* @return
* possible object is
* {@link Party35Choice }
*
*/
public Party35Choice getCdtr() {
return cdtr;
}
/**
* Sets the value of the cdtr property.
*
* @param value
* allowed object is
* {@link Party35Choice }
*
*/
public TransactionParties4 setCdtr(Party35Choice value) {
this.cdtr = value;
return this;
}
/**
* Gets the value of the cdtrAcct property.
*
* @return
* possible object is
* {@link CashAccount24 }
*
*/
public CashAccount24 getCdtrAcct() {
return cdtrAcct;
}
/**
* Sets the value of the cdtrAcct property.
*
* @param value
* allowed object is
* {@link CashAccount24 }
*
*/
public TransactionParties4 setCdtrAcct(CashAccount24 value) {
this.cdtrAcct = value;
return this;
}
/**
* Gets the value of the ultmtCdtr property.
*
* @return
* possible object is
* {@link Party35Choice }
*
*/
public Party35Choice getUltmtCdtr() {
return ultmtCdtr;
}
/**
* Sets the value of the ultmtCdtr property.
*
* @param value
* allowed object is
* {@link Party35Choice }
*
*/
public TransactionParties4 setUltmtCdtr(Party35Choice value) {
this.ultmtCdtr = value;
return this;
}
/**
* Gets the value of the tradgPty property.
*
* @return
* possible object is
* {@link Party35Choice }
*
*/
public Party35Choice getTradgPty() {
return tradgPty;
}
/**
* Sets the value of the tradgPty property.
*
* @param value
* allowed object is
* {@link Party35Choice }
*
*/
public TransactionParties4 setTradgPty(Party35Choice value) {
this.tradgPty = value;
return this;
}
/**
* Gets the value of the prtry 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 prtry property.
*
*
* For example, to add a new item, do as follows:
*
* getPrtry().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ProprietaryParty4 }
*
*
*/
public List getPrtry() {
if (prtry == null) {
prtry = new ArrayList();
}
return this.prtry;
}
@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 prtry list.
* @see #getPrtry()
*
*/
public TransactionParties4 addPrtry(ProprietaryParty4 prtry) {
getPrtry().add(prtry);
return this;
}
}