com.intuit.ipp.data.Estimate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ipp-v3-java-data Show documentation
Show all versions of ipp-v3-java-data Show documentation
IPP Java V3 DevKit Data project - FMS Entities generation
//
// 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.03.01 at 02:14:53 PM PST
//
package com.intuit.ipp.data;
import java.io.Serializable;
import java.util.Date;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.intuit.sb.cdm.util.v3.DateAdapter;
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;
/**
* Transaction entity is the base class of all
* transactions
*
* Java class for Estimate complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Estimate">
* <complexContent>
* <extension base="{http://schema.intuit.com/finance/v3}SalesTransaction">
* <sequence>
* <element name="ExpirationDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
* <element name="AcceptedBy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="AcceptedDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
* <element name="EstimateEx" type="{http://schema.intuit.com/finance/v3}IntuitAnyType" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Estimate", propOrder = {
"expirationDate",
"acceptedBy",
"acceptedDate",
"estimateEx"
})
public class Estimate
extends SalesTransaction
implements Serializable, Equals2, HashCode2
{
private final static long serialVersionUID = 1L;
@XmlElement(name = "ExpirationDate", type = String.class)
@XmlJavaTypeAdapter(DateAdapter.class)
@XmlSchemaType(name = "date")
protected Date expirationDate;
@XmlElement(name = "AcceptedBy")
protected String acceptedBy;
@XmlElement(name = "AcceptedDate", type = String.class)
@XmlJavaTypeAdapter(DateAdapter.class)
@XmlSchemaType(name = "date")
protected Date acceptedDate;
@XmlElement(name = "EstimateEx")
protected IntuitAnyType estimateEx;
/**
* Gets the value of the expirationDate property.
*
* @return
* possible object is
* {@link String }
*
*/
public Date getExpirationDate() {
return expirationDate;
}
/**
* Sets the value of the expirationDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setExpirationDate(Date value) {
this.expirationDate = value;
}
/**
* Gets the value of the acceptedBy property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAcceptedBy() {
return acceptedBy;
}
/**
* Sets the value of the acceptedBy property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAcceptedBy(String value) {
this.acceptedBy = value;
}
/**
* Gets the value of the acceptedDate property.
*
* @return
* possible object is
* {@link String }
*
*/
public Date getAcceptedDate() {
return acceptedDate;
}
/**
* Sets the value of the acceptedDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAcceptedDate(Date value) {
this.acceptedDate = value;
}
/**
* Gets the value of the estimateEx property.
*
* @return
* possible object is
* {@link IntuitAnyType }
*
*/
public IntuitAnyType getEstimateEx() {
return estimateEx;
}
/**
* Sets the value of the estimateEx property.
*
* @param value
* allowed object is
* {@link IntuitAnyType }
*
*/
public void setEstimateEx(IntuitAnyType value) {
this.estimateEx = value;
}
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 Estimate that = ((Estimate) object);
{
Date lhsExpirationDate;
lhsExpirationDate = this.getExpirationDate();
Date rhsExpirationDate;
rhsExpirationDate = that.getExpirationDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "expirationDate", lhsExpirationDate), LocatorUtils.property(thatLocator, "expirationDate", rhsExpirationDate), lhsExpirationDate, rhsExpirationDate, (this.expirationDate!= null), (that.expirationDate!= null))) {
return false;
}
}
{
String lhsAcceptedBy;
lhsAcceptedBy = this.getAcceptedBy();
String rhsAcceptedBy;
rhsAcceptedBy = that.getAcceptedBy();
if (!strategy.equals(LocatorUtils.property(thisLocator, "acceptedBy", lhsAcceptedBy), LocatorUtils.property(thatLocator, "acceptedBy", rhsAcceptedBy), lhsAcceptedBy, rhsAcceptedBy, (this.acceptedBy!= null), (that.acceptedBy!= null))) {
return false;
}
}
{
Date lhsAcceptedDate;
lhsAcceptedDate = this.getAcceptedDate();
Date rhsAcceptedDate;
rhsAcceptedDate = that.getAcceptedDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "acceptedDate", lhsAcceptedDate), LocatorUtils.property(thatLocator, "acceptedDate", rhsAcceptedDate), lhsAcceptedDate, rhsAcceptedDate, (this.acceptedDate!= null), (that.acceptedDate!= null))) {
return false;
}
}
{
IntuitAnyType lhsEstimateEx;
lhsEstimateEx = this.getEstimateEx();
IntuitAnyType rhsEstimateEx;
rhsEstimateEx = that.getEstimateEx();
if (!strategy.equals(LocatorUtils.property(thisLocator, "estimateEx", lhsEstimateEx), LocatorUtils.property(thatLocator, "estimateEx", rhsEstimateEx), lhsEstimateEx, rhsEstimateEx, (this.estimateEx!= null), (that.estimateEx!= 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);
{
Date theExpirationDate;
theExpirationDate = this.getExpirationDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "expirationDate", theExpirationDate), currentHashCode, theExpirationDate, (this.expirationDate!= null));
}
{
String theAcceptedBy;
theAcceptedBy = this.getAcceptedBy();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "acceptedBy", theAcceptedBy), currentHashCode, theAcceptedBy, (this.acceptedBy!= null));
}
{
Date theAcceptedDate;
theAcceptedDate = this.getAcceptedDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "acceptedDate", theAcceptedDate), currentHashCode, theAcceptedDate, (this.acceptedDate!= null));
}
{
IntuitAnyType theEstimateEx;
theEstimateEx = this.getEstimateEx();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "estimateEx", theEstimateEx), currentHashCode, theEstimateEx, (this.estimateEx!= null));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy