com.prowidesoftware.swift.model.mx.dic.CostsAndCharges1 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;
/**
* Costs and charges associated with the distribution or selling of a financial instrument. These may be one-off or recurring charges. These may be intended (ex ante) or actual (ex post).
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CostsAndCharges1", propOrder = {
"exAnteRefDt",
"exPstRefDt",
"indvCostOrChrg",
"addtlInf"
})
public class CostsAndCharges1 {
@XmlElement(name = "ExAnteRefDt")
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar exAnteRefDt;
@XmlElement(name = "ExPstRefDt")
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar exPstRefDt;
@XmlElement(name = "IndvCostOrChrg", required = true)
protected List indvCostOrChrg;
@XmlElement(name = "AddtlInf")
protected AdditionalInformation15 addtlInf;
/**
* Gets the value of the exAnteRefDt property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getExAnteRefDt() {
return exAnteRefDt;
}
/**
* Sets the value of the exAnteRefDt property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public CostsAndCharges1 setExAnteRefDt(XMLGregorianCalendar value) {
this.exAnteRefDt = value;
return this;
}
/**
* Gets the value of the exPstRefDt property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getExPstRefDt() {
return exPstRefDt;
}
/**
* Sets the value of the exPstRefDt property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public CostsAndCharges1 setExPstRefDt(XMLGregorianCalendar value) {
this.exPstRefDt = value;
return this;
}
/**
* Gets the value of the indvCostOrChrg 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 indvCostOrChrg property.
*
*
* For example, to add a new item, do as follows:
*
* getIndvCostOrChrg().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link IndividualCostOrCharge1 }
*
*
*/
public List getIndvCostOrChrg() {
if (indvCostOrChrg == null) {
indvCostOrChrg = new ArrayList();
}
return this.indvCostOrChrg;
}
/**
* Gets the value of the addtlInf property.
*
* @return
* possible object is
* {@link AdditionalInformation15 }
*
*/
public AdditionalInformation15 getAddtlInf() {
return addtlInf;
}
/**
* Sets the value of the addtlInf property.
*
* @param value
* allowed object is
* {@link AdditionalInformation15 }
*
*/
public CostsAndCharges1 setAddtlInf(AdditionalInformation15 value) {
this.addtlInf = 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 indvCostOrChrg list.
* @see #getIndvCostOrChrg()
*
*/
public CostsAndCharges1 addIndvCostOrChrg(IndividualCostOrCharge1 indvCostOrChrg) {
getIndvCostOrChrg().add(indvCostOrChrg);
return this;
}
}