com.prowidesoftware.swift.model.mx.dic.Organisation29 Maven / Gradle / Ivy
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;
/**
* Organised structure that is set up for a particular purpose, for example, a business, government body, department, charity, or financial institution.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Organisation29", propOrder = {
"nm",
"shrtNm",
"id",
"lglNttyIdr",
"purp",
"regnCtry",
"regnDt",
"modfdPstlAdr",
"tpOfOrg",
"plcOfListg"
})
public class Organisation29 {
@XmlElement(name = "Nm")
protected String nm;
@XmlElement(name = "ShrtNm")
protected String shrtNm;
@XmlElement(name = "Id")
protected PartyIdentification72Choice id;
@XmlElement(name = "LglNttyIdr")
protected String lglNttyIdr;
@XmlElement(name = "Purp")
protected String purp;
@XmlElement(name = "RegnCtry")
protected String regnCtry;
@XmlElement(name = "RegnDt", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate regnDt;
@XmlElement(name = "ModfdPstlAdr")
protected List modfdPstlAdr;
@XmlElement(name = "TpOfOrg")
protected OrganisationType1Choice tpOfOrg;
@XmlElement(name = "PlcOfListg")
protected List plcOfListg;
/**
* 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 Organisation29 setNm(String value) {
this.nm = value;
return this;
}
/**
* Gets the value of the shrtNm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getShrtNm() {
return shrtNm;
}
/**
* Sets the value of the shrtNm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Organisation29 setShrtNm(String value) {
this.shrtNm = value;
return this;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link PartyIdentification72Choice }
*
*/
public PartyIdentification72Choice getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link PartyIdentification72Choice }
*
*/
public Organisation29 setId(PartyIdentification72Choice value) {
this.id = value;
return this;
}
/**
* Gets the value of the lglNttyIdr property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLglNttyIdr() {
return lglNttyIdr;
}
/**
* Sets the value of the lglNttyIdr property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Organisation29 setLglNttyIdr(String value) {
this.lglNttyIdr = value;
return this;
}
/**
* Gets the value of the purp property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPurp() {
return purp;
}
/**
* Sets the value of the purp property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Organisation29 setPurp(String value) {
this.purp = value;
return this;
}
/**
* Gets the value of the regnCtry property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRegnCtry() {
return regnCtry;
}
/**
* Sets the value of the regnCtry property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Organisation29 setRegnCtry(String value) {
this.regnCtry = value;
return this;
}
/**
* Gets the value of the regnDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getRegnDt() {
return regnDt;
}
/**
* Sets the value of the regnDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Organisation29 setRegnDt(LocalDate value) {
this.regnDt = value;
return this;
}
/**
* Gets the value of the modfdPstlAdr 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 modfdPstlAdr property.
*
*
* For example, to add a new item, do as follows:
*
* getModfdPstlAdr().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ModificationScope34 }
*
*
* @return
* The value of the modfdPstlAdr property.
*/
public List getModfdPstlAdr() {
if (modfdPstlAdr == null) {
modfdPstlAdr = new ArrayList<>();
}
return this.modfdPstlAdr;
}
/**
* Gets the value of the tpOfOrg property.
*
* @return
* possible object is
* {@link OrganisationType1Choice }
*
*/
public OrganisationType1Choice getTpOfOrg() {
return tpOfOrg;
}
/**
* Sets the value of the tpOfOrg property.
*
* @param value
* allowed object is
* {@link OrganisationType1Choice }
*
*/
public Organisation29 setTpOfOrg(OrganisationType1Choice value) {
this.tpOfOrg = value;
return this;
}
/**
* Gets the value of the plcOfListg 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 plcOfListg property.
*
*
* For example, to add a new item, do as follows:
*
* getPlcOfListg().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
* @return
* The value of the plcOfListg property.
*/
public List getPlcOfListg() {
if (plcOfListg == null) {
plcOfListg = new ArrayList<>();
}
return this.plcOfListg;
}
@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 modfdPstlAdr list.
* @see #getModfdPstlAdr()
*
*/
public Organisation29 addModfdPstlAdr(ModificationScope34 modfdPstlAdr) {
getModfdPstlAdr().add(modfdPstlAdr);
return this;
}
/**
* Adds a new item to the plcOfListg list.
* @see #getPlcOfListg()
*
*/
public Organisation29 addPlcOfListg(String plcOfListg) {
getPlcOfListg().add(plcOfListg);
return this;
}
}