com.prowidesoftware.swift.model.mx.dic.StatementGroup3 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;
/**
* Group of the statement header reporting the bank services billing and the billing statement.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "StatementGroup3", propOrder = {
"grpId",
"sndr",
"sndrIndvCtct",
"rcvr",
"rcvrIndvCtct",
"bllgStmt"
})
public class StatementGroup3 {
@XmlElement(name = "GrpId", required = true)
protected String grpId;
@XmlElement(name = "Sndr", required = true)
protected PartyIdentification138 sndr;
@XmlElement(name = "SndrIndvCtct")
protected List sndrIndvCtct;
@XmlElement(name = "Rcvr", required = true)
protected PartyIdentification138 rcvr;
@XmlElement(name = "RcvrIndvCtct")
protected List rcvrIndvCtct;
@XmlElement(name = "BllgStmt", required = true)
protected List bllgStmt;
/**
* Gets the value of the grpId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getGrpId() {
return grpId;
}
/**
* Sets the value of the grpId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public StatementGroup3 setGrpId(String value) {
this.grpId = value;
return this;
}
/**
* Gets the value of the sndr property.
*
* @return
* possible object is
* {@link PartyIdentification138 }
*
*/
public PartyIdentification138 getSndr() {
return sndr;
}
/**
* Sets the value of the sndr property.
*
* @param value
* allowed object is
* {@link PartyIdentification138 }
*
*/
public StatementGroup3 setSndr(PartyIdentification138 value) {
this.sndr = value;
return this;
}
/**
* Gets the value of the sndrIndvCtct 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 sndrIndvCtct property.
*
*
* For example, to add a new item, do as follows:
*
* getSndrIndvCtct().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Contact4 }
*
*
*/
public List getSndrIndvCtct() {
if (sndrIndvCtct == null) {
sndrIndvCtct = new ArrayList();
}
return this.sndrIndvCtct;
}
/**
* Gets the value of the rcvr property.
*
* @return
* possible object is
* {@link PartyIdentification138 }
*
*/
public PartyIdentification138 getRcvr() {
return rcvr;
}
/**
* Sets the value of the rcvr property.
*
* @param value
* allowed object is
* {@link PartyIdentification138 }
*
*/
public StatementGroup3 setRcvr(PartyIdentification138 value) {
this.rcvr = value;
return this;
}
/**
* Gets the value of the rcvrIndvCtct 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 rcvrIndvCtct property.
*
*
* For example, to add a new item, do as follows:
*
* getRcvrIndvCtct().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Contact4 }
*
*
*/
public List getRcvrIndvCtct() {
if (rcvrIndvCtct == null) {
rcvrIndvCtct = new ArrayList();
}
return this.rcvrIndvCtct;
}
/**
* Gets the value of the bllgStmt 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 bllgStmt property.
*
*
* For example, to add a new item, do as follows:
*
* getBllgStmt().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link BillingStatement3 }
*
*
*/
public List getBllgStmt() {
if (bllgStmt == null) {
bllgStmt = new ArrayList();
}
return this.bllgStmt;
}
@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 sndrIndvCtct list.
* @see #getSndrIndvCtct()
*
*/
public StatementGroup3 addSndrIndvCtct(Contact4 sndrIndvCtct) {
getSndrIndvCtct().add(sndrIndvCtct);
return this;
}
/**
* Adds a new item to the rcvrIndvCtct list.
* @see #getRcvrIndvCtct()
*
*/
public StatementGroup3 addRcvrIndvCtct(Contact4 rcvrIndvCtct) {
getRcvrIndvCtct().add(rcvrIndvCtct);
return this;
}
/**
* Adds a new item to the bllgStmt list.
* @see #getBllgStmt()
*
*/
public StatementGroup3 addBllgStmt(BillingStatement3 bllgStmt) {
getBllgStmt().add(bllgStmt);
return this;
}
}