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

com.intuit.ipp.data.InventorySite 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.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;


/**
 * 
 * 				Product: QBW
 * 				Description: The InventorySite resource
 * 				represents a location where inventory is stored.
 * 				Endpoint:
 * 				inventorysite
 * 				Business Rules: [li]The site name must be unique.[/li]
 * 			
 * 
 * 

Java class for InventorySite complex type. * *

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

 * <complexType name="InventorySite">
 *   <complexContent>
 *     <extension base="{http://schema.intuit.com/finance/v3}IntuitEntity">
 *       <sequence>
 *         <element name="Name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="Active" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
 *         <element name="DefaultSite" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
 *         <element name="Description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="Contact" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="Addr" type="{http://schema.intuit.com/finance/v3}PhysicalAddress" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="ContactInfo" type="{http://schema.intuit.com/finance/v3}ContactInfo" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="InventorySiteEx" type="{http://schema.intuit.com/finance/v3}IntuitAnyType" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "InventorySite", propOrder = { "name", "active", "defaultSite", "description", "contact", "addr", "contactInfo", "inventorySiteEx" }) public class InventorySite extends IntuitEntity implements Serializable, Equals2, HashCode2 { private final static long serialVersionUID = 1L; @XmlElement(name = "Name") protected String name; @XmlElement(name = "Active") protected Boolean active; @XmlElement(name = "DefaultSite") protected Boolean defaultSite; @XmlElement(name = "Description") protected String description; @XmlElement(name = "Contact") protected String contact; @XmlElement(name = "Addr") protected List addr; @XmlElement(name = "ContactInfo") protected List contactInfo; @XmlElement(name = "InventorySiteEx") protected IntuitAnyType inventorySiteEx; /** * 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; } /** * Gets the value of the active property. * * @return * possible object is * {@link Boolean } * */ public Boolean isActive() { return active; } /** * Sets the value of the active property. * * @param value * allowed object is * {@link Boolean } * */ public void setActive(Boolean value) { this.active = value; } /** * Gets the value of the defaultSite property. * * @return * possible object is * {@link Boolean } * */ public Boolean isDefaultSite() { return defaultSite; } /** * Sets the value of the defaultSite property. * * @param value * allowed object is * {@link Boolean } * */ public void setDefaultSite(Boolean value) { this.defaultSite = value; } /** * Gets the value of the description property. * * @return * possible object is * {@link String } * */ public String getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link String } * */ public void setDescription(String value) { this.description = value; } /** * Gets the value of the contact property. * * @return * possible object is * {@link String } * */ public String getContact() { return contact; } /** * Sets the value of the contact property. * * @param value * allowed object is * {@link String } * */ public void setContact(String value) { this.contact = value; } /** * Gets the value of the addr 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 addr property. * *

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

     *    getAddr().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link PhysicalAddress } * * */ public List getAddr() { if (addr == null) { addr = new ArrayList(); } return this.addr; } /** * Gets the value of the contactInfo 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 contactInfo property. * *

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

     *    getContactInfo().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ContactInfo } * * */ public List getContactInfo() { if (contactInfo == null) { contactInfo = new ArrayList(); } return this.contactInfo; } /** * Gets the value of the inventorySiteEx property. * * @return * possible object is * {@link IntuitAnyType } * */ public IntuitAnyType getInventorySiteEx() { return inventorySiteEx; } /** * Sets the value of the inventorySiteEx property. * * @param value * allowed object is * {@link IntuitAnyType } * */ public void setInventorySiteEx(IntuitAnyType value) { this.inventorySiteEx = value; } /** * Sets the value of the addr property. * * @param addr * allowed object is * {@link PhysicalAddress } * */ public void setAddr(List addr) { this.addr = addr; } /** * Sets the value of the contactInfo property. * * @param contactInfo * allowed object is * {@link ContactInfo } * */ public void setContactInfo(List contactInfo) { this.contactInfo = contactInfo; } 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; } if (!super.equals(thisLocator, thatLocator, object, strategy)) { return false; } final InventorySite that = ((InventorySite) object); { 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, (this.name!= null), (that.name!= null))) { return false; } } { Boolean lhsActive; lhsActive = this.isActive(); Boolean rhsActive; rhsActive = that.isActive(); if (!strategy.equals(LocatorUtils.property(thisLocator, "active", lhsActive), LocatorUtils.property(thatLocator, "active", rhsActive), lhsActive, rhsActive, (this.active!= null), (that.active!= null))) { return false; } } { Boolean lhsDefaultSite; lhsDefaultSite = this.isDefaultSite(); Boolean rhsDefaultSite; rhsDefaultSite = that.isDefaultSite(); if (!strategy.equals(LocatorUtils.property(thisLocator, "defaultSite", lhsDefaultSite), LocatorUtils.property(thatLocator, "defaultSite", rhsDefaultSite), lhsDefaultSite, rhsDefaultSite, (this.defaultSite!= null), (that.defaultSite!= null))) { return false; } } { String lhsDescription; lhsDescription = this.getDescription(); String rhsDescription; rhsDescription = that.getDescription(); if (!strategy.equals(LocatorUtils.property(thisLocator, "description", lhsDescription), LocatorUtils.property(thatLocator, "description", rhsDescription), lhsDescription, rhsDescription, (this.description!= null), (that.description!= null))) { return false; } } { String lhsContact; lhsContact = this.getContact(); String rhsContact; rhsContact = that.getContact(); if (!strategy.equals(LocatorUtils.property(thisLocator, "contact", lhsContact), LocatorUtils.property(thatLocator, "contact", rhsContact), lhsContact, rhsContact, (this.contact!= null), (that.contact!= null))) { return false; } } { List lhsAddr; lhsAddr = (((this.addr!= null)&&(!this.addr.isEmpty()))?this.getAddr():null); List rhsAddr; rhsAddr = (((that.addr!= null)&&(!that.addr.isEmpty()))?that.getAddr():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "addr", lhsAddr), LocatorUtils.property(thatLocator, "addr", rhsAddr), lhsAddr, rhsAddr, ((this.addr!= null)&&(!this.addr.isEmpty())), ((that.addr!= null)&&(!that.addr.isEmpty())))) { return false; } } { List lhsContactInfo; lhsContactInfo = (((this.contactInfo!= null)&&(!this.contactInfo.isEmpty()))?this.getContactInfo():null); List rhsContactInfo; rhsContactInfo = (((that.contactInfo!= null)&&(!that.contactInfo.isEmpty()))?that.getContactInfo():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "contactInfo", lhsContactInfo), LocatorUtils.property(thatLocator, "contactInfo", rhsContactInfo), lhsContactInfo, rhsContactInfo, ((this.contactInfo!= null)&&(!this.contactInfo.isEmpty())), ((that.contactInfo!= null)&&(!that.contactInfo.isEmpty())))) { return false; } } { IntuitAnyType lhsInventorySiteEx; lhsInventorySiteEx = this.getInventorySiteEx(); IntuitAnyType rhsInventorySiteEx; rhsInventorySiteEx = that.getInventorySiteEx(); if (!strategy.equals(LocatorUtils.property(thisLocator, "inventorySiteEx", lhsInventorySiteEx), LocatorUtils.property(thatLocator, "inventorySiteEx", rhsInventorySiteEx), lhsInventorySiteEx, rhsInventorySiteEx, (this.inventorySiteEx!= null), (that.inventorySiteEx!= 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 = super.hashCode(locator, strategy); { String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName, (this.name!= null)); } { Boolean theActive; theActive = this.isActive(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "active", theActive), currentHashCode, theActive, (this.active!= null)); } { Boolean theDefaultSite; theDefaultSite = this.isDefaultSite(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "defaultSite", theDefaultSite), currentHashCode, theDefaultSite, (this.defaultSite!= null)); } { String theDescription; theDescription = this.getDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null)); } { String theContact; theContact = this.getContact(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contact", theContact), currentHashCode, theContact, (this.contact!= null)); } { List theAddr; theAddr = (((this.addr!= null)&&(!this.addr.isEmpty()))?this.getAddr():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "addr", theAddr), currentHashCode, theAddr, ((this.addr!= null)&&(!this.addr.isEmpty()))); } { List theContactInfo; theContactInfo = (((this.contactInfo!= null)&&(!this.contactInfo.isEmpty()))?this.getContactInfo():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contactInfo", theContactInfo), currentHashCode, theContactInfo, ((this.contactInfo!= null)&&(!this.contactInfo.isEmpty()))); } { IntuitAnyType theInventorySiteEx; theInventorySiteEx = this.getInventorySiteEx(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "inventorySiteEx", theInventorySiteEx), currentHashCode, theInventorySiteEx, (this.inventorySiteEx!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy