com.prowidesoftware.swift.model.mx.dic.DeliverInformation2 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;
/**
* Completion of a securities settlement instruction, wherein securities are delivered/debited from a securities account and received/credited to the designated securities account.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DeliverInformation2", propOrder = {
"chrgDtls",
"taxDtls",
"sttlmPtiesDtls",
"physTrfInd",
"physTrfDtls"
})
public class DeliverInformation2 {
@XmlElement(name = "ChrgDtls")
protected List chrgDtls;
@XmlElement(name = "TaxDtls")
protected List taxDtls;
@XmlElement(name = "SttlmPtiesDtls", required = true)
protected DeliveringPartiesAndAccount1 sttlmPtiesDtls;
@XmlElement(name = "PhysTrfInd")
protected boolean physTrfInd;
@XmlElement(name = "PhysTrfDtls")
protected DeliveryParameters2 physTrfDtls;
/**
* Gets the value of the chrgDtls 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 chrgDtls property.
*
*
* For example, to add a new item, do as follows:
*
* getChrgDtls().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Charge4 }
*
*
*/
public List getChrgDtls() {
if (chrgDtls == null) {
chrgDtls = new ArrayList();
}
return this.chrgDtls;
}
/**
* Gets the value of the taxDtls 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 taxDtls property.
*
*
* For example, to add a new item, do as follows:
*
* getTaxDtls().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Tax3 }
*
*
*/
public List getTaxDtls() {
if (taxDtls == null) {
taxDtls = new ArrayList();
}
return this.taxDtls;
}
/**
* Gets the value of the sttlmPtiesDtls property.
*
* @return
* possible object is
* {@link DeliveringPartiesAndAccount1 }
*
*/
public DeliveringPartiesAndAccount1 getSttlmPtiesDtls() {
return sttlmPtiesDtls;
}
/**
* Sets the value of the sttlmPtiesDtls property.
*
* @param value
* allowed object is
* {@link DeliveringPartiesAndAccount1 }
*
*/
public DeliverInformation2 setSttlmPtiesDtls(DeliveringPartiesAndAccount1 value) {
this.sttlmPtiesDtls = value;
return this;
}
/**
* Gets the value of the physTrfInd property.
*
*/
public boolean isPhysTrfInd() {
return physTrfInd;
}
/**
* Sets the value of the physTrfInd property.
*
*/
public DeliverInformation2 setPhysTrfInd(boolean value) {
this.physTrfInd = value;
return this;
}
/**
* Gets the value of the physTrfDtls property.
*
* @return
* possible object is
* {@link DeliveryParameters2 }
*
*/
public DeliveryParameters2 getPhysTrfDtls() {
return physTrfDtls;
}
/**
* Sets the value of the physTrfDtls property.
*
* @param value
* allowed object is
* {@link DeliveryParameters2 }
*
*/
public DeliverInformation2 setPhysTrfDtls(DeliveryParameters2 value) {
this.physTrfDtls = 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 chrgDtls list.
* @see #getChrgDtls()
*
*/
public DeliverInformation2 addChrgDtls(Charge4 chrgDtls) {
getChrgDtls().add(chrgDtls);
return this;
}
/**
* Adds a new item to the taxDtls list.
* @see #getTaxDtls()
*
*/
public DeliverInformation2 addTaxDtls(Tax3 taxDtls) {
getTaxDtls().add(taxDtls);
return this;
}
}