com.prowidesoftware.swift.model.mx.dic.AcceptanceResult6 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;
/**
* Set of elements used to provide detailed information on the acceptance result.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AcceptanceResult6", propOrder = {
"accptd",
"rjctRsn",
"addtlRjctRsnInf"
})
public class AcceptanceResult6 {
@XmlElement(name = "Accptd")
protected boolean accptd;
@XmlElement(name = "RjctRsn")
protected MandateReason1Choice rjctRsn;
@XmlElement(name = "AddtlRjctRsnInf")
protected List addtlRjctRsnInf;
/**
* Gets the value of the accptd property.
*
*/
public boolean isAccptd() {
return accptd;
}
/**
* Sets the value of the accptd property.
*
*/
public AcceptanceResult6 setAccptd(boolean value) {
this.accptd = value;
return this;
}
/**
* Gets the value of the rjctRsn property.
*
* @return
* possible object is
* {@link MandateReason1Choice }
*
*/
public MandateReason1Choice getRjctRsn() {
return rjctRsn;
}
/**
* Sets the value of the rjctRsn property.
*
* @param value
* allowed object is
* {@link MandateReason1Choice }
*
*/
public AcceptanceResult6 setRjctRsn(MandateReason1Choice value) {
this.rjctRsn = value;
return this;
}
/**
* Gets the value of the addtlRjctRsnInf 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 addtlRjctRsnInf property.
*
*
* For example, to add a new item, do as follows:
*
* getAddtlRjctRsnInf().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getAddtlRjctRsnInf() {
if (addtlRjctRsnInf == null) {
addtlRjctRsnInf = new ArrayList();
}
return this.addtlRjctRsnInf;
}
@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 addtlRjctRsnInf list.
* @see #getAddtlRjctRsnInf()
*
*/
public AcceptanceResult6 addAddtlRjctRsnInf(String addtlRjctRsnInf) {
getAddtlRjctRsnInf().add(addtlRjctRsnInf);
return this;
}
}