com.prowidesoftware.swift.model.mx.dic.SequenceRange1Choice 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;
/**
* Specifies a choice of sequences.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SequenceRange1Choice", propOrder = {
"frSeq",
"toSeq",
"frToSeq",
"eqSeq",
"neqSeq"
})
public class SequenceRange1Choice {
@XmlElement(name = "FrSeq")
protected String frSeq;
@XmlElement(name = "ToSeq")
protected String toSeq;
@XmlElement(name = "FrToSeq")
protected List frToSeq;
@XmlElement(name = "EQSeq")
protected List eqSeq;
@XmlElement(name = "NEQSeq")
protected List neqSeq;
/**
* Gets the value of the frSeq property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFrSeq() {
return frSeq;
}
/**
* Sets the value of the frSeq property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SequenceRange1Choice setFrSeq(String value) {
this.frSeq = value;
return this;
}
/**
* Gets the value of the toSeq property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getToSeq() {
return toSeq;
}
/**
* Sets the value of the toSeq property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SequenceRange1Choice setToSeq(String value) {
this.toSeq = value;
return this;
}
/**
* Gets the value of the frToSeq 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 frToSeq property.
*
*
* For example, to add a new item, do as follows:
*
* getFrToSeq().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link SequenceRange1 }
*
*
*/
public List getFrToSeq() {
if (frToSeq == null) {
frToSeq = new ArrayList();
}
return this.frToSeq;
}
/**
* Gets the value of the eqSeq 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 eqSeq property.
*
*
* For example, to add a new item, do as follows:
*
* getEQSeq().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getEQSeq() {
if (eqSeq == null) {
eqSeq = new ArrayList();
}
return this.eqSeq;
}
/**
* Gets the value of the neqSeq 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 neqSeq property.
*
*
* For example, to add a new item, do as follows:
*
* getNEQSeq().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getNEQSeq() {
if (neqSeq == null) {
neqSeq = new ArrayList();
}
return this.neqSeq;
}
@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 frToSeq list.
* @see #getFrToSeq()
*
*/
public SequenceRange1Choice addFrToSeq(SequenceRange1 frToSeq) {
getFrToSeq().add(frToSeq);
return this;
}
/**
* Adds a new item to the eQSeq list.
* @see #getEQSeq()
*
*/
public SequenceRange1Choice addEQSeq(String eQSeq) {
getEQSeq().add(eQSeq);
return this;
}
/**
* Adds a new item to the nEQSeq list.
* @see #getNEQSeq()
*
*/
public SequenceRange1Choice addNEQSeq(String nEQSeq) {
getNEQSeq().add(nEQSeq);
return this;
}
}