
com.prowidesoftware.swift.model.mx.dic.MessageAndBusinessReference2 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;
/**
* Information about the message reference of the message for which the status is requested and the business reference of the order.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MessageAndBusinessReference2", propOrder = {
"othrRef",
"prvsRef",
"indvOrdrRef",
"invstmtAcct"
})
public class MessageAndBusinessReference2 {
@XmlElement(name = "OthrRef")
protected AdditionalReference3 othrRef;
@XmlElement(name = "PrvsRef")
protected AdditionalReference3 prvsRef;
@XmlElement(name = "IndvOrdrRef")
protected List indvOrdrRef;
@XmlElement(name = "InvstmtAcct")
protected InvestmentAccount13 invstmtAcct;
/**
* Gets the value of the othrRef property.
*
* @return
* possible object is
* {@link AdditionalReference3 }
*
*/
public AdditionalReference3 getOthrRef() {
return othrRef;
}
/**
* Sets the value of the othrRef property.
*
* @param value
* allowed object is
* {@link AdditionalReference3 }
*
*/
public MessageAndBusinessReference2 setOthrRef(AdditionalReference3 value) {
this.othrRef = value;
return this;
}
/**
* Gets the value of the prvsRef property.
*
* @return
* possible object is
* {@link AdditionalReference3 }
*
*/
public AdditionalReference3 getPrvsRef() {
return prvsRef;
}
/**
* Sets the value of the prvsRef property.
*
* @param value
* allowed object is
* {@link AdditionalReference3 }
*
*/
public MessageAndBusinessReference2 setPrvsRef(AdditionalReference3 value) {
this.prvsRef = value;
return this;
}
/**
* Gets the value of the indvOrdrRef 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 indvOrdrRef property.
*
*
* For example, to add a new item, do as follows:
*
* getIndvOrdrRef().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getIndvOrdrRef() {
if (indvOrdrRef == null) {
indvOrdrRef = new ArrayList();
}
return this.indvOrdrRef;
}
/**
* Gets the value of the invstmtAcct property.
*
* @return
* possible object is
* {@link InvestmentAccount13 }
*
*/
public InvestmentAccount13 getInvstmtAcct() {
return invstmtAcct;
}
/**
* Sets the value of the invstmtAcct property.
*
* @param value
* allowed object is
* {@link InvestmentAccount13 }
*
*/
public MessageAndBusinessReference2 setInvstmtAcct(InvestmentAccount13 value) {
this.invstmtAcct = value;
return this;
}
@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 indvOrdrRef list.
* @see #getIndvOrdrRef()
*
*/
public MessageAndBusinessReference2 addIndvOrdrRef(String indvOrdrRef) {
getIndvOrdrRef().add(indvOrdrRef);
return this;
}
}