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

com.intuit.ipp.data.UserAlert 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.Date;
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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.intuit.sb.cdm.util.v3.DateAdapter;
import com.intuit.sb.cdm.util.v3.DateTimeAdapter;
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: ALL
 * 				Description: A specific user alert to
 * 				be notified to Quickbooks user, maps to a ToDo record in QuickBooks.
 * 			
 * 
 * 

Java class for UserAlert complex type. * *

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

 * <complexType name="UserAlert">
 *   <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="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="Type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="ReminderDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         <element name="ExpireDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         <element name="DueDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
 *         <element name="URL" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="Filter" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="NameValue" type="{http://schema.intuit.com/finance/v3}NameValue" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="UserAlertEx" type="{http://schema.intuit.com/finance/v3}IntuitAnyType" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "UserAlert", propOrder = { "notes", "active", "done", "type", "reminderDate", "expireDate", "dueDate", "url", "filter", "nameValue", "userAlertEx" }) public class UserAlert extends IntuitEntity implements Serializable, Equals2, HashCode2 { private final static long serialVersionUID = 1L; @XmlElement(name = "Notes") protected String notes; @XmlElement(name = "Active") protected Boolean active; @XmlElement(name = "Done") protected Boolean done; @XmlElement(name = "Type") protected String type; @XmlElement(name = "ReminderDate", type = String.class) @XmlJavaTypeAdapter(DateTimeAdapter.class) @XmlSchemaType(name = "dateTime") protected Date reminderDate; @XmlElement(name = "ExpireDate", type = String.class) @XmlJavaTypeAdapter(DateTimeAdapter.class) @XmlSchemaType(name = "dateTime") protected Date expireDate; @XmlElement(name = "DueDate", type = String.class) @XmlJavaTypeAdapter(DateAdapter.class) @XmlSchemaType(name = "date") protected Date dueDate; @XmlElement(name = "URL") protected String url; @XmlElement(name = "Filter") protected String filter; @XmlElement(name = "NameValue") protected List nameValue; @XmlElement(name = "UserAlertEx") protected IntuitAnyType userAlertEx; /** * 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 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 type property. * * @return * possible object is * {@link String } * */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(String value) { this.type = 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 expireDate property. * * @return * possible object is * {@link String } * */ public Date getExpireDate() { return expireDate; } /** * Sets the value of the expireDate property. * * @param value * allowed object is * {@link String } * */ public void setExpireDate(Date value) { this.expireDate = value; } /** * Gets the value of the dueDate property. * * @return * possible object is * {@link String } * */ public Date getDueDate() { return dueDate; } /** * Sets the value of the dueDate property. * * @param value * allowed object is * {@link String } * */ public void setDueDate(Date value) { this.dueDate = value; } /** * Gets the value of the url property. * * @return * possible object is * {@link String } * */ public String getURL() { return url; } /** * Sets the value of the url property. * * @param value * allowed object is * {@link String } * */ public void setURL(String value) { this.url = value; } /** * Gets the value of the filter property. * * @return * possible object is * {@link String } * */ public String getFilter() { return filter; } /** * Sets the value of the filter property. * * @param value * allowed object is * {@link String } * */ public void setFilter(String value) { this.filter = value; } /** * Gets the value of the nameValue 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 nameValue property. * *

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

     *    getNameValue().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link NameValue } * * */ public List getNameValue() { if (nameValue == null) { nameValue = new ArrayList(); } return this.nameValue; } /** * Gets the value of the userAlertEx property. * * @return * possible object is * {@link IntuitAnyType } * */ public IntuitAnyType getUserAlertEx() { return userAlertEx; } /** * Sets the value of the userAlertEx property. * * @param value * allowed object is * {@link IntuitAnyType } * */ public void setUserAlertEx(IntuitAnyType value) { this.userAlertEx = value; } /** * Sets the value of the nameValue property. * * @param nameValue * allowed object is * {@link NameValue } * */ public void setNameValue(List nameValue) { this.nameValue = nameValue; } 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 UserAlert that = ((UserAlert) 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; } } { 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; } } { String lhsType; lhsType = this.getType(); String 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; } } { 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; } } { Date lhsExpireDate; lhsExpireDate = this.getExpireDate(); Date rhsExpireDate; rhsExpireDate = that.getExpireDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "expireDate", lhsExpireDate), LocatorUtils.property(thatLocator, "expireDate", rhsExpireDate), lhsExpireDate, rhsExpireDate, (this.expireDate!= null), (that.expireDate!= null))) { return false; } } { Date lhsDueDate; lhsDueDate = this.getDueDate(); Date rhsDueDate; rhsDueDate = that.getDueDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "dueDate", lhsDueDate), LocatorUtils.property(thatLocator, "dueDate", rhsDueDate), lhsDueDate, rhsDueDate, (this.dueDate!= null), (that.dueDate!= null))) { return false; } } { String lhsURL; lhsURL = this.getURL(); String rhsURL; rhsURL = that.getURL(); if (!strategy.equals(LocatorUtils.property(thisLocator, "url", lhsURL), LocatorUtils.property(thatLocator, "url", rhsURL), lhsURL, rhsURL, (this.url!= null), (that.url!= null))) { return false; } } { String lhsFilter; lhsFilter = this.getFilter(); String rhsFilter; rhsFilter = that.getFilter(); if (!strategy.equals(LocatorUtils.property(thisLocator, "filter", lhsFilter), LocatorUtils.property(thatLocator, "filter", rhsFilter), lhsFilter, rhsFilter, (this.filter!= null), (that.filter!= null))) { return false; } } { List lhsNameValue; lhsNameValue = (((this.nameValue!= null)&&(!this.nameValue.isEmpty()))?this.getNameValue():null); List rhsNameValue; rhsNameValue = (((that.nameValue!= null)&&(!that.nameValue.isEmpty()))?that.getNameValue():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "nameValue", lhsNameValue), LocatorUtils.property(thatLocator, "nameValue", rhsNameValue), lhsNameValue, rhsNameValue, ((this.nameValue!= null)&&(!this.nameValue.isEmpty())), ((that.nameValue!= null)&&(!that.nameValue.isEmpty())))) { return false; } } { IntuitAnyType lhsUserAlertEx; lhsUserAlertEx = this.getUserAlertEx(); IntuitAnyType rhsUserAlertEx; rhsUserAlertEx = that.getUserAlertEx(); if (!strategy.equals(LocatorUtils.property(thisLocator, "userAlertEx", lhsUserAlertEx), LocatorUtils.property(thatLocator, "userAlertEx", rhsUserAlertEx), lhsUserAlertEx, rhsUserAlertEx, (this.userAlertEx!= null), (that.userAlertEx!= 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)); } { 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)); } { String theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null)); } { Date theReminderDate; theReminderDate = this.getReminderDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reminderDate", theReminderDate), currentHashCode, theReminderDate, (this.reminderDate!= null)); } { Date theExpireDate; theExpireDate = this.getExpireDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "expireDate", theExpireDate), currentHashCode, theExpireDate, (this.expireDate!= null)); } { Date theDueDate; theDueDate = this.getDueDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dueDate", theDueDate), currentHashCode, theDueDate, (this.dueDate!= null)); } { String theURL; theURL = this.getURL(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "url", theURL), currentHashCode, theURL, (this.url!= null)); } { String theFilter; theFilter = this.getFilter(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "filter", theFilter), currentHashCode, theFilter, (this.filter!= null)); } { List theNameValue; theNameValue = (((this.nameValue!= null)&&(!this.nameValue.isEmpty()))?this.getNameValue():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "nameValue", theNameValue), currentHashCode, theNameValue, ((this.nameValue!= null)&&(!this.nameValue.isEmpty()))); } { IntuitAnyType theUserAlertEx; theUserAlertEx = this.getUserAlertEx(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "userAlertEx", theUserAlertEx), currentHashCode, theUserAlertEx, (this.userAlertEx!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy