com.prowidesoftware.swift.model.mx.dic.CCPPortfolioStressTestingDefinitionReportV01 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 jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.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;
/**
* The CCPPortfolioStressTestingDefinitionReport message is sent from the central counterparty to the national competent authority. It is used to inform the national competent authority about how the central counterparty defines stress scenarios used to stress clearing member portfolios.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CCPPortfolioStressTestingDefinitionReportV01", propOrder = {
"scnroDef",
"splmtryData"
})
public class CCPPortfolioStressTestingDefinitionReportV01 {
@XmlElement(name = "ScnroDef", required = true)
protected List scnroDef;
@XmlElement(name = "SplmtryData")
protected List splmtryData;
/**
* Gets the value of the scnroDef 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 scnroDef property.
*
*
* For example, to add a new item, do as follows:
*
* getScnroDef().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ScenarioDefinition1 }
*
*
* @return
* The value of the scnroDef property.
*/
public List getScnroDef() {
if (scnroDef == null) {
scnroDef = new ArrayList<>();
}
return this.scnroDef;
}
/**
* Gets the value of the splmtryData 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 splmtryData property.
*
*
* For example, to add a new item, do as follows:
*
* getSplmtryData().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link SupplementaryData1 }
*
*
* @return
* The value of the splmtryData property.
*/
public List getSplmtryData() {
if (splmtryData == null) {
splmtryData = new ArrayList<>();
}
return this.splmtryData;
}
@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 scnroDef list.
* @see #getScnroDef()
*
*/
public CCPPortfolioStressTestingDefinitionReportV01 addScnroDef(ScenarioDefinition1 scnroDef) {
getScnroDef().add(scnroDef);
return this;
}
/**
* Adds a new item to the splmtryData list.
* @see #getSplmtryData()
*
*/
public CCPPortfolioStressTestingDefinitionReportV01 addSplmtryData(SupplementaryData1 splmtryData) {
getSplmtryData().add(splmtryData);
return this;
}
}