com.intuit.ipp.data.CompanyCurrency 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.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;
/**
* Company currency are the currencies used by the
* company. Each Company Currency describes the properties of that
* currency.
*
* Java class for CompanyCurrency complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="CompanyCurrency">
* <complexContent>
* <extension base="{http://schema.intuit.com/finance/v3}IntuitEntity">
* <sequence>
* <element name="Code" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Name" 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="CompanyCurrencyEx" type="{http://schema.intuit.com/finance/v3}IntuitAnyType" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CompanyCurrency", propOrder = {
"code",
"name",
"active",
"companyCurrencyEx"
})
public class CompanyCurrency
extends IntuitEntity
implements Serializable, Equals2, HashCode2
{
private final static long serialVersionUID = 1L;
@XmlElement(name = "Code")
protected String code;
@XmlElement(name = "Name")
protected String name;
@XmlElement(name = "Active")
protected Boolean active;
@XmlElement(name = "CompanyCurrencyEx")
protected IntuitAnyType companyCurrencyEx;
/**
* Gets the value of the code property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCode() {
return code;
}
/**
* Sets the value of the code property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCode(String value) {
this.code = value;
}
/**
* 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 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 companyCurrencyEx property.
*
* @return
* possible object is
* {@link IntuitAnyType }
*
*/
public IntuitAnyType getCompanyCurrencyEx() {
return companyCurrencyEx;
}
/**
* Sets the value of the companyCurrencyEx property.
*
* @param value
* allowed object is
* {@link IntuitAnyType }
*
*/
public void setCompanyCurrencyEx(IntuitAnyType value) {
this.companyCurrencyEx = 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 CompanyCurrency that = ((CompanyCurrency) object);
{
String lhsCode;
lhsCode = this.getCode();
String rhsCode;
rhsCode = that.getCode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "code", lhsCode), LocatorUtils.property(thatLocator, "code", rhsCode), lhsCode, rhsCode, (this.code!= null), (that.code!= null))) {
return false;
}
}
{
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 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 lhsCompanyCurrencyEx;
lhsCompanyCurrencyEx = this.getCompanyCurrencyEx();
IntuitAnyType rhsCompanyCurrencyEx;
rhsCompanyCurrencyEx = that.getCompanyCurrencyEx();
if (!strategy.equals(LocatorUtils.property(thisLocator, "companyCurrencyEx", lhsCompanyCurrencyEx), LocatorUtils.property(thatLocator, "companyCurrencyEx", rhsCompanyCurrencyEx), lhsCompanyCurrencyEx, rhsCompanyCurrencyEx, (this.companyCurrencyEx!= null), (that.companyCurrencyEx!= 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 theCode;
theCode = this.getCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "code", theCode), currentHashCode, theCode, (this.code!= null));
}
{
String theName;
theName = this.getName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName, (this.name!= null));
}
{
Boolean theActive;
theActive = this.isActive();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "active", theActive), currentHashCode, theActive, (this.active!= null));
}
{
IntuitAnyType theCompanyCurrencyEx;
theCompanyCurrencyEx = this.getCompanyCurrencyEx();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "companyCurrencyEx", theCompanyCurrencyEx), currentHashCode, theCompanyCurrencyEx, (this.companyCurrencyEx!= null));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}