
org.meridor.fias.IntervalStatuses Maven / Gradle / Ivy
Show all versions of fias-client Show documentation
package org.meridor.fias;
import java.math.BigInteger;
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.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="IntervalStatus" maxOccurs="unbounded">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="INTVSTATID" use="required">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
* <totalDigits value="10"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="NAME" use="required">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <minLength value="1"/>
* <maxLength value="60"/>
* </restriction>
* </simpleType>
* </attribute>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"intervalStatus"
})
@XmlRootElement(name = "IntervalStatuses")
public class IntervalStatuses implements Equals
{
@XmlElement(name = "IntervalStatus", required = true)
protected List intervalStatus;
/**
* Gets the value of the intervalStatus 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 intervalStatus property.
*
*
* For example, to add a new item, do as follows:
*
* getIntervalStatus().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link IntervalStatuses.IntervalStatus }
*
*
*/
public List getIntervalStatus() {
if (intervalStatus == null) {
intervalStatus = new ArrayList();
}
return this.intervalStatus;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof IntervalStatuses)) {
return false;
}
if (this == object) {
return true;
}
final IntervalStatuses that = ((IntervalStatuses) object);
{
List lhsIntervalStatus;
lhsIntervalStatus = (((this.intervalStatus!= null)&&(!this.intervalStatus.isEmpty()))?this.getIntervalStatus():null);
List rhsIntervalStatus;
rhsIntervalStatus = (((that.intervalStatus!= null)&&(!that.intervalStatus.isEmpty()))?that.getIntervalStatus():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "intervalStatus", lhsIntervalStatus), LocatorUtils.property(thatLocator, "intervalStatus", rhsIntervalStatus), lhsIntervalStatus, rhsIntervalStatus)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="INTVSTATID" use="required">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
* <totalDigits value="10"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="NAME" use="required">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <minLength value="1"/>
* <maxLength value="60"/>
* </restriction>
* </simpleType>
* </attribute>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class IntervalStatus implements Equals
{
@XmlAttribute(name = "INTVSTATID", required = true)
protected BigInteger intvstatid;
@XmlAttribute(name = "NAME", required = true)
protected String name;
/**
* Gets the value of the intvstatid property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getINTVSTATID() {
return intvstatid;
}
/**
* Sets the value of the intvstatid property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setINTVSTATID(BigInteger value) {
this.intvstatid = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNAME() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNAME(String value) {
this.name = value;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof IntervalStatuses.IntervalStatus)) {
return false;
}
if (this == object) {
return true;
}
final IntervalStatuses.IntervalStatus that = ((IntervalStatuses.IntervalStatus) object);
{
BigInteger lhsINTVSTATID;
lhsINTVSTATID = this.getINTVSTATID();
BigInteger rhsINTVSTATID;
rhsINTVSTATID = that.getINTVSTATID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "intvstatid", lhsINTVSTATID), LocatorUtils.property(thatLocator, "intvstatid", rhsINTVSTATID), lhsINTVSTATID, rhsINTVSTATID)) {
return false;
}
}
{
String lhsNAME;
lhsNAME = this.getNAME();
String rhsNAME;
rhsNAME = that.getNAME();
if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsNAME), LocatorUtils.property(thatLocator, "name", rhsNAME), lhsNAME, rhsNAME)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}
}