com.prowidesoftware.swift.model.mx.dic.AccountParties2Choice 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;
/**
* Party associated with the account.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AccountParties2Choice", propOrder = {
"pmryOwnr",
"trstee",
"ctdnForMnr",
"nmnee",
"jntOwnr"
})
public class AccountParties2Choice {
@XmlElement(name = "PmryOwnr")
protected InvestmentAccountOwnershipInformation7 pmryOwnr;
@XmlElement(name = "Trstee")
protected List trstee;
@XmlElement(name = "CtdnForMnr")
protected InvestmentAccountOwnershipInformation7 ctdnForMnr;
@XmlElement(name = "Nmnee")
protected InvestmentAccountOwnershipInformation7 nmnee;
@XmlElement(name = "JntOwnr")
protected List jntOwnr;
/**
* Gets the value of the pmryOwnr property.
*
* @return
* possible object is
* {@link InvestmentAccountOwnershipInformation7 }
*
*/
public InvestmentAccountOwnershipInformation7 getPmryOwnr() {
return pmryOwnr;
}
/**
* Sets the value of the pmryOwnr property.
*
* @param value
* allowed object is
* {@link InvestmentAccountOwnershipInformation7 }
*
*/
public AccountParties2Choice setPmryOwnr(InvestmentAccountOwnershipInformation7 value) {
this.pmryOwnr = value;
return this;
}
/**
* Gets the value of the trstee 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 trstee property.
*
*
* For example, to add a new item, do as follows:
*
* getTrstee().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link InvestmentAccountOwnershipInformation7 }
*
*
*/
public List getTrstee() {
if (trstee == null) {
trstee = new ArrayList();
}
return this.trstee;
}
/**
* Gets the value of the ctdnForMnr property.
*
* @return
* possible object is
* {@link InvestmentAccountOwnershipInformation7 }
*
*/
public InvestmentAccountOwnershipInformation7 getCtdnForMnr() {
return ctdnForMnr;
}
/**
* Sets the value of the ctdnForMnr property.
*
* @param value
* allowed object is
* {@link InvestmentAccountOwnershipInformation7 }
*
*/
public AccountParties2Choice setCtdnForMnr(InvestmentAccountOwnershipInformation7 value) {
this.ctdnForMnr = value;
return this;
}
/**
* Gets the value of the nmnee property.
*
* @return
* possible object is
* {@link InvestmentAccountOwnershipInformation7 }
*
*/
public InvestmentAccountOwnershipInformation7 getNmnee() {
return nmnee;
}
/**
* Sets the value of the nmnee property.
*
* @param value
* allowed object is
* {@link InvestmentAccountOwnershipInformation7 }
*
*/
public AccountParties2Choice setNmnee(InvestmentAccountOwnershipInformation7 value) {
this.nmnee = value;
return this;
}
/**
* Gets the value of the jntOwnr 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 jntOwnr property.
*
*
* For example, to add a new item, do as follows:
*
* getJntOwnr().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link InvestmentAccountOwnershipInformation7 }
*
*
*/
public List getJntOwnr() {
if (jntOwnr == null) {
jntOwnr = new ArrayList();
}
return this.jntOwnr;
}
@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 trstee list.
* @see #getTrstee()
*
*/
public AccountParties2Choice addTrstee(InvestmentAccountOwnershipInformation7 trstee) {
getTrstee().add(trstee);
return this;
}
/**
* Adds a new item to the jntOwnr list.
* @see #getJntOwnr()
*
*/
public AccountParties2Choice addJntOwnr(InvestmentAccountOwnershipInformation7 jntOwnr) {
getJntOwnr().add(jntOwnr);
return this;
}
}