com.intuit.ipp.data.Task 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.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.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;
/**
*
* Product: QBW
* Description: A specific task to be
* completed, maps to a ToDo record in QuickBooks.
*
*
* Java class for Task complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Task">
* <complexContent>
* <extension base="{http://schema.intuit.com/finance/v3}IntuitEntity">
* <sequence>
* <element name="Notes" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="From" 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="Done" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="ReminderDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
* <element name="TaskEx" type="{http://schema.intuit.com/finance/v3}IntuitAnyType" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Task", propOrder = {
"notes",
"from",
"active",
"done",
"reminderDate",
"taskEx"
})
public class Task
extends IntuitEntity
implements Serializable, Equals2, HashCode2
{
private final static long serialVersionUID = 1L;
@XmlElement(name = "Notes")
protected String notes;
@XmlElement(name = "From")
protected String from;
@XmlElement(name = "Active")
protected Boolean active;
@XmlElement(name = "Done")
protected Boolean done;
@XmlElement(name = "ReminderDate", type = String.class)
@XmlJavaTypeAdapter(DateAdapter.class)
@XmlSchemaType(name = "date")
protected Date reminderDate;
@XmlElement(name = "TaskEx")
protected IntuitAnyType taskEx;
/**
* Gets the value of the notes property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNotes() {
return notes;
}
/**
* Sets the value of the notes property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNotes(String value) {
this.notes = value;
}
/**
* Gets the value of the from property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFrom() {
return from;
}
/**
* Sets the value of the from property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFrom(String value) {
this.from = 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 done property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isDone() {
return done;
}
/**
* Sets the value of the done property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setDone(Boolean value) {
this.done = value;
}
/**
* Gets the value of the reminderDate property.
*
* @return
* possible object is
* {@link String }
*
*/
public Date getReminderDate() {
return reminderDate;
}
/**
* Sets the value of the reminderDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setReminderDate(Date value) {
this.reminderDate = value;
}
/**
* Gets the value of the taskEx property.
*
* @return
* possible object is
* {@link IntuitAnyType }
*
*/
public IntuitAnyType getTaskEx() {
return taskEx;
}
/**
* Sets the value of the taskEx property.
*
* @param value
* allowed object is
* {@link IntuitAnyType }
*
*/
public void setTaskEx(IntuitAnyType value) {
this.taskEx = 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 Task that = ((Task) object);
{
String lhsNotes;
lhsNotes = this.getNotes();
String rhsNotes;
rhsNotes = that.getNotes();
if (!strategy.equals(LocatorUtils.property(thisLocator, "notes", lhsNotes), LocatorUtils.property(thatLocator, "notes", rhsNotes), lhsNotes, rhsNotes, (this.notes!= null), (that.notes!= null))) {
return false;
}
}
{
String lhsFrom;
lhsFrom = this.getFrom();
String rhsFrom;
rhsFrom = that.getFrom();
if (!strategy.equals(LocatorUtils.property(thisLocator, "from", lhsFrom), LocatorUtils.property(thatLocator, "from", rhsFrom), lhsFrom, rhsFrom, (this.from!= null), (that.from!= 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 lhsDone;
lhsDone = this.isDone();
Boolean rhsDone;
rhsDone = that.isDone();
if (!strategy.equals(LocatorUtils.property(thisLocator, "done", lhsDone), LocatorUtils.property(thatLocator, "done", rhsDone), lhsDone, rhsDone, (this.done!= null), (that.done!= null))) {
return false;
}
}
{
Date lhsReminderDate;
lhsReminderDate = this.getReminderDate();
Date rhsReminderDate;
rhsReminderDate = that.getReminderDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "reminderDate", lhsReminderDate), LocatorUtils.property(thatLocator, "reminderDate", rhsReminderDate), lhsReminderDate, rhsReminderDate, (this.reminderDate!= null), (that.reminderDate!= null))) {
return false;
}
}
{
IntuitAnyType lhsTaskEx;
lhsTaskEx = this.getTaskEx();
IntuitAnyType rhsTaskEx;
rhsTaskEx = that.getTaskEx();
if (!strategy.equals(LocatorUtils.property(thisLocator, "taskEx", lhsTaskEx), LocatorUtils.property(thatLocator, "taskEx", rhsTaskEx), lhsTaskEx, rhsTaskEx, (this.taskEx!= null), (that.taskEx!= 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 theNotes;
theNotes = this.getNotes();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "notes", theNotes), currentHashCode, theNotes, (this.notes!= null));
}
{
String theFrom;
theFrom = this.getFrom();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "from", theFrom), currentHashCode, theFrom, (this.from!= null));
}
{
Boolean theActive;
theActive = this.isActive();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "active", theActive), currentHashCode, theActive, (this.active!= null));
}
{
Boolean theDone;
theDone = this.isDone();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "done", theDone), currentHashCode, theDone, (this.done!= null));
}
{
Date theReminderDate;
theReminderDate = this.getReminderDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reminderDate", theReminderDate), currentHashCode, theReminderDate, (this.reminderDate!= null));
}
{
IntuitAnyType theTaskEx;
theTaskEx = this.getTaskEx();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "taskEx", theTaskEx), currentHashCode, theTaskEx, (this.taskEx!= null));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}