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

com.intuit.ipp.data.Department 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.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.12.08 at 07:59:36 PM PST 
//


package com.intuit.ipp.data;

import java.io.Serializable;
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;


/**
 * Department provide a way to track different
 * 				segments of the business, and to break down the income and expenses
 * 				for each segment. Department can apply to all transactions, so
 * 				they're not tied to a particular client or project.
 * 			
 * 
 * 

Java class for Department complex type. * *

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

 * <complexType name="Department">
 *   <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="SubDepartment" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
 *         <element name="ParentRef" type="{http://schema.intuit.com/finance/v3}ReferenceType" minOccurs="0"/>
 *         <element name="FullyQualifiedName" 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="DepartmentEx" type="{http://schema.intuit.com/finance/v3}IntuitAnyType" minOccurs="0"/>
 *         <element name="Address" type="{http://schema.intuit.com/finance/v3}PhysicalAddress" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Department", propOrder = { "name", "subDepartment", "parentRef", "fullyQualifiedName", "active", "departmentEx", "address" }) public class Department extends IntuitEntity implements Serializable, Equals2, HashCode2 { private final static long serialVersionUID = 1L; @XmlElement(name = "Name") protected String name; @XmlElement(name = "SubDepartment") protected Boolean subDepartment; @XmlElement(name = "ParentRef") protected ReferenceType parentRef; @XmlElement(name = "FullyQualifiedName") protected String fullyQualifiedName; @XmlElement(name = "Active") protected Boolean active; @XmlElement(name = "DepartmentEx") protected IntuitAnyType departmentEx; @XmlElement(name = "Address") protected PhysicalAddress address; /** * 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 subDepartment property. * * @return * possible object is * {@link Boolean } * */ public Boolean isSubDepartment() { return subDepartment; } /** * Sets the value of the subDepartment property. * * @param value * allowed object is * {@link Boolean } * */ public void setSubDepartment(Boolean value) { this.subDepartment = value; } /** * Gets the value of the parentRef property. * * @return * possible object is * {@link ReferenceType } * */ public ReferenceType getParentRef() { return parentRef; } /** * Sets the value of the parentRef property. * * @param value * allowed object is * {@link ReferenceType } * */ public void setParentRef(ReferenceType value) { this.parentRef = value; } /** * Gets the value of the fullyQualifiedName property. * * @return * possible object is * {@link String } * */ public String getFullyQualifiedName() { return fullyQualifiedName; } /** * Sets the value of the fullyQualifiedName property. * * @param value * allowed object is * {@link String } * */ public void setFullyQualifiedName(String value) { this.fullyQualifiedName = 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 departmentEx property. * * @return * possible object is * {@link IntuitAnyType } * */ public IntuitAnyType getDepartmentEx() { return departmentEx; } /** * Sets the value of the departmentEx property. * * @param value * allowed object is * {@link IntuitAnyType } * */ public void setDepartmentEx(IntuitAnyType value) { this.departmentEx = value; } /** * Gets the value of the address property. * * @return * possible object is * {@link PhysicalAddress } * */ public PhysicalAddress getAddress() { return address; } /** * Sets the value of the address property. * * @param value * allowed object is * {@link PhysicalAddress } * */ public void setAddress(PhysicalAddress value) { this.address = 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 Department that = ((Department) 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 lhsSubDepartment; lhsSubDepartment = this.isSubDepartment(); Boolean rhsSubDepartment; rhsSubDepartment = that.isSubDepartment(); if (!strategy.equals(LocatorUtils.property(thisLocator, "subDepartment", lhsSubDepartment), LocatorUtils.property(thatLocator, "subDepartment", rhsSubDepartment), lhsSubDepartment, rhsSubDepartment, (this.subDepartment!= null), (that.subDepartment!= null))) { return false; } } { ReferenceType lhsParentRef; lhsParentRef = this.getParentRef(); ReferenceType rhsParentRef; rhsParentRef = that.getParentRef(); if (!strategy.equals(LocatorUtils.property(thisLocator, "parentRef", lhsParentRef), LocatorUtils.property(thatLocator, "parentRef", rhsParentRef), lhsParentRef, rhsParentRef, (this.parentRef!= null), (that.parentRef!= null))) { return false; } } { String lhsFullyQualifiedName; lhsFullyQualifiedName = this.getFullyQualifiedName(); String rhsFullyQualifiedName; rhsFullyQualifiedName = that.getFullyQualifiedName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "fullyQualifiedName", lhsFullyQualifiedName), LocatorUtils.property(thatLocator, "fullyQualifiedName", rhsFullyQualifiedName), lhsFullyQualifiedName, rhsFullyQualifiedName, (this.fullyQualifiedName!= null), (that.fullyQualifiedName!= 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; } } { IntuitAnyType lhsDepartmentEx; lhsDepartmentEx = this.getDepartmentEx(); IntuitAnyType rhsDepartmentEx; rhsDepartmentEx = that.getDepartmentEx(); if (!strategy.equals(LocatorUtils.property(thisLocator, "departmentEx", lhsDepartmentEx), LocatorUtils.property(thatLocator, "departmentEx", rhsDepartmentEx), lhsDepartmentEx, rhsDepartmentEx, (this.departmentEx!= null), (that.departmentEx!= null))) { return false; } } { PhysicalAddress lhsAddress; lhsAddress = this.getAddress(); PhysicalAddress rhsAddress; rhsAddress = that.getAddress(); if (!strategy.equals(LocatorUtils.property(thisLocator, "address", lhsAddress), LocatorUtils.property(thatLocator, "address", rhsAddress), lhsAddress, rhsAddress, (this.address!= null), (that.address!= 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 theSubDepartment; theSubDepartment = this.isSubDepartment(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "subDepartment", theSubDepartment), currentHashCode, theSubDepartment, (this.subDepartment!= null)); } { ReferenceType theParentRef; theParentRef = this.getParentRef(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "parentRef", theParentRef), currentHashCode, theParentRef, (this.parentRef!= null)); } { String theFullyQualifiedName; theFullyQualifiedName = this.getFullyQualifiedName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fullyQualifiedName", theFullyQualifiedName), currentHashCode, theFullyQualifiedName, (this.fullyQualifiedName!= null)); } { Boolean theActive; theActive = this.isActive(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "active", theActive), currentHashCode, theActive, (this.active!= null)); } { IntuitAnyType theDepartmentEx; theDepartmentEx = this.getDepartmentEx(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "departmentEx", theDepartmentEx), currentHashCode, theDepartmentEx, (this.departmentEx!= null)); } { PhysicalAddress theAddress; theAddress = this.getAddress(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "address", theAddress), currentHashCode, theAddress, (this.address!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy