com.prowidesoftware.swift.model.mx.dic.OriginalGroupHeader16 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.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;
/**
* Provides details on the original group, to which the message refers.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OriginalGroupHeader16", propOrder = {
"orgnlMsgId",
"orgnlMsgNmId",
"orgnlCreDtTm",
"rvslRsnInf"
})
public class OriginalGroupHeader16 {
@XmlElement(name = "OrgnlMsgId", required = true)
protected String orgnlMsgId;
@XmlElement(name = "OrgnlMsgNmId", required = true)
protected String orgnlMsgNmId;
@XmlElement(name = "OrgnlCreDtTm")
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar orgnlCreDtTm;
@XmlElement(name = "RvslRsnInf")
protected List rvslRsnInf;
/**
* Gets the value of the orgnlMsgId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrgnlMsgId() {
return orgnlMsgId;
}
/**
* Sets the value of the orgnlMsgId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalGroupHeader16 setOrgnlMsgId(String value) {
this.orgnlMsgId = value;
return this;
}
/**
* Gets the value of the orgnlMsgNmId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrgnlMsgNmId() {
return orgnlMsgNmId;
}
/**
* Sets the value of the orgnlMsgNmId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalGroupHeader16 setOrgnlMsgNmId(String value) {
this.orgnlMsgNmId = value;
return this;
}
/**
* Gets the value of the orgnlCreDtTm property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getOrgnlCreDtTm() {
return orgnlCreDtTm;
}
/**
* Sets the value of the orgnlCreDtTm property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public OriginalGroupHeader16 setOrgnlCreDtTm(XMLGregorianCalendar value) {
this.orgnlCreDtTm = value;
return this;
}
/**
* Gets the value of the rvslRsnInf 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 rvslRsnInf property.
*
*
* For example, to add a new item, do as follows:
*
* getRvslRsnInf().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PaymentReversalReason9 }
*
*
*/
public List getRvslRsnInf() {
if (rvslRsnInf == null) {
rvslRsnInf = new ArrayList();
}
return this.rvslRsnInf;
}
@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 rvslRsnInf list.
* @see #getRvslRsnInf()
*
*/
public OriginalGroupHeader16 addRvslRsnInf(PaymentReversalReason9 rvslRsnInf) {
getRvslRsnInf().add(rvslRsnInf);
return this;
}
}