com.prowidesoftware.swift.model.mx.dic.VoteMethods5 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;
/**
* Information about the vote methods to be used.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "VoteMethods5", propOrder = {
"voteThrghNtwk",
"voteByMail",
"elctrncVote",
"voteByTel"
})
public class VoteMethods5 {
@XmlElement(name = "VoteThrghNtwk")
protected VoteThroughNetwork1Choice voteThrghNtwk;
@XmlElement(name = "VoteByMail")
protected MailAddress1 voteByMail;
@XmlElement(name = "ElctrncVote")
protected List elctrncVote;
@XmlElement(name = "VoteByTel")
protected List voteByTel;
/**
* Gets the value of the voteThrghNtwk property.
*
* @return
* possible object is
* {@link VoteThroughNetwork1Choice }
*
*/
public VoteThroughNetwork1Choice getVoteThrghNtwk() {
return voteThrghNtwk;
}
/**
* Sets the value of the voteThrghNtwk property.
*
* @param value
* allowed object is
* {@link VoteThroughNetwork1Choice }
*
*/
public VoteMethods5 setVoteThrghNtwk(VoteThroughNetwork1Choice value) {
this.voteThrghNtwk = value;
return this;
}
/**
* Gets the value of the voteByMail property.
*
* @return
* possible object is
* {@link MailAddress1 }
*
*/
public MailAddress1 getVoteByMail() {
return voteByMail;
}
/**
* Sets the value of the voteByMail property.
*
* @param value
* allowed object is
* {@link MailAddress1 }
*
*/
public VoteMethods5 setVoteByMail(MailAddress1 value) {
this.voteByMail = value;
return this;
}
/**
* 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 CommunicationAddress12 }
*
*
* @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 elctrncVote list.
* @see #getElctrncVote()
*
*/
public VoteMethods5 addElctrncVote(CommunicationAddress12 elctrncVote) {
getElctrncVote().add(elctrncVote);
return this;
}
/**
* Adds a new item to the voteByTel list.
* @see #getVoteByTel()
*
*/
public VoteMethods5 addVoteByTel(String voteByTel) {
getVoteByTel().add(voteByTel);
return this;
}
}