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

com.intuit.ipp.data.Row 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.3.0 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2022.06.28 at 02:49:33 PM PDT 
//


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;


/**
 * One Row can contain any number of columns
 * 
 * 

Java class for Row complex type. * *

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

 * <complexType name="Row">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="parentId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <choice>
 *           <sequence>
 *             <element name="Header" type="{http://schema.intuit.com/finance/v3}Header" minOccurs="0"/>
 *             <element name="Rows" type="{http://schema.intuit.com/finance/v3}Rows" minOccurs="0"/>
 *             <element name="Summary" type="{http://schema.intuit.com/finance/v3}Summary" minOccurs="0"/>
 *           </sequence>
 *           <sequence>
 *             <element name="ColData" type="{http://schema.intuit.com/finance/v3}ColData" maxOccurs="unbounded"/>
 *           </sequence>
 *         </choice>
 *       </sequence>
 *       <attribute name="type" type="{http://schema.intuit.com/finance/v3}RowTypeEnum" />
 *       <attribute name="group" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Row", propOrder = { "id", "parentId", "header", "rows", "summary", "colData" }) public class Row implements Serializable, Equals2, HashCode2 { private final static long serialVersionUID = 1L; protected String id; protected String parentId; @XmlElement(name = "Header") protected Header header; @XmlElement(name = "Rows") protected Rows rows; @XmlElement(name = "Summary") protected Summary summary; @XmlElement(name = "ColData") protected List colData; @XmlAttribute(name = "type") protected RowTypeEnum type; @XmlAttribute(name = "group") protected String group; /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Gets the value of the parentId property. * * @return * possible object is * {@link String } * */ public String getParentId() { return parentId; } /** * Sets the value of the parentId property. * * @param value * allowed object is * {@link String } * */ public void setParentId(String value) { this.parentId = value; } /** * Gets the value of the header property. * * @return * possible object is * {@link Header } * */ public Header getHeader() { return header; } /** * Sets the value of the header property. * * @param value * allowed object is * {@link Header } * */ public void setHeader(Header value) { this.header = value; } /** * Gets the value of the rows property. * * @return * possible object is * {@link Rows } * */ public Rows getRows() { return rows; } /** * Sets the value of the rows property. * * @param value * allowed object is * {@link Rows } * */ public void setRows(Rows value) { this.rows = value; } /** * Gets the value of the summary property. * * @return * possible object is * {@link Summary } * */ public Summary getSummary() { return summary; } /** * Sets the value of the summary property. * * @param value * allowed object is * {@link Summary } * */ public void setSummary(Summary value) { this.summary = value; } /** * Gets the value of the colData 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 colData property. * *

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

     *    getColData().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ColData } * * */ public List getColData() { if (colData == null) { colData = new ArrayList(); } return this.colData; } /** * Gets the value of the type property. * * @return * possible object is * {@link RowTypeEnum } * */ public RowTypeEnum getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link RowTypeEnum } * */ public void setType(RowTypeEnum value) { this.type = value; } /** * Gets the value of the group property. * * @return * possible object is * {@link String } * */ public String getGroup() { return group; } /** * Sets the value of the group property. * * @param value * allowed object is * {@link String } * */ public void setGroup(String value) { this.group = value; } /** * Sets the value of the colData property. * * @param colData * allowed object is * {@link ColData } * */ public void setColData(List colData) { this.colData = colData; } 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 Row that = ((Row) object); { String lhsId; lhsId = this.getId(); String rhsId; rhsId = that.getId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId, (this.id!= null), (that.id!= null))) { return false; } } { String lhsParentId; lhsParentId = this.getParentId(); String rhsParentId; rhsParentId = that.getParentId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "parentId", lhsParentId), LocatorUtils.property(thatLocator, "parentId", rhsParentId), lhsParentId, rhsParentId, (this.parentId!= null), (that.parentId!= null))) { return false; } } { Header lhsHeader; lhsHeader = this.getHeader(); Header rhsHeader; rhsHeader = that.getHeader(); if (!strategy.equals(LocatorUtils.property(thisLocator, "header", lhsHeader), LocatorUtils.property(thatLocator, "header", rhsHeader), lhsHeader, rhsHeader, (this.header!= null), (that.header!= null))) { return false; } } { Rows lhsRows; lhsRows = this.getRows(); Rows rhsRows; rhsRows = that.getRows(); if (!strategy.equals(LocatorUtils.property(thisLocator, "rows", lhsRows), LocatorUtils.property(thatLocator, "rows", rhsRows), lhsRows, rhsRows, (this.rows!= null), (that.rows!= null))) { return false; } } { Summary lhsSummary; lhsSummary = this.getSummary(); Summary rhsSummary; rhsSummary = that.getSummary(); if (!strategy.equals(LocatorUtils.property(thisLocator, "summary", lhsSummary), LocatorUtils.property(thatLocator, "summary", rhsSummary), lhsSummary, rhsSummary, (this.summary!= null), (that.summary!= null))) { return false; } } { List lhsColData; lhsColData = (((this.colData!= null)&&(!this.colData.isEmpty()))?this.getColData():null); List rhsColData; rhsColData = (((that.colData!= null)&&(!that.colData.isEmpty()))?that.getColData():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "colData", lhsColData), LocatorUtils.property(thatLocator, "colData", rhsColData), lhsColData, rhsColData, ((this.colData!= null)&&(!this.colData.isEmpty())), ((that.colData!= null)&&(!that.colData.isEmpty())))) { return false; } } { RowTypeEnum lhsType; lhsType = this.getType(); RowTypeEnum rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType, (this.type!= null), (that.type!= null))) { return false; } } { String lhsGroup; lhsGroup = this.getGroup(); String rhsGroup; rhsGroup = that.getGroup(); if (!strategy.equals(LocatorUtils.property(thisLocator, "group", lhsGroup), LocatorUtils.property(thatLocator, "group", rhsGroup), lhsGroup, rhsGroup, (this.group!= null), (that.group!= 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; { String theId; theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null)); } { String theParentId; theParentId = this.getParentId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "parentId", theParentId), currentHashCode, theParentId, (this.parentId!= null)); } { Header theHeader; theHeader = this.getHeader(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "header", theHeader), currentHashCode, theHeader, (this.header!= null)); } { Rows theRows; theRows = this.getRows(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "rows", theRows), currentHashCode, theRows, (this.rows!= null)); } { Summary theSummary; theSummary = this.getSummary(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "summary", theSummary), currentHashCode, theSummary, (this.summary!= null)); } { List theColData; theColData = (((this.colData!= null)&&(!this.colData.isEmpty()))?this.getColData():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "colData", theColData), currentHashCode, theColData, ((this.colData!= null)&&(!this.colData.isEmpty()))); } { RowTypeEnum theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null)); } { String theGroup; theGroup = this.getGroup(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "group", theGroup), currentHashCode, theGroup, (this.group!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy