com.prowidesoftware.swift.model.mx.dic.PartyIdentification129 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;
/**
* Set of elements used to identify a person or an organisation.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PartyIdentification129", propOrder = {
"id",
"nm",
"pstlAdr",
"ctryOfRes",
"ctctDtls"
})
public class PartyIdentification129 {
@XmlElement(name = "Id")
protected Party36Choice id;
@XmlElement(name = "Nm")
protected String nm;
@XmlElement(name = "PstlAdr")
protected PostalAddress6 pstlAdr;
@XmlElement(name = "CtryOfRes")
protected String ctryOfRes;
@XmlElement(name = "CtctDtls")
protected List ctctDtls;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link Party36Choice }
*
*/
public Party36Choice getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link Party36Choice }
*
*/
public PartyIdentification129 setId(Party36Choice value) {
this.id = value;
return this;
}
/**
* Gets the value of the nm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNm() {
return nm;
}
/**
* Sets the value of the nm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public PartyIdentification129 setNm(String value) {
this.nm = value;
return this;
}
/**
* Gets the value of the pstlAdr property.
*
* @return
* possible object is
* {@link PostalAddress6 }
*
*/
public PostalAddress6 getPstlAdr() {
return pstlAdr;
}
/**
* Sets the value of the pstlAdr property.
*
* @param value
* allowed object is
* {@link PostalAddress6 }
*
*/
public PartyIdentification129 setPstlAdr(PostalAddress6 value) {
this.pstlAdr = value;
return this;
}
/**
* Gets the value of the ctryOfRes property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCtryOfRes() {
return ctryOfRes;
}
/**
* Sets the value of the ctryOfRes property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public PartyIdentification129 setCtryOfRes(String value) {
this.ctryOfRes = value;
return this;
}
/**
* Gets the value of the ctctDtls 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 ctctDtls property.
*
*
* For example, to add a new item, do as follows:
*
* getCtctDtls().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Contacts3 }
*
*
*/
public List getCtctDtls() {
if (ctctDtls == null) {
ctctDtls = new ArrayList();
}
return this.ctctDtls;
}
@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 ctctDtls list.
* @see #getCtctDtls()
*
*/
public PartyIdentification129 addCtctDtls(Contacts3 ctctDtls) {
getCtctDtls().add(ctctDtls);
return this;
}
}