fish.focus.schema.exchange.v1.ExchangeListCriteria Maven / Gradle / Ivy
package fish.focus.schema.exchange.v1;
import java.io.Serializable;
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.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;
/**
* Java class for ExchangeListCriteria complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ExchangeListCriteria">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="isDynamic" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="criterias" type="{urn:exchange.schema.focus.fish:v1}ExchangeListCriteriaPair" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ExchangeListCriteria", propOrder = {
"isDynamic",
"criterias"
})
public class ExchangeListCriteria
implements Serializable
{
private final static long serialVersionUID = 1L;
protected Boolean isDynamic;
protected List criterias;
/**
* Gets the value of the isDynamic property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isIsDynamic() {
return isDynamic;
}
/**
* Sets the value of the isDynamic property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setIsDynamic(Boolean value) {
this.isDynamic = value;
}
/**
* Gets the value of the criterias 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 criterias property.
*
*
* For example, to add a new item, do as follows:
*
* getCriterias().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ExchangeListCriteriaPair }
*
*
*/
public List getCriterias() {
if (criterias == null) {
criterias = new ArrayList();
}
return this.criterias;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}