com.prowidesoftware.swift.model.mx.dic.CreditDefaultSwapIndex2 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.math.BigDecimal;
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;
/**
* Credit default swap derivative specific for reporting derivatives on a credit default swap index.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CreditDefaultSwapIndex2", propOrder = {
"srs",
"vrsn",
"rollMnth",
"nxtRollDt",
"ntnlCcy"
})
public class CreditDefaultSwapIndex2 {
@XmlElement(name = "Srs")
protected BigDecimal srs;
@XmlElement(name = "Vrsn")
protected BigDecimal vrsn;
@XmlElement(name = "RollMnth")
protected List rollMnth;
@XmlElement(name = "NxtRollDt")
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar nxtRollDt;
@XmlElement(name = "NtnlCcy", required = true)
protected String ntnlCcy;
/**
* Gets the value of the srs property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getSrs() {
return srs;
}
/**
* Sets the value of the srs property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public CreditDefaultSwapIndex2 setSrs(BigDecimal value) {
this.srs = value;
return this;
}
/**
* Gets the value of the vrsn property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getVrsn() {
return vrsn;
}
/**
* Sets the value of the vrsn property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public CreditDefaultSwapIndex2 setVrsn(BigDecimal value) {
this.vrsn = value;
return this;
}
/**
* Gets the value of the rollMnth 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 rollMnth property.
*
*
* For example, to add a new item, do as follows:
*
* getRollMnth().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link BigDecimal }
*
*
*/
public List getRollMnth() {
if (rollMnth == null) {
rollMnth = new ArrayList();
}
return this.rollMnth;
}
/**
* Gets the value of the nxtRollDt property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getNxtRollDt() {
return nxtRollDt;
}
/**
* Sets the value of the nxtRollDt property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public CreditDefaultSwapIndex2 setNxtRollDt(XMLGregorianCalendar value) {
this.nxtRollDt = value;
return this;
}
/**
* Gets the value of the ntnlCcy property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNtnlCcy() {
return ntnlCcy;
}
/**
* Sets the value of the ntnlCcy property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CreditDefaultSwapIndex2 setNtnlCcy(String value) {
this.ntnlCcy = value;
return this;
}
@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 rollMnth list.
* @see #getRollMnth()
*
*/
public CreditDefaultSwapIndex2 addRollMnth(BigDecimal rollMnth) {
getRollMnth().add(rollMnth);
return this;
}
}