com.prowidesoftware.swift.model.mx.dic.ContractRegistration3 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;
/**
* Currency control contract registration details.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ContractRegistration3", propOrder = {
"ctrctRegnId",
"rptgPty",
"regnAgt",
"ctrctRegnOpng",
"splmtryData"
})
public class ContractRegistration3 {
@XmlElement(name = "CtrctRegnId", required = true)
protected String ctrctRegnId;
@XmlElement(name = "RptgPty", required = true)
protected TradeParty5 rptgPty;
@XmlElement(name = "RegnAgt", required = true)
protected BranchAndFinancialInstitutionIdentification6 regnAgt;
@XmlElement(name = "CtrctRegnOpng", required = true)
protected List ctrctRegnOpng;
@XmlElement(name = "SplmtryData")
protected List splmtryData;
/**
* Gets the value of the ctrctRegnId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCtrctRegnId() {
return ctrctRegnId;
}
/**
* Sets the value of the ctrctRegnId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public ContractRegistration3 setCtrctRegnId(String value) {
this.ctrctRegnId = value;
return this;
}
/**
* Gets the value of the rptgPty property.
*
* @return
* possible object is
* {@link TradeParty5 }
*
*/
public TradeParty5 getRptgPty() {
return rptgPty;
}
/**
* Sets the value of the rptgPty property.
*
* @param value
* allowed object is
* {@link TradeParty5 }
*
*/
public ContractRegistration3 setRptgPty(TradeParty5 value) {
this.rptgPty = value;
return this;
}
/**
* Gets the value of the regnAgt property.
*
* @return
* possible object is
* {@link BranchAndFinancialInstitutionIdentification6 }
*
*/
public BranchAndFinancialInstitutionIdentification6 getRegnAgt() {
return regnAgt;
}
/**
* Sets the value of the regnAgt property.
*
* @param value
* allowed object is
* {@link BranchAndFinancialInstitutionIdentification6 }
*
*/
public ContractRegistration3 setRegnAgt(BranchAndFinancialInstitutionIdentification6 value) {
this.regnAgt = value;
return this;
}
/**
* Gets the value of the ctrctRegnOpng 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 ctrctRegnOpng property.
*
*
* For example, to add a new item, do as follows:
*
* getCtrctRegnOpng().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ContractRegistration4 }
*
*
* @return
* The value of the ctrctRegnOpng property.
*/
public List getCtrctRegnOpng() {
if (ctrctRegnOpng == null) {
ctrctRegnOpng = new ArrayList<>();
}
return this.ctrctRegnOpng;
}
/**
* 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 ctrctRegnOpng list.
* @see #getCtrctRegnOpng()
*
*/
public ContractRegistration3 addCtrctRegnOpng(ContractRegistration4 ctrctRegnOpng) {
getCtrctRegnOpng().add(ctrctRegnOpng);
return this;
}
/**
* Adds a new item to the splmtryData list.
* @see #getSplmtryData()
*
*/
public ContractRegistration3 addSplmtryData(SupplementaryData1 splmtryData) {
getSplmtryData().add(splmtryData);
return this;
}
}