com.prowidesoftware.swift.model.mx.dic.ATMTransaction28 Maven / Gradle / Ivy
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.XmlSchemaType;
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;
/**
* Acknowledgement of the exception advice.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ATMTransaction28", propOrder = {
"txId",
"rspn",
"cmd"
})
public class ATMTransaction28 {
@XmlElement(name = "TxId")
protected TransactionIdentifier1 txId;
@XmlElement(name = "Rspn", required = true)
@XmlSchemaType(name = "string")
protected Response2Code rspn;
@XmlElement(name = "Cmd")
protected List cmd;
/**
* Gets the value of the txId property.
*
* @return
* possible object is
* {@link TransactionIdentifier1 }
*
*/
public TransactionIdentifier1 getTxId() {
return txId;
}
/**
* Sets the value of the txId property.
*
* @param value
* allowed object is
* {@link TransactionIdentifier1 }
*
*/
public ATMTransaction28 setTxId(TransactionIdentifier1 value) {
this.txId = value;
return this;
}
/**
* Gets the value of the rspn property.
*
* @return
* possible object is
* {@link Response2Code }
*
*/
public Response2Code getRspn() {
return rspn;
}
/**
* Sets the value of the rspn property.
*
* @param value
* allowed object is
* {@link Response2Code }
*
*/
public ATMTransaction28 setRspn(Response2Code value) {
this.rspn = value;
return this;
}
/**
* Gets the value of the cmd 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 cmd property.
*
*
* For example, to add a new item, do as follows:
*
* getCmd().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ATMCommand7 }
*
*
* @return
* The value of the cmd property.
*/
public List getCmd() {
if (cmd == null) {
cmd = new ArrayList<>();
}
return this.cmd;
}
@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 cmd list.
* @see #getCmd()
*
*/
public ATMTransaction28 addCmd(ATMCommand7 cmd) {
getCmd().add(cmd);
return this;
}
}