com.prowidesoftware.swift.model.mx.dic.VoteMethods2 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 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;
/**
* List of the different methods that can be used to vote.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "VoteMethods2", propOrder = {
"voteThrghNtwk",
"voteByMail",
"elctrncVote",
"voteByTel"
})
public class VoteMethods2 {
@XmlElement(name = "VoteThrghNtwk")
protected List voteThrghNtwk;
@XmlElement(name = "VoteByMail")
protected List voteByMail;
@XmlElement(name = "ElctrncVote")
protected List elctrncVote;
@XmlElement(name = "VoteByTel")
protected List voteByTel;
/**
* Gets the value of the voteThrghNtwk 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 voteThrghNtwk property.
*
*
* For example, to add a new item, do as follows:
*
* getVoteThrghNtwk().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
* @return
* The value of the voteThrghNtwk property.
*/
public List getVoteThrghNtwk() {
if (voteThrghNtwk == null) {
voteThrghNtwk = new ArrayList<>();
}
return this.voteThrghNtwk;
}
/**
* Gets the value of the voteByMail 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 voteByMail property.
*
*
* For example, to add a new item, do as follows:
*
* getVoteByMail().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PostalAddress1 }
*
*
* @return
* The value of the voteByMail property.
*/
public List getVoteByMail() {
if (voteByMail == null) {
voteByMail = new ArrayList<>();
}
return this.voteByMail;
}
/**
* Gets the value of the elctrncVote 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 elctrncVote property.
*
*
* For example, to add a new item, do as follows:
*
* getElctrncVote().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CommunicationAddress4 }
*
*
* @return
* The value of the elctrncVote property.
*/
public List getElctrncVote() {
if (elctrncVote == null) {
elctrncVote = new ArrayList<>();
}
return this.elctrncVote;
}
/**
* Gets the value of the voteByTel 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 voteByTel property.
*
*
* For example, to add a new item, do as follows:
*
* getVoteByTel().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
* @return
* The value of the voteByTel property.
*/
public List getVoteByTel() {
if (voteByTel == null) {
voteByTel = new ArrayList<>();
}
return this.voteByTel;
}
@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 voteThrghNtwk list.
* @see #getVoteThrghNtwk()
*
*/
public VoteMethods2 addVoteThrghNtwk(String voteThrghNtwk) {
getVoteThrghNtwk().add(voteThrghNtwk);
return this;
}
/**
* Adds a new item to the voteByMail list.
* @see #getVoteByMail()
*
*/
public VoteMethods2 addVoteByMail(PostalAddress1 voteByMail) {
getVoteByMail().add(voteByMail);
return this;
}
/**
* Adds a new item to the elctrncVote list.
* @see #getElctrncVote()
*
*/
public VoteMethods2 addElctrncVote(CommunicationAddress4 elctrncVote) {
getElctrncVote().add(elctrncVote);
return this;
}
/**
* Adds a new item to the voteByTel list.
* @see #getVoteByTel()
*
*/
public VoteMethods2 addVoteByTel(String voteByTel) {
getVoteByTel().add(voteByTel);
return this;
}
}