com.prowidesoftware.swift.model.mx.dic.IndividualPerson12 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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
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;
/**
* Human entity, as distinguished from a corporate entity (which is sometimes referred to as an 'artificial person').
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "IndividualPerson12", propOrder = {
"nm",
"birthDt",
"ctryAndResdtlSts",
"othrId"
})
public class IndividualPerson12 {
@XmlElement(name = "Nm")
protected String nm;
@XmlElement(name = "BirthDt")
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar birthDt;
@XmlElement(name = "CtryAndResdtlSts")
protected CountryAndResidentialStatusType1 ctryAndResdtlSts;
@XmlElement(name = "OthrId")
protected List othrId;
/**
* 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 IndividualPerson12 setNm(String value) {
this.nm = value;
return this;
}
/**
* Gets the value of the birthDt property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getBirthDt() {
return birthDt;
}
/**
* Sets the value of the birthDt property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public IndividualPerson12 setBirthDt(XMLGregorianCalendar value) {
this.birthDt = value;
return this;
}
/**
* Gets the value of the ctryAndResdtlSts property.
*
* @return
* possible object is
* {@link CountryAndResidentialStatusType1 }
*
*/
public CountryAndResidentialStatusType1 getCtryAndResdtlSts() {
return ctryAndResdtlSts;
}
/**
* Sets the value of the ctryAndResdtlSts property.
*
* @param value
* allowed object is
* {@link CountryAndResidentialStatusType1 }
*
*/
public IndividualPerson12 setCtryAndResdtlSts(CountryAndResidentialStatusType1 value) {
this.ctryAndResdtlSts = value;
return this;
}
/**
* Gets the value of the othrId 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 othrId property.
*
*
* For example, to add a new item, do as follows:
*
* getOthrId().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link GenericIdentification11 }
*
*
*/
public List getOthrId() {
if (othrId == null) {
othrId = new ArrayList();
}
return this.othrId;
}
@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 othrId list.
* @see #getOthrId()
*
*/
public IndividualPerson12 addOthrId(GenericIdentification11 othrId) {
getOthrId().add(othrId);
return this;
}
}