com.prowidesoftware.swift.model.mx.dic.FinancialInstrumentIdentification3 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;
/**
* Identification of a security.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FinancialInstrumentIdentification3", propOrder = {
"id",
"nm",
"shrtNm",
"clssfctnTp",
"rstrctdInd",
"altrnScty"
})
public class FinancialInstrumentIdentification3 {
@XmlElement(name = "Id", required = true)
protected SecurityIdentification25Choice id;
@XmlElement(name = "Nm")
protected String nm;
@XmlElement(name = "ShrtNm")
protected String shrtNm;
@XmlElement(name = "ClssfctnTp")
protected ClassificationType32Choice clssfctnTp;
@XmlElement(name = "RstrctdInd")
protected Boolean rstrctdInd;
@XmlElement(name = "AltrnScty")
protected List altrnScty;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link SecurityIdentification25Choice }
*
*/
public SecurityIdentification25Choice getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link SecurityIdentification25Choice }
*
*/
public FinancialInstrumentIdentification3 setId(SecurityIdentification25Choice 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 FinancialInstrumentIdentification3 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 FinancialInstrumentIdentification3 setShrtNm(String value) {
this.shrtNm = value;
return this;
}
/**
* Gets the value of the clssfctnTp property.
*
* @return
* possible object is
* {@link ClassificationType32Choice }
*
*/
public ClassificationType32Choice getClssfctnTp() {
return clssfctnTp;
}
/**
* Sets the value of the clssfctnTp property.
*
* @param value
* allowed object is
* {@link ClassificationType32Choice }
*
*/
public FinancialInstrumentIdentification3 setClssfctnTp(ClassificationType32Choice value) {
this.clssfctnTp = value;
return this;
}
/**
* Gets the value of the rstrctdInd property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isRstrctdInd() {
return rstrctdInd;
}
/**
* Sets the value of the rstrctdInd property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public FinancialInstrumentIdentification3 setRstrctdInd(Boolean value) {
this.rstrctdInd = value;
return this;
}
/**
* Gets the value of the altrnScty 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 altrnScty property.
*
*
* For example, to add a new item, do as follows:
*
* getAltrnScty().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link FinancialInstrumentIdentification4 }
*
*
*/
public List getAltrnScty() {
if (altrnScty == null) {
altrnScty = new ArrayList();
}
return this.altrnScty;
}
@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 altrnScty list.
* @see #getAltrnScty()
*
*/
public FinancialInstrumentIdentification3 addAltrnScty(FinancialInstrumentIdentification4 altrnScty) {
getAltrnScty().add(altrnScty);
return this;
}
}