com.prowidesoftware.swift.model.mx.dic.IndividualPerson32 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import com.prowidesoftware.swift.model.mx.adapters.IsoDateAdapter;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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 = "IndividualPerson32", propOrder = {
"nm",
"birthDt",
"ctryAndResdtlSts",
"othrId"
})
public class IndividualPerson32 {
@XmlElement(name = "Nm")
protected String nm;
@XmlElement(name = "BirthDt", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate birthDt;
@XmlElement(name = "CtryAndResdtlSts")
protected CountryAndResidentialStatusType2 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 IndividualPerson32 setNm(String value) {
this.nm = value;
return this;
}
/**
* Gets the value of the birthDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getBirthDt() {
return birthDt;
}
/**
* Sets the value of the birthDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public IndividualPerson32 setBirthDt(LocalDate value) {
this.birthDt = value;
return this;
}
/**
* Gets the value of the ctryAndResdtlSts property.
*
* @return
* possible object is
* {@link CountryAndResidentialStatusType2 }
*
*/
public CountryAndResidentialStatusType2 getCtryAndResdtlSts() {
return ctryAndResdtlSts;
}
/**
* Sets the value of the ctryAndResdtlSts property.
*
* @param value
* allowed object is
* {@link CountryAndResidentialStatusType2 }
*
*/
public IndividualPerson32 setCtryAndResdtlSts(CountryAndResidentialStatusType2 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 Jakarta XML Binding object.
* This is why there is not a {@code 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 GenericIdentification164 }
*
*
* @return
* The value of the othrId property.
*/
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 IndividualPerson32 addOthrId(GenericIdentification164 othrId) {
getOthrId().add(othrId);
return this;
}
}