com.intuit.ipp.data.EntitlementsResponse Maven / Gradle / Ivy
Show all versions of ipp-v3-java-data Show documentation
//
// 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.09.02 at 03:58:22 PM PDT
//
package com.intuit.ipp.data;
import java.io.Serializable;
import java.math.BigInteger;
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.XmlRootElement;
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;
import com.intuit.ipp.core.Response;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="QboCompany" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="PlanName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="MaxUsers" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
* <element name="CurrentUsers" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
* <element name="DaysRemainingTrial" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
* <element name="Entitlement" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="term">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="On"/>
* <enumeration value="Off"/>
* </restriction>
* </simpleType>
* </element>
* </sequence>
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"qboCompany",
"planName",
"maxUsers",
"currentUsers",
"daysRemainingTrial",
"entitlement"
})
@XmlRootElement(name = "EntitlementsResponse", namespace = "")
public class EntitlementsResponse implements Serializable, Response, Equals2, HashCode2
{
private final static long serialVersionUID = 1L;
@XmlElement(name = "QboCompany", namespace = "")
protected boolean qboCompany;
@XmlElement(name = "PlanName", namespace = "")
protected String planName;
@XmlElement(name = "MaxUsers", namespace = "")
protected BigInteger maxUsers;
@XmlElement(name = "CurrentUsers", namespace = "")
protected BigInteger currentUsers;
@XmlElement(name = "DaysRemainingTrial", namespace = "")
protected BigInteger daysRemainingTrial;
@XmlElement(name = "Entitlement", namespace = "")
protected List entitlement;
/**
* Gets the value of the qboCompany property.
*
*/
public boolean isQboCompany() {
return qboCompany;
}
/**
* Sets the value of the qboCompany property.
*
*/
public void setQboCompany(boolean value) {
this.qboCompany = value;
}
/**
* Gets the value of the planName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPlanName() {
return planName;
}
/**
* Sets the value of the planName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPlanName(String value) {
this.planName = value;
}
/**
* Gets the value of the maxUsers property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getMaxUsers() {
return maxUsers;
}
/**
* Sets the value of the maxUsers property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setMaxUsers(BigInteger value) {
this.maxUsers = value;
}
/**
* Gets the value of the currentUsers property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getCurrentUsers() {
return currentUsers;
}
/**
* Sets the value of the currentUsers property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setCurrentUsers(BigInteger value) {
this.currentUsers = value;
}
/**
* Gets the value of the daysRemainingTrial property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getDaysRemainingTrial() {
return daysRemainingTrial;
}
/**
* Sets the value of the daysRemainingTrial property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setDaysRemainingTrial(BigInteger value) {
this.daysRemainingTrial = value;
}
/**
* Gets the value of the entitlement 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 entitlement property.
*
*
* For example, to add a new item, do as follows:
*
* getEntitlement().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link EntitlementsResponse.Entitlement }
*
*
*/
public List getEntitlement() {
if (entitlement == null) {
entitlement = new ArrayList();
}
return this.entitlement;
}
/**
* Sets the value of the entitlement property.
*
* @param entitlement
* allowed object is
* {@link EntitlementsResponse.Entitlement }
*
*/
public void setEntitlement(List entitlement) {
this.entitlement = entitlement;
}
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 EntitlementsResponse that = ((EntitlementsResponse) object);
{
boolean lhsQboCompany;
lhsQboCompany = this.isQboCompany();
boolean rhsQboCompany;
rhsQboCompany = that.isQboCompany();
if (!strategy.equals(LocatorUtils.property(thisLocator, "qboCompany", lhsQboCompany), LocatorUtils.property(thatLocator, "qboCompany", rhsQboCompany), lhsQboCompany, rhsQboCompany, true, true)) {
return false;
}
}
{
String lhsPlanName;
lhsPlanName = this.getPlanName();
String rhsPlanName;
rhsPlanName = that.getPlanName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "planName", lhsPlanName), LocatorUtils.property(thatLocator, "planName", rhsPlanName), lhsPlanName, rhsPlanName, (this.planName!= null), (that.planName!= null))) {
return false;
}
}
{
BigInteger lhsMaxUsers;
lhsMaxUsers = this.getMaxUsers();
BigInteger rhsMaxUsers;
rhsMaxUsers = that.getMaxUsers();
if (!strategy.equals(LocatorUtils.property(thisLocator, "maxUsers", lhsMaxUsers), LocatorUtils.property(thatLocator, "maxUsers", rhsMaxUsers), lhsMaxUsers, rhsMaxUsers, (this.maxUsers!= null), (that.maxUsers!= null))) {
return false;
}
}
{
BigInteger lhsCurrentUsers;
lhsCurrentUsers = this.getCurrentUsers();
BigInteger rhsCurrentUsers;
rhsCurrentUsers = that.getCurrentUsers();
if (!strategy.equals(LocatorUtils.property(thisLocator, "currentUsers", lhsCurrentUsers), LocatorUtils.property(thatLocator, "currentUsers", rhsCurrentUsers), lhsCurrentUsers, rhsCurrentUsers, (this.currentUsers!= null), (that.currentUsers!= null))) {
return false;
}
}
{
BigInteger lhsDaysRemainingTrial;
lhsDaysRemainingTrial = this.getDaysRemainingTrial();
BigInteger rhsDaysRemainingTrial;
rhsDaysRemainingTrial = that.getDaysRemainingTrial();
if (!strategy.equals(LocatorUtils.property(thisLocator, "daysRemainingTrial", lhsDaysRemainingTrial), LocatorUtils.property(thatLocator, "daysRemainingTrial", rhsDaysRemainingTrial), lhsDaysRemainingTrial, rhsDaysRemainingTrial, (this.daysRemainingTrial!= null), (that.daysRemainingTrial!= null))) {
return false;
}
}
{
List lhsEntitlement;
lhsEntitlement = (((this.entitlement!= null)&&(!this.entitlement.isEmpty()))?this.getEntitlement():null);
List rhsEntitlement;
rhsEntitlement = (((that.entitlement!= null)&&(!that.entitlement.isEmpty()))?that.getEntitlement():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "entitlement", lhsEntitlement), LocatorUtils.property(thatLocator, "entitlement", rhsEntitlement), lhsEntitlement, rhsEntitlement, ((this.entitlement!= null)&&(!this.entitlement.isEmpty())), ((that.entitlement!= null)&&(!that.entitlement.isEmpty())))) {
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;
{
boolean theQboCompany;
theQboCompany = this.isQboCompany();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "qboCompany", theQboCompany), currentHashCode, theQboCompany, true);
}
{
String thePlanName;
thePlanName = this.getPlanName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "planName", thePlanName), currentHashCode, thePlanName, (this.planName!= null));
}
{
BigInteger theMaxUsers;
theMaxUsers = this.getMaxUsers();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "maxUsers", theMaxUsers), currentHashCode, theMaxUsers, (this.maxUsers!= null));
}
{
BigInteger theCurrentUsers;
theCurrentUsers = this.getCurrentUsers();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "currentUsers", theCurrentUsers), currentHashCode, theCurrentUsers, (this.currentUsers!= null));
}
{
BigInteger theDaysRemainingTrial;
theDaysRemainingTrial = this.getDaysRemainingTrial();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "daysRemainingTrial", theDaysRemainingTrial), currentHashCode, theDaysRemainingTrial, (this.daysRemainingTrial!= null));
}
{
List theEntitlement;
theEntitlement = (((this.entitlement!= null)&&(!this.entitlement.isEmpty()))?this.getEntitlement():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "entitlement", theEntitlement), currentHashCode, theEntitlement, ((this.entitlement!= null)&&(!this.entitlement.isEmpty())));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="term">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="On"/>
* <enumeration value="Off"/>
* </restriction>
* </simpleType>
* </element>
* </sequence>
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"name",
"term"
})
public static class Entitlement implements Serializable, Equals2, HashCode2
{
private final static long serialVersionUID = 1L;
@XmlElement(namespace = "", required = true)
protected String name;
@XmlElement(namespace = "", required = true)
protected String term;
@XmlAttribute(name = "id")
protected String id;
/**
* 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 term property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTerm() {
return term;
}
/**
* Sets the value of the term property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTerm(String value) {
this.term = value;
}
/**
* 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;
}
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 EntitlementsResponse.Entitlement that = ((EntitlementsResponse.Entitlement) 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;
}
}
{
String lhsTerm;
lhsTerm = this.getTerm();
String rhsTerm;
rhsTerm = that.getTerm();
if (!strategy.equals(LocatorUtils.property(thisLocator, "term", lhsTerm), LocatorUtils.property(thatLocator, "term", rhsTerm), lhsTerm, rhsTerm, (this.term!= null), (that.term!= null))) {
return false;
}
}
{
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;
}
}
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 theName;
theName = this.getName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName, (this.name!= null));
}
{
String theTerm;
theTerm = this.getTerm();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "term", theTerm), currentHashCode, theTerm, (this.term!= null));
}
{
String theId;
theId = this.getId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}
}