All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.intuit.ipp.data.CDCResponse Maven / Gradle / Ivy

There is a newer version: 6.4.2
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2018.12.08 at 07:59:36 PM PST 
//


package com.intuit.ipp.data;

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.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * QueryResponse entity describing the response of query
 * 
 * 

Java class for CDCResponse complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="CDCResponse">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <choice>
 *           <element name="QueryResponse" type="{http://schema.intuit.com/finance/v3}QueryResponse" maxOccurs="unbounded" minOccurs="0"/>
 *           <element name="Fault" type="{http://schema.intuit.com/finance/v3}Fault" minOccurs="0"/>
 *         </choice>
 *       </sequence>
 *       <attribute name="size" type="{http://www.w3.org/2001/XMLSchema}int" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CDCResponse", propOrder = { "queryResponse", "fault" }) public class CDCResponse implements Serializable, Equals2, HashCode2 { private final static long serialVersionUID = 1L; @XmlElement(name = "QueryResponse") protected List queryResponse; @XmlElement(name = "Fault") protected Fault fault; @XmlAttribute(name = "size") protected Integer size; /** * Gets the value of the queryResponse 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 queryResponse property. * *

* For example, to add a new item, do as follows: *

     *    getQueryResponse().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link QueryResponse } * * */ public List getQueryResponse() { if (queryResponse == null) { queryResponse = new ArrayList(); } return this.queryResponse; } /** * Gets the value of the fault property. * * @return * possible object is * {@link Fault } * */ public Fault getFault() { return fault; } /** * Sets the value of the fault property. * * @param value * allowed object is * {@link Fault } * */ public void setFault(Fault value) { this.fault = value; } /** * Gets the value of the size property. * * @return * possible object is * {@link Integer } * */ public Integer getSize() { return size; } /** * Sets the value of the size property. * * @param value * allowed object is * {@link Integer } * */ public void setSize(Integer value) { this.size = value; } /** * Sets the value of the queryResponse property. * * @param queryResponse * allowed object is * {@link QueryResponse } * */ public void setQueryResponse(List queryResponse) { this.queryResponse = queryResponse; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final CDCResponse that = ((CDCResponse) object); { List lhsQueryResponse; lhsQueryResponse = (((this.queryResponse!= null)&&(!this.queryResponse.isEmpty()))?this.getQueryResponse():null); List rhsQueryResponse; rhsQueryResponse = (((that.queryResponse!= null)&&(!that.queryResponse.isEmpty()))?that.getQueryResponse():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "queryResponse", lhsQueryResponse), LocatorUtils.property(thatLocator, "queryResponse", rhsQueryResponse), lhsQueryResponse, rhsQueryResponse, ((this.queryResponse!= null)&&(!this.queryResponse.isEmpty())), ((that.queryResponse!= null)&&(!that.queryResponse.isEmpty())))) { return false; } } { Fault lhsFault; lhsFault = this.getFault(); Fault rhsFault; rhsFault = that.getFault(); if (!strategy.equals(LocatorUtils.property(thisLocator, "fault", lhsFault), LocatorUtils.property(thatLocator, "fault", rhsFault), lhsFault, rhsFault, (this.fault!= null), (that.fault!= null))) { return false; } } { Integer lhsSize; lhsSize = this.getSize(); Integer rhsSize; rhsSize = that.getSize(); if (!strategy.equals(LocatorUtils.property(thisLocator, "size", lhsSize), LocatorUtils.property(thatLocator, "size", rhsSize), lhsSize, rhsSize, (this.size!= null), (that.size!= null))) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { List theQueryResponse; theQueryResponse = (((this.queryResponse!= null)&&(!this.queryResponse.isEmpty()))?this.getQueryResponse():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "queryResponse", theQueryResponse), currentHashCode, theQueryResponse, ((this.queryResponse!= null)&&(!this.queryResponse.isEmpty()))); } { Fault theFault; theFault = this.getFault(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fault", theFault), currentHashCode, theFault, (this.fault!= null)); } { Integer theSize; theSize = this.getSize(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "size", theSize), currentHashCode, theSize, (this.size!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy