com.prowidesoftware.swift.model.mx.dic.Pension6 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.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;
/**
* Attributes of a pension.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Pension6", propOrder = {
"id",
"tp",
"trfScp",
"taxRef",
"drwdwnTrchId",
"nonWrpprTrf",
"addtlInf"
})
public class Pension6 {
@XmlElement(name = "Id")
protected PensionPolicy1 id;
@XmlElement(name = "Tp")
protected PensionSchemeType3Choice tp;
@XmlElement(name = "TrfScp")
protected PensionTransferScope1Choice trfScp;
@XmlElement(name = "TaxRef")
protected List taxRef;
@XmlElement(name = "DrwdwnTrchId")
protected String drwdwnTrchId;
@XmlElement(name = "NonWrpprTrf")
protected Boolean nonWrpprTrf;
@XmlElement(name = "AddtlInf")
protected List addtlInf;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link PensionPolicy1 }
*
*/
public PensionPolicy1 getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link PensionPolicy1 }
*
*/
public Pension6 setId(PensionPolicy1 value) {
this.id = value;
return this;
}
/**
* Gets the value of the tp property.
*
* @return
* possible object is
* {@link PensionSchemeType3Choice }
*
*/
public PensionSchemeType3Choice getTp() {
return tp;
}
/**
* Sets the value of the tp property.
*
* @param value
* allowed object is
* {@link PensionSchemeType3Choice }
*
*/
public Pension6 setTp(PensionSchemeType3Choice value) {
this.tp = value;
return this;
}
/**
* Gets the value of the trfScp property.
*
* @return
* possible object is
* {@link PensionTransferScope1Choice }
*
*/
public PensionTransferScope1Choice getTrfScp() {
return trfScp;
}
/**
* Sets the value of the trfScp property.
*
* @param value
* allowed object is
* {@link PensionTransferScope1Choice }
*
*/
public Pension6 setTrfScp(PensionTransferScope1Choice value) {
this.trfScp = value;
return this;
}
/**
* Gets the value of the taxRef 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 taxRef property.
*
*
* For example, to add a new item, do as follows:
*
* getTaxRef().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TaxReference1 }
*
*
* @return
* The value of the taxRef property.
*/
public List getTaxRef() {
if (taxRef == null) {
taxRef = new ArrayList<>();
}
return this.taxRef;
}
/**
* Gets the value of the drwdwnTrchId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDrwdwnTrchId() {
return drwdwnTrchId;
}
/**
* Sets the value of the drwdwnTrchId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Pension6 setDrwdwnTrchId(String value) {
this.drwdwnTrchId = value;
return this;
}
/**
* Gets the value of the nonWrpprTrf property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isNonWrpprTrf() {
return nonWrpprTrf;
}
/**
* Sets the value of the nonWrpprTrf property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public Pension6 setNonWrpprTrf(Boolean value) {
this.nonWrpprTrf = value;
return this;
}
/**
* Gets the value of the addtlInf 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 addtlInf property.
*
*
* For example, to add a new item, do as follows:
*
* getAddtlInf().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AdditionalInformation15 }
*
*
* @return
* The value of the addtlInf property.
*/
public List getAddtlInf() {
if (addtlInf == null) {
addtlInf = new ArrayList<>();
}
return this.addtlInf;
}
@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 taxRef list.
* @see #getTaxRef()
*
*/
public Pension6 addTaxRef(TaxReference1 taxRef) {
getTaxRef().add(taxRef);
return this;
}
/**
* Adds a new item to the addtlInf list.
* @see #getAddtlInf()
*
*/
public Pension6 addAddtlInf(AdditionalInformation15 addtlInf) {
getAddtlInf().add(addtlInf);
return this;
}
}