com.intuit.ipp.data.Line 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.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.math.BigDecimal;
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.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
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;
/**
*
* Product: ALL
* Description: A line item of a
* transaction.
*
*
* Java class for Line complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Line">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Id" type="{http://schema.intuit.com/finance/v3}id" minOccurs="0"/>
* <element name="LineNum" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" minOccurs="0"/>
* <element name="Description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Amount" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
* <element name="Received" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
* <element name="LinkedTxn" type="{http://schema.intuit.com/finance/v3}LinkedTxn" maxOccurs="unbounded" minOccurs="0"/>
* <element name="DetailType" type="{http://schema.intuit.com/finance/v3}LineDetailTypeEnum" minOccurs="0"/>
* <choice minOccurs="0">
* <element name="PaymentLineDetail" type="{http://schema.intuit.com/finance/v3}PaymentLineDetail"/>
* <element name="DiscountLineDetail" type="{http://schema.intuit.com/finance/v3}DiscountLineDetail"/>
* <element name="TaxLineDetail" type="{http://schema.intuit.com/finance/v3}TaxLineDetail"/>
* <element name="SalesItemLineDetail" type="{http://schema.intuit.com/finance/v3}SalesItemLineDetail"/>
* <element name="DescriptionLineDetail" type="{http://schema.intuit.com/finance/v3}DescriptionLineDetail"/>
* <element name="ItemBasedExpenseLineDetail" type="{http://schema.intuit.com/finance/v3}ItemBasedExpenseLineDetail"/>
* <element name="AccountBasedExpenseLineDetail" type="{http://schema.intuit.com/finance/v3}AccountBasedExpenseLineDetail"/>
* <element name="ReimburseLineDetail" type="{http://schema.intuit.com/finance/v3}ReimburseLineDetail"/>
* <element name="DepositLineDetail" type="{http://schema.intuit.com/finance/v3}DepositLineDetail"/>
* <element name="PurchaseOrderItemLineDetail" type="{http://schema.intuit.com/finance/v3}PurchaseOrderItemLineDetail"/>
* <element name="SalesOrderItemLineDetail" type="{http://schema.intuit.com/finance/v3}SalesOrderItemLineDetail"/>
* <element name="ItemReceiptLineDetail" type="{http://schema.intuit.com/finance/v3}ItemReceiptLineDetail"/>
* <element name="JournalEntryLineDetail" type="{http://schema.intuit.com/finance/v3}JournalEntryLineDetail"/>
* <element name="GroupLineDetail" type="{http://schema.intuit.com/finance/v3}GroupLineDetail"/>
* <element name="SubTotalLineDetail" type="{http://schema.intuit.com/finance/v3}SubTotalLineDetail"/>
* <element name="TDSLineDetail" type="{http://schema.intuit.com/finance/v3}TDSLineDetail"/>
* <element name="ItemAdjustmentLineDetail" type="{http://schema.intuit.com/finance/v3}ItemAdjustmentLineDetail"/>
* </choice>
* <element name="CustomField" type="{http://schema.intuit.com/finance/v3}CustomField" maxOccurs="unbounded" minOccurs="0"/>
* <element name="LineEx" type="{http://schema.intuit.com/finance/v3}IntuitAnyType" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Line", propOrder = {
"id",
"lineNum",
"description",
"amount",
"received",
"linkedTxn",
"detailType",
"paymentLineDetail",
"discountLineDetail",
"taxLineDetail",
"salesItemLineDetail",
"descriptionLineDetail",
"itemBasedExpenseLineDetail",
"accountBasedExpenseLineDetail",
"reimburseLineDetail",
"depositLineDetail",
"purchaseOrderItemLineDetail",
"salesOrderItemLineDetail",
"itemReceiptLineDetail",
"journalEntryLineDetail",
"groupLineDetail",
"subTotalLineDetail",
"tdsLineDetail",
"itemAdjustmentLineDetail",
"customField",
"lineEx"
})
public class Line implements Serializable, Equals2, HashCode2
{
private final static long serialVersionUID = 1L;
@XmlElement(name = "Id")
protected String id;
@XmlElement(name = "LineNum")
@XmlSchemaType(name = "positiveInteger")
protected BigInteger lineNum;
@XmlElement(name = "Description")
protected String description;
@XmlElement(name = "Amount")
protected BigDecimal amount;
@XmlElement(name = "Received")
protected BigDecimal received;
@XmlElement(name = "LinkedTxn")
protected List linkedTxn;
@XmlElement(name = "DetailType")
@XmlSchemaType(name = "string")
protected LineDetailTypeEnum detailType;
@XmlElement(name = "PaymentLineDetail")
protected PaymentLineDetail paymentLineDetail;
@XmlElement(name = "DiscountLineDetail")
protected DiscountLineDetail discountLineDetail;
@XmlElement(name = "TaxLineDetail")
protected TaxLineDetail taxLineDetail;
@XmlElement(name = "SalesItemLineDetail")
protected SalesItemLineDetail salesItemLineDetail;
@XmlElement(name = "DescriptionLineDetail")
protected DescriptionLineDetail descriptionLineDetail;
@XmlElement(name = "ItemBasedExpenseLineDetail")
protected ItemBasedExpenseLineDetail itemBasedExpenseLineDetail;
@XmlElement(name = "AccountBasedExpenseLineDetail")
protected AccountBasedExpenseLineDetail accountBasedExpenseLineDetail;
@XmlElement(name = "ReimburseLineDetail")
protected ReimburseLineDetail reimburseLineDetail;
@XmlElement(name = "DepositLineDetail")
protected DepositLineDetail depositLineDetail;
@XmlElement(name = "PurchaseOrderItemLineDetail")
protected PurchaseOrderItemLineDetail purchaseOrderItemLineDetail;
@XmlElement(name = "SalesOrderItemLineDetail")
protected SalesOrderItemLineDetail salesOrderItemLineDetail;
@XmlElement(name = "ItemReceiptLineDetail")
protected ItemReceiptLineDetail itemReceiptLineDetail;
@XmlElement(name = "JournalEntryLineDetail")
protected JournalEntryLineDetail journalEntryLineDetail;
@XmlElement(name = "GroupLineDetail")
protected GroupLineDetail groupLineDetail;
@XmlElement(name = "SubTotalLineDetail")
protected SubTotalLineDetail subTotalLineDetail;
@XmlElement(name = "TDSLineDetail")
protected TDSLineDetail tdsLineDetail;
@XmlElement(name = "ItemAdjustmentLineDetail")
protected ItemAdjustmentLineDetail itemAdjustmentLineDetail;
@XmlElement(name = "CustomField")
protected List customField;
@XmlElement(name = "LineEx")
protected IntuitAnyType lineEx;
/**
* 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;
}
/**
* Gets the value of the lineNum property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getLineNum() {
return lineNum;
}
/**
* Sets the value of the lineNum property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setLineNum(BigInteger value) {
this.lineNum = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the amount property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getAmount() {
return amount;
}
/**
* Sets the value of the amount property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setAmount(BigDecimal value) {
this.amount = value;
}
/**
* Gets the value of the received property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getReceived() {
return received;
}
/**
* Sets the value of the received property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setReceived(BigDecimal value) {
this.received = value;
}
/**
* Gets the value of the linkedTxn 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 linkedTxn property.
*
*
* For example, to add a new item, do as follows:
*
* getLinkedTxn().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link LinkedTxn }
*
*
*/
public List getLinkedTxn() {
if (linkedTxn == null) {
linkedTxn = new ArrayList();
}
return this.linkedTxn;
}
/**
* Gets the value of the detailType property.
*
* @return
* possible object is
* {@link LineDetailTypeEnum }
*
*/
public LineDetailTypeEnum getDetailType() {
return detailType;
}
/**
* Sets the value of the detailType property.
*
* @param value
* allowed object is
* {@link LineDetailTypeEnum }
*
*/
public void setDetailType(LineDetailTypeEnum value) {
this.detailType = value;
}
/**
* Gets the value of the paymentLineDetail property.
*
* @return
* possible object is
* {@link PaymentLineDetail }
*
*/
public PaymentLineDetail getPaymentLineDetail() {
return paymentLineDetail;
}
/**
* Sets the value of the paymentLineDetail property.
*
* @param value
* allowed object is
* {@link PaymentLineDetail }
*
*/
public void setPaymentLineDetail(PaymentLineDetail value) {
this.paymentLineDetail = value;
}
/**
* Gets the value of the discountLineDetail property.
*
* @return
* possible object is
* {@link DiscountLineDetail }
*
*/
public DiscountLineDetail getDiscountLineDetail() {
return discountLineDetail;
}
/**
* Sets the value of the discountLineDetail property.
*
* @param value
* allowed object is
* {@link DiscountLineDetail }
*
*/
public void setDiscountLineDetail(DiscountLineDetail value) {
this.discountLineDetail = value;
}
/**
* Gets the value of the taxLineDetail property.
*
* @return
* possible object is
* {@link TaxLineDetail }
*
*/
public TaxLineDetail getTaxLineDetail() {
return taxLineDetail;
}
/**
* Sets the value of the taxLineDetail property.
*
* @param value
* allowed object is
* {@link TaxLineDetail }
*
*/
public void setTaxLineDetail(TaxLineDetail value) {
this.taxLineDetail = value;
}
/**
* Gets the value of the salesItemLineDetail property.
*
* @return
* possible object is
* {@link SalesItemLineDetail }
*
*/
public SalesItemLineDetail getSalesItemLineDetail() {
return salesItemLineDetail;
}
/**
* Sets the value of the salesItemLineDetail property.
*
* @param value
* allowed object is
* {@link SalesItemLineDetail }
*
*/
public void setSalesItemLineDetail(SalesItemLineDetail value) {
this.salesItemLineDetail = value;
}
/**
* Gets the value of the descriptionLineDetail property.
*
* @return
* possible object is
* {@link DescriptionLineDetail }
*
*/
public DescriptionLineDetail getDescriptionLineDetail() {
return descriptionLineDetail;
}
/**
* Sets the value of the descriptionLineDetail property.
*
* @param value
* allowed object is
* {@link DescriptionLineDetail }
*
*/
public void setDescriptionLineDetail(DescriptionLineDetail value) {
this.descriptionLineDetail = value;
}
/**
* Gets the value of the itemBasedExpenseLineDetail property.
*
* @return
* possible object is
* {@link ItemBasedExpenseLineDetail }
*
*/
public ItemBasedExpenseLineDetail getItemBasedExpenseLineDetail() {
return itemBasedExpenseLineDetail;
}
/**
* Sets the value of the itemBasedExpenseLineDetail property.
*
* @param value
* allowed object is
* {@link ItemBasedExpenseLineDetail }
*
*/
public void setItemBasedExpenseLineDetail(ItemBasedExpenseLineDetail value) {
this.itemBasedExpenseLineDetail = value;
}
/**
* Gets the value of the accountBasedExpenseLineDetail property.
*
* @return
* possible object is
* {@link AccountBasedExpenseLineDetail }
*
*/
public AccountBasedExpenseLineDetail getAccountBasedExpenseLineDetail() {
return accountBasedExpenseLineDetail;
}
/**
* Sets the value of the accountBasedExpenseLineDetail property.
*
* @param value
* allowed object is
* {@link AccountBasedExpenseLineDetail }
*
*/
public void setAccountBasedExpenseLineDetail(AccountBasedExpenseLineDetail value) {
this.accountBasedExpenseLineDetail = value;
}
/**
* Gets the value of the reimburseLineDetail property.
*
* @return
* possible object is
* {@link ReimburseLineDetail }
*
*/
public ReimburseLineDetail getReimburseLineDetail() {
return reimburseLineDetail;
}
/**
* Sets the value of the reimburseLineDetail property.
*
* @param value
* allowed object is
* {@link ReimburseLineDetail }
*
*/
public void setReimburseLineDetail(ReimburseLineDetail value) {
this.reimburseLineDetail = value;
}
/**
* Gets the value of the depositLineDetail property.
*
* @return
* possible object is
* {@link DepositLineDetail }
*
*/
public DepositLineDetail getDepositLineDetail() {
return depositLineDetail;
}
/**
* Sets the value of the depositLineDetail property.
*
* @param value
* allowed object is
* {@link DepositLineDetail }
*
*/
public void setDepositLineDetail(DepositLineDetail value) {
this.depositLineDetail = value;
}
/**
* Gets the value of the purchaseOrderItemLineDetail property.
*
* @return
* possible object is
* {@link PurchaseOrderItemLineDetail }
*
*/
public PurchaseOrderItemLineDetail getPurchaseOrderItemLineDetail() {
return purchaseOrderItemLineDetail;
}
/**
* Sets the value of the purchaseOrderItemLineDetail property.
*
* @param value
* allowed object is
* {@link PurchaseOrderItemLineDetail }
*
*/
public void setPurchaseOrderItemLineDetail(PurchaseOrderItemLineDetail value) {
this.purchaseOrderItemLineDetail = value;
}
/**
* Gets the value of the salesOrderItemLineDetail property.
*
* @return
* possible object is
* {@link SalesOrderItemLineDetail }
*
*/
public SalesOrderItemLineDetail getSalesOrderItemLineDetail() {
return salesOrderItemLineDetail;
}
/**
* Sets the value of the salesOrderItemLineDetail property.
*
* @param value
* allowed object is
* {@link SalesOrderItemLineDetail }
*
*/
public void setSalesOrderItemLineDetail(SalesOrderItemLineDetail value) {
this.salesOrderItemLineDetail = value;
}
/**
* Gets the value of the itemReceiptLineDetail property.
*
* @return
* possible object is
* {@link ItemReceiptLineDetail }
*
*/
public ItemReceiptLineDetail getItemReceiptLineDetail() {
return itemReceiptLineDetail;
}
/**
* Sets the value of the itemReceiptLineDetail property.
*
* @param value
* allowed object is
* {@link ItemReceiptLineDetail }
*
*/
public void setItemReceiptLineDetail(ItemReceiptLineDetail value) {
this.itemReceiptLineDetail = value;
}
/**
* Gets the value of the journalEntryLineDetail property.
*
* @return
* possible object is
* {@link JournalEntryLineDetail }
*
*/
public JournalEntryLineDetail getJournalEntryLineDetail() {
return journalEntryLineDetail;
}
/**
* Sets the value of the journalEntryLineDetail property.
*
* @param value
* allowed object is
* {@link JournalEntryLineDetail }
*
*/
public void setJournalEntryLineDetail(JournalEntryLineDetail value) {
this.journalEntryLineDetail = value;
}
/**
* Gets the value of the groupLineDetail property.
*
* @return
* possible object is
* {@link GroupLineDetail }
*
*/
public GroupLineDetail getGroupLineDetail() {
return groupLineDetail;
}
/**
* Sets the value of the groupLineDetail property.
*
* @param value
* allowed object is
* {@link GroupLineDetail }
*
*/
public void setGroupLineDetail(GroupLineDetail value) {
this.groupLineDetail = value;
}
/**
* Gets the value of the subTotalLineDetail property.
*
* @return
* possible object is
* {@link SubTotalLineDetail }
*
*/
public SubTotalLineDetail getSubTotalLineDetail() {
return subTotalLineDetail;
}
/**
* Sets the value of the subTotalLineDetail property.
*
* @param value
* allowed object is
* {@link SubTotalLineDetail }
*
*/
public void setSubTotalLineDetail(SubTotalLineDetail value) {
this.subTotalLineDetail = value;
}
/**
* Gets the value of the tdsLineDetail property.
*
* @return
* possible object is
* {@link TDSLineDetail }
*
*/
public TDSLineDetail getTDSLineDetail() {
return tdsLineDetail;
}
/**
* Sets the value of the tdsLineDetail property.
*
* @param value
* allowed object is
* {@link TDSLineDetail }
*
*/
public void setTDSLineDetail(TDSLineDetail value) {
this.tdsLineDetail = value;
}
/**
* Gets the value of the itemAdjustmentLineDetail property.
*
* @return
* possible object is
* {@link ItemAdjustmentLineDetail }
*
*/
public ItemAdjustmentLineDetail getItemAdjustmentLineDetail() {
return itemAdjustmentLineDetail;
}
/**
* Sets the value of the itemAdjustmentLineDetail property.
*
* @param value
* allowed object is
* {@link ItemAdjustmentLineDetail }
*
*/
public void setItemAdjustmentLineDetail(ItemAdjustmentLineDetail value) {
this.itemAdjustmentLineDetail = value;
}
/**
* Gets the value of the customField 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 customField property.
*
*
* For example, to add a new item, do as follows:
*
* getCustomField().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CustomField }
*
*
*/
public List getCustomField() {
if (customField == null) {
customField = new ArrayList();
}
return this.customField;
}
/**
* Gets the value of the lineEx property.
*
* @return
* possible object is
* {@link IntuitAnyType }
*
*/
public IntuitAnyType getLineEx() {
return lineEx;
}
/**
* Sets the value of the lineEx property.
*
* @param value
* allowed object is
* {@link IntuitAnyType }
*
*/
public void setLineEx(IntuitAnyType value) {
this.lineEx = value;
}
/**
* Sets the value of the linkedTxn property.
*
* @param linkedTxn
* allowed object is
* {@link LinkedTxn }
*
*/
public void setLinkedTxn(List linkedTxn) {
this.linkedTxn = linkedTxn;
}
/**
* Sets the value of the customField property.
*
* @param customField
* allowed object is
* {@link CustomField }
*
*/
public void setCustomField(List customField) {
this.customField = customField;
}
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 Line that = ((Line) object);
{
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;
}
}
{
BigInteger lhsLineNum;
lhsLineNum = this.getLineNum();
BigInteger rhsLineNum;
rhsLineNum = that.getLineNum();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lineNum", lhsLineNum), LocatorUtils.property(thatLocator, "lineNum", rhsLineNum), lhsLineNum, rhsLineNum, (this.lineNum!= null), (that.lineNum!= null))) {
return false;
}
}
{
String lhsDescription;
lhsDescription = this.getDescription();
String rhsDescription;
rhsDescription = that.getDescription();
if (!strategy.equals(LocatorUtils.property(thisLocator, "description", lhsDescription), LocatorUtils.property(thatLocator, "description", rhsDescription), lhsDescription, rhsDescription, (this.description!= null), (that.description!= null))) {
return false;
}
}
{
BigDecimal lhsAmount;
lhsAmount = this.getAmount();
BigDecimal rhsAmount;
rhsAmount = that.getAmount();
if (!strategy.equals(LocatorUtils.property(thisLocator, "amount", lhsAmount), LocatorUtils.property(thatLocator, "amount", rhsAmount), lhsAmount, rhsAmount, (this.amount!= null), (that.amount!= null))) {
return false;
}
}
{
BigDecimal lhsReceived;
lhsReceived = this.getReceived();
BigDecimal rhsReceived;
rhsReceived = that.getReceived();
if (!strategy.equals(LocatorUtils.property(thisLocator, "received", lhsReceived), LocatorUtils.property(thatLocator, "received", rhsReceived), lhsReceived, rhsReceived, (this.received!= null), (that.received!= null))) {
return false;
}
}
{
List lhsLinkedTxn;
lhsLinkedTxn = (((this.linkedTxn!= null)&&(!this.linkedTxn.isEmpty()))?this.getLinkedTxn():null);
List rhsLinkedTxn;
rhsLinkedTxn = (((that.linkedTxn!= null)&&(!that.linkedTxn.isEmpty()))?that.getLinkedTxn():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "linkedTxn", lhsLinkedTxn), LocatorUtils.property(thatLocator, "linkedTxn", rhsLinkedTxn), lhsLinkedTxn, rhsLinkedTxn, ((this.linkedTxn!= null)&&(!this.linkedTxn.isEmpty())), ((that.linkedTxn!= null)&&(!that.linkedTxn.isEmpty())))) {
return false;
}
}
{
LineDetailTypeEnum lhsDetailType;
lhsDetailType = this.getDetailType();
LineDetailTypeEnum rhsDetailType;
rhsDetailType = that.getDetailType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "detailType", lhsDetailType), LocatorUtils.property(thatLocator, "detailType", rhsDetailType), lhsDetailType, rhsDetailType, (this.detailType!= null), (that.detailType!= null))) {
return false;
}
}
{
PaymentLineDetail lhsPaymentLineDetail;
lhsPaymentLineDetail = this.getPaymentLineDetail();
PaymentLineDetail rhsPaymentLineDetail;
rhsPaymentLineDetail = that.getPaymentLineDetail();
if (!strategy.equals(LocatorUtils.property(thisLocator, "paymentLineDetail", lhsPaymentLineDetail), LocatorUtils.property(thatLocator, "paymentLineDetail", rhsPaymentLineDetail), lhsPaymentLineDetail, rhsPaymentLineDetail, (this.paymentLineDetail!= null), (that.paymentLineDetail!= null))) {
return false;
}
}
{
DiscountLineDetail lhsDiscountLineDetail;
lhsDiscountLineDetail = this.getDiscountLineDetail();
DiscountLineDetail rhsDiscountLineDetail;
rhsDiscountLineDetail = that.getDiscountLineDetail();
if (!strategy.equals(LocatorUtils.property(thisLocator, "discountLineDetail", lhsDiscountLineDetail), LocatorUtils.property(thatLocator, "discountLineDetail", rhsDiscountLineDetail), lhsDiscountLineDetail, rhsDiscountLineDetail, (this.discountLineDetail!= null), (that.discountLineDetail!= null))) {
return false;
}
}
{
TaxLineDetail lhsTaxLineDetail;
lhsTaxLineDetail = this.getTaxLineDetail();
TaxLineDetail rhsTaxLineDetail;
rhsTaxLineDetail = that.getTaxLineDetail();
if (!strategy.equals(LocatorUtils.property(thisLocator, "taxLineDetail", lhsTaxLineDetail), LocatorUtils.property(thatLocator, "taxLineDetail", rhsTaxLineDetail), lhsTaxLineDetail, rhsTaxLineDetail, (this.taxLineDetail!= null), (that.taxLineDetail!= null))) {
return false;
}
}
{
SalesItemLineDetail lhsSalesItemLineDetail;
lhsSalesItemLineDetail = this.getSalesItemLineDetail();
SalesItemLineDetail rhsSalesItemLineDetail;
rhsSalesItemLineDetail = that.getSalesItemLineDetail();
if (!strategy.equals(LocatorUtils.property(thisLocator, "salesItemLineDetail", lhsSalesItemLineDetail), LocatorUtils.property(thatLocator, "salesItemLineDetail", rhsSalesItemLineDetail), lhsSalesItemLineDetail, rhsSalesItemLineDetail, (this.salesItemLineDetail!= null), (that.salesItemLineDetail!= null))) {
return false;
}
}
{
DescriptionLineDetail lhsDescriptionLineDetail;
lhsDescriptionLineDetail = this.getDescriptionLineDetail();
DescriptionLineDetail rhsDescriptionLineDetail;
rhsDescriptionLineDetail = that.getDescriptionLineDetail();
if (!strategy.equals(LocatorUtils.property(thisLocator, "descriptionLineDetail", lhsDescriptionLineDetail), LocatorUtils.property(thatLocator, "descriptionLineDetail", rhsDescriptionLineDetail), lhsDescriptionLineDetail, rhsDescriptionLineDetail, (this.descriptionLineDetail!= null), (that.descriptionLineDetail!= null))) {
return false;
}
}
{
ItemBasedExpenseLineDetail lhsItemBasedExpenseLineDetail;
lhsItemBasedExpenseLineDetail = this.getItemBasedExpenseLineDetail();
ItemBasedExpenseLineDetail rhsItemBasedExpenseLineDetail;
rhsItemBasedExpenseLineDetail = that.getItemBasedExpenseLineDetail();
if (!strategy.equals(LocatorUtils.property(thisLocator, "itemBasedExpenseLineDetail", lhsItemBasedExpenseLineDetail), LocatorUtils.property(thatLocator, "itemBasedExpenseLineDetail", rhsItemBasedExpenseLineDetail), lhsItemBasedExpenseLineDetail, rhsItemBasedExpenseLineDetail, (this.itemBasedExpenseLineDetail!= null), (that.itemBasedExpenseLineDetail!= null))) {
return false;
}
}
{
AccountBasedExpenseLineDetail lhsAccountBasedExpenseLineDetail;
lhsAccountBasedExpenseLineDetail = this.getAccountBasedExpenseLineDetail();
AccountBasedExpenseLineDetail rhsAccountBasedExpenseLineDetail;
rhsAccountBasedExpenseLineDetail = that.getAccountBasedExpenseLineDetail();
if (!strategy.equals(LocatorUtils.property(thisLocator, "accountBasedExpenseLineDetail", lhsAccountBasedExpenseLineDetail), LocatorUtils.property(thatLocator, "accountBasedExpenseLineDetail", rhsAccountBasedExpenseLineDetail), lhsAccountBasedExpenseLineDetail, rhsAccountBasedExpenseLineDetail, (this.accountBasedExpenseLineDetail!= null), (that.accountBasedExpenseLineDetail!= null))) {
return false;
}
}
{
ReimburseLineDetail lhsReimburseLineDetail;
lhsReimburseLineDetail = this.getReimburseLineDetail();
ReimburseLineDetail rhsReimburseLineDetail;
rhsReimburseLineDetail = that.getReimburseLineDetail();
if (!strategy.equals(LocatorUtils.property(thisLocator, "reimburseLineDetail", lhsReimburseLineDetail), LocatorUtils.property(thatLocator, "reimburseLineDetail", rhsReimburseLineDetail), lhsReimburseLineDetail, rhsReimburseLineDetail, (this.reimburseLineDetail!= null), (that.reimburseLineDetail!= null))) {
return false;
}
}
{
DepositLineDetail lhsDepositLineDetail;
lhsDepositLineDetail = this.getDepositLineDetail();
DepositLineDetail rhsDepositLineDetail;
rhsDepositLineDetail = that.getDepositLineDetail();
if (!strategy.equals(LocatorUtils.property(thisLocator, "depositLineDetail", lhsDepositLineDetail), LocatorUtils.property(thatLocator, "depositLineDetail", rhsDepositLineDetail), lhsDepositLineDetail, rhsDepositLineDetail, (this.depositLineDetail!= null), (that.depositLineDetail!= null))) {
return false;
}
}
{
PurchaseOrderItemLineDetail lhsPurchaseOrderItemLineDetail;
lhsPurchaseOrderItemLineDetail = this.getPurchaseOrderItemLineDetail();
PurchaseOrderItemLineDetail rhsPurchaseOrderItemLineDetail;
rhsPurchaseOrderItemLineDetail = that.getPurchaseOrderItemLineDetail();
if (!strategy.equals(LocatorUtils.property(thisLocator, "purchaseOrderItemLineDetail", lhsPurchaseOrderItemLineDetail), LocatorUtils.property(thatLocator, "purchaseOrderItemLineDetail", rhsPurchaseOrderItemLineDetail), lhsPurchaseOrderItemLineDetail, rhsPurchaseOrderItemLineDetail, (this.purchaseOrderItemLineDetail!= null), (that.purchaseOrderItemLineDetail!= null))) {
return false;
}
}
{
SalesOrderItemLineDetail lhsSalesOrderItemLineDetail;
lhsSalesOrderItemLineDetail = this.getSalesOrderItemLineDetail();
SalesOrderItemLineDetail rhsSalesOrderItemLineDetail;
rhsSalesOrderItemLineDetail = that.getSalesOrderItemLineDetail();
if (!strategy.equals(LocatorUtils.property(thisLocator, "salesOrderItemLineDetail", lhsSalesOrderItemLineDetail), LocatorUtils.property(thatLocator, "salesOrderItemLineDetail", rhsSalesOrderItemLineDetail), lhsSalesOrderItemLineDetail, rhsSalesOrderItemLineDetail, (this.salesOrderItemLineDetail!= null), (that.salesOrderItemLineDetail!= null))) {
return false;
}
}
{
ItemReceiptLineDetail lhsItemReceiptLineDetail;
lhsItemReceiptLineDetail = this.getItemReceiptLineDetail();
ItemReceiptLineDetail rhsItemReceiptLineDetail;
rhsItemReceiptLineDetail = that.getItemReceiptLineDetail();
if (!strategy.equals(LocatorUtils.property(thisLocator, "itemReceiptLineDetail", lhsItemReceiptLineDetail), LocatorUtils.property(thatLocator, "itemReceiptLineDetail", rhsItemReceiptLineDetail), lhsItemReceiptLineDetail, rhsItemReceiptLineDetail, (this.itemReceiptLineDetail!= null), (that.itemReceiptLineDetail!= null))) {
return false;
}
}
{
JournalEntryLineDetail lhsJournalEntryLineDetail;
lhsJournalEntryLineDetail = this.getJournalEntryLineDetail();
JournalEntryLineDetail rhsJournalEntryLineDetail;
rhsJournalEntryLineDetail = that.getJournalEntryLineDetail();
if (!strategy.equals(LocatorUtils.property(thisLocator, "journalEntryLineDetail", lhsJournalEntryLineDetail), LocatorUtils.property(thatLocator, "journalEntryLineDetail", rhsJournalEntryLineDetail), lhsJournalEntryLineDetail, rhsJournalEntryLineDetail, (this.journalEntryLineDetail!= null), (that.journalEntryLineDetail!= null))) {
return false;
}
}
{
GroupLineDetail lhsGroupLineDetail;
lhsGroupLineDetail = this.getGroupLineDetail();
GroupLineDetail rhsGroupLineDetail;
rhsGroupLineDetail = that.getGroupLineDetail();
if (!strategy.equals(LocatorUtils.property(thisLocator, "groupLineDetail", lhsGroupLineDetail), LocatorUtils.property(thatLocator, "groupLineDetail", rhsGroupLineDetail), lhsGroupLineDetail, rhsGroupLineDetail, (this.groupLineDetail!= null), (that.groupLineDetail!= null))) {
return false;
}
}
{
SubTotalLineDetail lhsSubTotalLineDetail;
lhsSubTotalLineDetail = this.getSubTotalLineDetail();
SubTotalLineDetail rhsSubTotalLineDetail;
rhsSubTotalLineDetail = that.getSubTotalLineDetail();
if (!strategy.equals(LocatorUtils.property(thisLocator, "subTotalLineDetail", lhsSubTotalLineDetail), LocatorUtils.property(thatLocator, "subTotalLineDetail", rhsSubTotalLineDetail), lhsSubTotalLineDetail, rhsSubTotalLineDetail, (this.subTotalLineDetail!= null), (that.subTotalLineDetail!= null))) {
return false;
}
}
{
TDSLineDetail lhsTDSLineDetail;
lhsTDSLineDetail = this.getTDSLineDetail();
TDSLineDetail rhsTDSLineDetail;
rhsTDSLineDetail = that.getTDSLineDetail();
if (!strategy.equals(LocatorUtils.property(thisLocator, "tdsLineDetail", lhsTDSLineDetail), LocatorUtils.property(thatLocator, "tdsLineDetail", rhsTDSLineDetail), lhsTDSLineDetail, rhsTDSLineDetail, (this.tdsLineDetail!= null), (that.tdsLineDetail!= null))) {
return false;
}
}
{
ItemAdjustmentLineDetail lhsItemAdjustmentLineDetail;
lhsItemAdjustmentLineDetail = this.getItemAdjustmentLineDetail();
ItemAdjustmentLineDetail rhsItemAdjustmentLineDetail;
rhsItemAdjustmentLineDetail = that.getItemAdjustmentLineDetail();
if (!strategy.equals(LocatorUtils.property(thisLocator, "itemAdjustmentLineDetail", lhsItemAdjustmentLineDetail), LocatorUtils.property(thatLocator, "itemAdjustmentLineDetail", rhsItemAdjustmentLineDetail), lhsItemAdjustmentLineDetail, rhsItemAdjustmentLineDetail, (this.itemAdjustmentLineDetail!= null), (that.itemAdjustmentLineDetail!= null))) {
return false;
}
}
{
List lhsCustomField;
lhsCustomField = (((this.customField!= null)&&(!this.customField.isEmpty()))?this.getCustomField():null);
List rhsCustomField;
rhsCustomField = (((that.customField!= null)&&(!that.customField.isEmpty()))?that.getCustomField():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "customField", lhsCustomField), LocatorUtils.property(thatLocator, "customField", rhsCustomField), lhsCustomField, rhsCustomField, ((this.customField!= null)&&(!this.customField.isEmpty())), ((that.customField!= null)&&(!that.customField.isEmpty())))) {
return false;
}
}
{
IntuitAnyType lhsLineEx;
lhsLineEx = this.getLineEx();
IntuitAnyType rhsLineEx;
rhsLineEx = that.getLineEx();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lineEx", lhsLineEx), LocatorUtils.property(thatLocator, "lineEx", rhsLineEx), lhsLineEx, rhsLineEx, (this.lineEx!= null), (that.lineEx!= 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 theId;
theId = this.getId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null));
}
{
BigInteger theLineNum;
theLineNum = this.getLineNum();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lineNum", theLineNum), currentHashCode, theLineNum, (this.lineNum!= null));
}
{
String theDescription;
theDescription = this.getDescription();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null));
}
{
BigDecimal theAmount;
theAmount = this.getAmount();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "amount", theAmount), currentHashCode, theAmount, (this.amount!= null));
}
{
BigDecimal theReceived;
theReceived = this.getReceived();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "received", theReceived), currentHashCode, theReceived, (this.received!= null));
}
{
List theLinkedTxn;
theLinkedTxn = (((this.linkedTxn!= null)&&(!this.linkedTxn.isEmpty()))?this.getLinkedTxn():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "linkedTxn", theLinkedTxn), currentHashCode, theLinkedTxn, ((this.linkedTxn!= null)&&(!this.linkedTxn.isEmpty())));
}
{
LineDetailTypeEnum theDetailType;
theDetailType = this.getDetailType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "detailType", theDetailType), currentHashCode, theDetailType, (this.detailType!= null));
}
{
PaymentLineDetail thePaymentLineDetail;
thePaymentLineDetail = this.getPaymentLineDetail();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "paymentLineDetail", thePaymentLineDetail), currentHashCode, thePaymentLineDetail, (this.paymentLineDetail!= null));
}
{
DiscountLineDetail theDiscountLineDetail;
theDiscountLineDetail = this.getDiscountLineDetail();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "discountLineDetail", theDiscountLineDetail), currentHashCode, theDiscountLineDetail, (this.discountLineDetail!= null));
}
{
TaxLineDetail theTaxLineDetail;
theTaxLineDetail = this.getTaxLineDetail();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "taxLineDetail", theTaxLineDetail), currentHashCode, theTaxLineDetail, (this.taxLineDetail!= null));
}
{
SalesItemLineDetail theSalesItemLineDetail;
theSalesItemLineDetail = this.getSalesItemLineDetail();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "salesItemLineDetail", theSalesItemLineDetail), currentHashCode, theSalesItemLineDetail, (this.salesItemLineDetail!= null));
}
{
DescriptionLineDetail theDescriptionLineDetail;
theDescriptionLineDetail = this.getDescriptionLineDetail();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "descriptionLineDetail", theDescriptionLineDetail), currentHashCode, theDescriptionLineDetail, (this.descriptionLineDetail!= null));
}
{
ItemBasedExpenseLineDetail theItemBasedExpenseLineDetail;
theItemBasedExpenseLineDetail = this.getItemBasedExpenseLineDetail();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "itemBasedExpenseLineDetail", theItemBasedExpenseLineDetail), currentHashCode, theItemBasedExpenseLineDetail, (this.itemBasedExpenseLineDetail!= null));
}
{
AccountBasedExpenseLineDetail theAccountBasedExpenseLineDetail;
theAccountBasedExpenseLineDetail = this.getAccountBasedExpenseLineDetail();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "accountBasedExpenseLineDetail", theAccountBasedExpenseLineDetail), currentHashCode, theAccountBasedExpenseLineDetail, (this.accountBasedExpenseLineDetail!= null));
}
{
ReimburseLineDetail theReimburseLineDetail;
theReimburseLineDetail = this.getReimburseLineDetail();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reimburseLineDetail", theReimburseLineDetail), currentHashCode, theReimburseLineDetail, (this.reimburseLineDetail!= null));
}
{
DepositLineDetail theDepositLineDetail;
theDepositLineDetail = this.getDepositLineDetail();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "depositLineDetail", theDepositLineDetail), currentHashCode, theDepositLineDetail, (this.depositLineDetail!= null));
}
{
PurchaseOrderItemLineDetail thePurchaseOrderItemLineDetail;
thePurchaseOrderItemLineDetail = this.getPurchaseOrderItemLineDetail();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "purchaseOrderItemLineDetail", thePurchaseOrderItemLineDetail), currentHashCode, thePurchaseOrderItemLineDetail, (this.purchaseOrderItemLineDetail!= null));
}
{
SalesOrderItemLineDetail theSalesOrderItemLineDetail;
theSalesOrderItemLineDetail = this.getSalesOrderItemLineDetail();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "salesOrderItemLineDetail", theSalesOrderItemLineDetail), currentHashCode, theSalesOrderItemLineDetail, (this.salesOrderItemLineDetail!= null));
}
{
ItemReceiptLineDetail theItemReceiptLineDetail;
theItemReceiptLineDetail = this.getItemReceiptLineDetail();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "itemReceiptLineDetail", theItemReceiptLineDetail), currentHashCode, theItemReceiptLineDetail, (this.itemReceiptLineDetail!= null));
}
{
JournalEntryLineDetail theJournalEntryLineDetail;
theJournalEntryLineDetail = this.getJournalEntryLineDetail();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "journalEntryLineDetail", theJournalEntryLineDetail), currentHashCode, theJournalEntryLineDetail, (this.journalEntryLineDetail!= null));
}
{
GroupLineDetail theGroupLineDetail;
theGroupLineDetail = this.getGroupLineDetail();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "groupLineDetail", theGroupLineDetail), currentHashCode, theGroupLineDetail, (this.groupLineDetail!= null));
}
{
SubTotalLineDetail theSubTotalLineDetail;
theSubTotalLineDetail = this.getSubTotalLineDetail();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "subTotalLineDetail", theSubTotalLineDetail), currentHashCode, theSubTotalLineDetail, (this.subTotalLineDetail!= null));
}
{
TDSLineDetail theTDSLineDetail;
theTDSLineDetail = this.getTDSLineDetail();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tdsLineDetail", theTDSLineDetail), currentHashCode, theTDSLineDetail, (this.tdsLineDetail!= null));
}
{
ItemAdjustmentLineDetail theItemAdjustmentLineDetail;
theItemAdjustmentLineDetail = this.getItemAdjustmentLineDetail();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "itemAdjustmentLineDetail", theItemAdjustmentLineDetail), currentHashCode, theItemAdjustmentLineDetail, (this.itemAdjustmentLineDetail!= null));
}
{
List theCustomField;
theCustomField = (((this.customField!= null)&&(!this.customField.isEmpty()))?this.getCustomField():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "customField", theCustomField), currentHashCode, theCustomField, ((this.customField!= null)&&(!this.customField.isEmpty())));
}
{
IntuitAnyType theLineEx;
theLineEx = this.getLineEx();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lineEx", theLineEx), currentHashCode, theLineEx, (this.lineEx!= null));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}