oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.StatementLineType Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.07.19 at 05:08:29 PM CEST
//
package oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2;
import java.io.Serializable;
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.XmlType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.BalanceAmountType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.BalanceBroughtForwardIndicatorType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.CreditLineAmountType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.DebitLineAmountType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.IDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.NoteType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PaymentPurposeCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.UUIDType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Java class for StatementLineType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="StatementLineType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ID"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Note" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}UUID" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}BalanceBroughtForwardIndicator" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}DebitLineAmount" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}CreditLineAmount" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}BalanceAmount" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PaymentPurposeCode" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}PaymentMeans" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}PaymentTerms" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}BuyerCustomerParty" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}SellerSupplierParty" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}OriginatorCustomerParty" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}AccountingCustomerParty" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}AccountingSupplierParty" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}PayeeParty" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}InvoicePeriod" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}BillingReference" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}DocumentReference" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}ExchangeRate" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}AllowanceCharge" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}CollectedPayment" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "StatementLineType", propOrder = {
"id",
"note",
"uuid",
"balanceBroughtForwardIndicator",
"debitLineAmount",
"creditLineAmount",
"balanceAmount",
"paymentPurposeCode",
"paymentMeans",
"paymentTerms",
"buyerCustomerParty",
"sellerSupplierParty",
"originatorCustomerParty",
"accountingCustomerParty",
"accountingSupplierParty",
"payeeParty",
"invoicePeriod",
"billingReference",
"documentReference",
"exchangeRate",
"allowanceCharge",
"collectedPayment"
})
public class StatementLineType
implements Serializable, Equals, HashCode, ToString
{
private final static long serialVersionUID = 100L;
@XmlElement(name = "ID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true)
protected IDType id;
@XmlElement(name = "Note", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected List note;
@XmlElement(name = "UUID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected UUIDType uuid;
@XmlElement(name = "BalanceBroughtForwardIndicator", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected BalanceBroughtForwardIndicatorType balanceBroughtForwardIndicator;
@XmlElement(name = "DebitLineAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected DebitLineAmountType debitLineAmount;
@XmlElement(name = "CreditLineAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected CreditLineAmountType creditLineAmount;
@XmlElement(name = "BalanceAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected BalanceAmountType balanceAmount;
@XmlElement(name = "PaymentPurposeCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected PaymentPurposeCodeType paymentPurposeCode;
@XmlElement(name = "PaymentMeans")
protected PaymentMeansType paymentMeans;
@XmlElement(name = "PaymentTerms")
protected List paymentTerms;
@XmlElement(name = "BuyerCustomerParty")
protected CustomerPartyType buyerCustomerParty;
@XmlElement(name = "SellerSupplierParty")
protected SupplierPartyType sellerSupplierParty;
@XmlElement(name = "OriginatorCustomerParty")
protected CustomerPartyType originatorCustomerParty;
@XmlElement(name = "AccountingCustomerParty")
protected CustomerPartyType accountingCustomerParty;
@XmlElement(name = "AccountingSupplierParty")
protected SupplierPartyType accountingSupplierParty;
@XmlElement(name = "PayeeParty")
protected PartyType payeeParty;
@XmlElement(name = "InvoicePeriod")
protected List invoicePeriod;
@XmlElement(name = "BillingReference")
protected List billingReference;
@XmlElement(name = "DocumentReference")
protected List documentReference;
@XmlElement(name = "ExchangeRate")
protected ExchangeRateType exchangeRate;
@XmlElement(name = "AllowanceCharge")
protected List allowanceCharge;
@XmlElement(name = "CollectedPayment")
protected List collectedPayment;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link IDType }
*
*/
public IDType getID() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link IDType }
*
*/
public void setID(IDType value) {
this.id = value;
}
/**
* Gets the value of the note 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 note property.
*
*
* For example, to add a new item, do as follows:
*
* getNote().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link NoteType }
*
*
*/
public List getNote() {
if (note == null) {
note = new ArrayList();
}
return this.note;
}
/**
* Gets the value of the uuid property.
*
* @return
* possible object is
* {@link UUIDType }
*
*/
public UUIDType getUUID() {
return uuid;
}
/**
* Sets the value of the uuid property.
*
* @param value
* allowed object is
* {@link UUIDType }
*
*/
public void setUUID(UUIDType value) {
this.uuid = value;
}
/**
* Gets the value of the balanceBroughtForwardIndicator property.
*
* @return
* possible object is
* {@link BalanceBroughtForwardIndicatorType }
*
*/
public BalanceBroughtForwardIndicatorType getBalanceBroughtForwardIndicator() {
return balanceBroughtForwardIndicator;
}
/**
* Sets the value of the balanceBroughtForwardIndicator property.
*
* @param value
* allowed object is
* {@link BalanceBroughtForwardIndicatorType }
*
*/
public void setBalanceBroughtForwardIndicator(BalanceBroughtForwardIndicatorType value) {
this.balanceBroughtForwardIndicator = value;
}
/**
* Gets the value of the debitLineAmount property.
*
* @return
* possible object is
* {@link DebitLineAmountType }
*
*/
public DebitLineAmountType getDebitLineAmount() {
return debitLineAmount;
}
/**
* Sets the value of the debitLineAmount property.
*
* @param value
* allowed object is
* {@link DebitLineAmountType }
*
*/
public void setDebitLineAmount(DebitLineAmountType value) {
this.debitLineAmount = value;
}
/**
* Gets the value of the creditLineAmount property.
*
* @return
* possible object is
* {@link CreditLineAmountType }
*
*/
public CreditLineAmountType getCreditLineAmount() {
return creditLineAmount;
}
/**
* Sets the value of the creditLineAmount property.
*
* @param value
* allowed object is
* {@link CreditLineAmountType }
*
*/
public void setCreditLineAmount(CreditLineAmountType value) {
this.creditLineAmount = value;
}
/**
* Gets the value of the balanceAmount property.
*
* @return
* possible object is
* {@link BalanceAmountType }
*
*/
public BalanceAmountType getBalanceAmount() {
return balanceAmount;
}
/**
* Sets the value of the balanceAmount property.
*
* @param value
* allowed object is
* {@link BalanceAmountType }
*
*/
public void setBalanceAmount(BalanceAmountType value) {
this.balanceAmount = value;
}
/**
* Gets the value of the paymentPurposeCode property.
*
* @return
* possible object is
* {@link PaymentPurposeCodeType }
*
*/
public PaymentPurposeCodeType getPaymentPurposeCode() {
return paymentPurposeCode;
}
/**
* Sets the value of the paymentPurposeCode property.
*
* @param value
* allowed object is
* {@link PaymentPurposeCodeType }
*
*/
public void setPaymentPurposeCode(PaymentPurposeCodeType value) {
this.paymentPurposeCode = value;
}
/**
* Gets the value of the paymentMeans property.
*
* @return
* possible object is
* {@link PaymentMeansType }
*
*/
public PaymentMeansType getPaymentMeans() {
return paymentMeans;
}
/**
* Sets the value of the paymentMeans property.
*
* @param value
* allowed object is
* {@link PaymentMeansType }
*
*/
public void setPaymentMeans(PaymentMeansType value) {
this.paymentMeans = value;
}
/**
* Gets the value of the paymentTerms 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 paymentTerms property.
*
*
* For example, to add a new item, do as follows:
*
* getPaymentTerms().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PaymentTermsType }
*
*
*/
public List getPaymentTerms() {
if (paymentTerms == null) {
paymentTerms = new ArrayList();
}
return this.paymentTerms;
}
/**
* Gets the value of the buyerCustomerParty property.
*
* @return
* possible object is
* {@link CustomerPartyType }
*
*/
public CustomerPartyType getBuyerCustomerParty() {
return buyerCustomerParty;
}
/**
* Sets the value of the buyerCustomerParty property.
*
* @param value
* allowed object is
* {@link CustomerPartyType }
*
*/
public void setBuyerCustomerParty(CustomerPartyType value) {
this.buyerCustomerParty = value;
}
/**
* Gets the value of the sellerSupplierParty property.
*
* @return
* possible object is
* {@link SupplierPartyType }
*
*/
public SupplierPartyType getSellerSupplierParty() {
return sellerSupplierParty;
}
/**
* Sets the value of the sellerSupplierParty property.
*
* @param value
* allowed object is
* {@link SupplierPartyType }
*
*/
public void setSellerSupplierParty(SupplierPartyType value) {
this.sellerSupplierParty = value;
}
/**
* Gets the value of the originatorCustomerParty property.
*
* @return
* possible object is
* {@link CustomerPartyType }
*
*/
public CustomerPartyType getOriginatorCustomerParty() {
return originatorCustomerParty;
}
/**
* Sets the value of the originatorCustomerParty property.
*
* @param value
* allowed object is
* {@link CustomerPartyType }
*
*/
public void setOriginatorCustomerParty(CustomerPartyType value) {
this.originatorCustomerParty = value;
}
/**
* Gets the value of the accountingCustomerParty property.
*
* @return
* possible object is
* {@link CustomerPartyType }
*
*/
public CustomerPartyType getAccountingCustomerParty() {
return accountingCustomerParty;
}
/**
* Sets the value of the accountingCustomerParty property.
*
* @param value
* allowed object is
* {@link CustomerPartyType }
*
*/
public void setAccountingCustomerParty(CustomerPartyType value) {
this.accountingCustomerParty = value;
}
/**
* Gets the value of the accountingSupplierParty property.
*
* @return
* possible object is
* {@link SupplierPartyType }
*
*/
public SupplierPartyType getAccountingSupplierParty() {
return accountingSupplierParty;
}
/**
* Sets the value of the accountingSupplierParty property.
*
* @param value
* allowed object is
* {@link SupplierPartyType }
*
*/
public void setAccountingSupplierParty(SupplierPartyType value) {
this.accountingSupplierParty = value;
}
/**
* Gets the value of the payeeParty property.
*
* @return
* possible object is
* {@link PartyType }
*
*/
public PartyType getPayeeParty() {
return payeeParty;
}
/**
* Sets the value of the payeeParty property.
*
* @param value
* allowed object is
* {@link PartyType }
*
*/
public void setPayeeParty(PartyType value) {
this.payeeParty = value;
}
/**
* Gets the value of the invoicePeriod 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 invoicePeriod property.
*
*
* For example, to add a new item, do as follows:
*
* getInvoicePeriod().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PeriodType }
*
*
*/
public List getInvoicePeriod() {
if (invoicePeriod == null) {
invoicePeriod = new ArrayList();
}
return this.invoicePeriod;
}
/**
* Gets the value of the billingReference 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 billingReference property.
*
*
* For example, to add a new item, do as follows:
*
* getBillingReference().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link BillingReferenceType }
*
*
*/
public List getBillingReference() {
if (billingReference == null) {
billingReference = new ArrayList();
}
return this.billingReference;
}
/**
* Gets the value of the documentReference 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 documentReference property.
*
*
* For example, to add a new item, do as follows:
*
* getDocumentReference().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link DocumentReferenceType }
*
*
*/
public List getDocumentReference() {
if (documentReference == null) {
documentReference = new ArrayList();
}
return this.documentReference;
}
/**
* Gets the value of the exchangeRate property.
*
* @return
* possible object is
* {@link ExchangeRateType }
*
*/
public ExchangeRateType getExchangeRate() {
return exchangeRate;
}
/**
* Sets the value of the exchangeRate property.
*
* @param value
* allowed object is
* {@link ExchangeRateType }
*
*/
public void setExchangeRate(ExchangeRateType value) {
this.exchangeRate = value;
}
/**
* Gets the value of the allowanceCharge 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 allowanceCharge property.
*
*
* For example, to add a new item, do as follows:
*
* getAllowanceCharge().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AllowanceChargeType }
*
*
*/
public List getAllowanceCharge() {
if (allowanceCharge == null) {
allowanceCharge = new ArrayList();
}
return this.allowanceCharge;
}
/**
* Gets the value of the collectedPayment 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 collectedPayment property.
*
*
* For example, to add a new item, do as follows:
*
* getCollectedPayment().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PaymentType }
*
*
*/
public List getCollectedPayment() {
if (collectedPayment == null) {
collectedPayment = new ArrayList();
}
return this.collectedPayment;
}
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
{
IDType theID;
theID = this.getID();
strategy.appendField(locator, this, "id", buffer, theID);
}
{
List theNote;
theNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null);
strategy.appendField(locator, this, "note", buffer, theNote);
}
{
UUIDType theUUID;
theUUID = this.getUUID();
strategy.appendField(locator, this, "uuid", buffer, theUUID);
}
{
BalanceBroughtForwardIndicatorType theBalanceBroughtForwardIndicator;
theBalanceBroughtForwardIndicator = this.getBalanceBroughtForwardIndicator();
strategy.appendField(locator, this, "balanceBroughtForwardIndicator", buffer, theBalanceBroughtForwardIndicator);
}
{
DebitLineAmountType theDebitLineAmount;
theDebitLineAmount = this.getDebitLineAmount();
strategy.appendField(locator, this, "debitLineAmount", buffer, theDebitLineAmount);
}
{
CreditLineAmountType theCreditLineAmount;
theCreditLineAmount = this.getCreditLineAmount();
strategy.appendField(locator, this, "creditLineAmount", buffer, theCreditLineAmount);
}
{
BalanceAmountType theBalanceAmount;
theBalanceAmount = this.getBalanceAmount();
strategy.appendField(locator, this, "balanceAmount", buffer, theBalanceAmount);
}
{
PaymentPurposeCodeType thePaymentPurposeCode;
thePaymentPurposeCode = this.getPaymentPurposeCode();
strategy.appendField(locator, this, "paymentPurposeCode", buffer, thePaymentPurposeCode);
}
{
PaymentMeansType thePaymentMeans;
thePaymentMeans = this.getPaymentMeans();
strategy.appendField(locator, this, "paymentMeans", buffer, thePaymentMeans);
}
{
List thePaymentTerms;
thePaymentTerms = (((this.paymentTerms!= null)&&(!this.paymentTerms.isEmpty()))?this.getPaymentTerms():null);
strategy.appendField(locator, this, "paymentTerms", buffer, thePaymentTerms);
}
{
CustomerPartyType theBuyerCustomerParty;
theBuyerCustomerParty = this.getBuyerCustomerParty();
strategy.appendField(locator, this, "buyerCustomerParty", buffer, theBuyerCustomerParty);
}
{
SupplierPartyType theSellerSupplierParty;
theSellerSupplierParty = this.getSellerSupplierParty();
strategy.appendField(locator, this, "sellerSupplierParty", buffer, theSellerSupplierParty);
}
{
CustomerPartyType theOriginatorCustomerParty;
theOriginatorCustomerParty = this.getOriginatorCustomerParty();
strategy.appendField(locator, this, "originatorCustomerParty", buffer, theOriginatorCustomerParty);
}
{
CustomerPartyType theAccountingCustomerParty;
theAccountingCustomerParty = this.getAccountingCustomerParty();
strategy.appendField(locator, this, "accountingCustomerParty", buffer, theAccountingCustomerParty);
}
{
SupplierPartyType theAccountingSupplierParty;
theAccountingSupplierParty = this.getAccountingSupplierParty();
strategy.appendField(locator, this, "accountingSupplierParty", buffer, theAccountingSupplierParty);
}
{
PartyType thePayeeParty;
thePayeeParty = this.getPayeeParty();
strategy.appendField(locator, this, "payeeParty", buffer, thePayeeParty);
}
{
List theInvoicePeriod;
theInvoicePeriod = (((this.invoicePeriod!= null)&&(!this.invoicePeriod.isEmpty()))?this.getInvoicePeriod():null);
strategy.appendField(locator, this, "invoicePeriod", buffer, theInvoicePeriod);
}
{
List theBillingReference;
theBillingReference = (((this.billingReference!= null)&&(!this.billingReference.isEmpty()))?this.getBillingReference():null);
strategy.appendField(locator, this, "billingReference", buffer, theBillingReference);
}
{
List theDocumentReference;
theDocumentReference = (((this.documentReference!= null)&&(!this.documentReference.isEmpty()))?this.getDocumentReference():null);
strategy.appendField(locator, this, "documentReference", buffer, theDocumentReference);
}
{
ExchangeRateType theExchangeRate;
theExchangeRate = this.getExchangeRate();
strategy.appendField(locator, this, "exchangeRate", buffer, theExchangeRate);
}
{
List theAllowanceCharge;
theAllowanceCharge = (((this.allowanceCharge!= null)&&(!this.allowanceCharge.isEmpty()))?this.getAllowanceCharge():null);
strategy.appendField(locator, this, "allowanceCharge", buffer, theAllowanceCharge);
}
{
List theCollectedPayment;
theCollectedPayment = (((this.collectedPayment!= null)&&(!this.collectedPayment.isEmpty()))?this.getCollectedPayment():null);
strategy.appendField(locator, this, "collectedPayment", buffer, theCollectedPayment);
}
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof StatementLineType)) {
return false;
}
if (this == object) {
return true;
}
final StatementLineType that = ((StatementLineType) object);
{
IDType lhsID;
lhsID = this.getID();
IDType rhsID;
rhsID = that.getID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsID), LocatorUtils.property(thatLocator, "id", rhsID), lhsID, rhsID)) {
return false;
}
}
{
List lhsNote;
lhsNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null);
List rhsNote;
rhsNote = (((that.note!= null)&&(!that.note.isEmpty()))?that.getNote():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "note", lhsNote), LocatorUtils.property(thatLocator, "note", rhsNote), lhsNote, rhsNote)) {
return false;
}
}
{
UUIDType lhsUUID;
lhsUUID = this.getUUID();
UUIDType rhsUUID;
rhsUUID = that.getUUID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "uuid", lhsUUID), LocatorUtils.property(thatLocator, "uuid", rhsUUID), lhsUUID, rhsUUID)) {
return false;
}
}
{
BalanceBroughtForwardIndicatorType lhsBalanceBroughtForwardIndicator;
lhsBalanceBroughtForwardIndicator = this.getBalanceBroughtForwardIndicator();
BalanceBroughtForwardIndicatorType rhsBalanceBroughtForwardIndicator;
rhsBalanceBroughtForwardIndicator = that.getBalanceBroughtForwardIndicator();
if (!strategy.equals(LocatorUtils.property(thisLocator, "balanceBroughtForwardIndicator", lhsBalanceBroughtForwardIndicator), LocatorUtils.property(thatLocator, "balanceBroughtForwardIndicator", rhsBalanceBroughtForwardIndicator), lhsBalanceBroughtForwardIndicator, rhsBalanceBroughtForwardIndicator)) {
return false;
}
}
{
DebitLineAmountType lhsDebitLineAmount;
lhsDebitLineAmount = this.getDebitLineAmount();
DebitLineAmountType rhsDebitLineAmount;
rhsDebitLineAmount = that.getDebitLineAmount();
if (!strategy.equals(LocatorUtils.property(thisLocator, "debitLineAmount", lhsDebitLineAmount), LocatorUtils.property(thatLocator, "debitLineAmount", rhsDebitLineAmount), lhsDebitLineAmount, rhsDebitLineAmount)) {
return false;
}
}
{
CreditLineAmountType lhsCreditLineAmount;
lhsCreditLineAmount = this.getCreditLineAmount();
CreditLineAmountType rhsCreditLineAmount;
rhsCreditLineAmount = that.getCreditLineAmount();
if (!strategy.equals(LocatorUtils.property(thisLocator, "creditLineAmount", lhsCreditLineAmount), LocatorUtils.property(thatLocator, "creditLineAmount", rhsCreditLineAmount), lhsCreditLineAmount, rhsCreditLineAmount)) {
return false;
}
}
{
BalanceAmountType lhsBalanceAmount;
lhsBalanceAmount = this.getBalanceAmount();
BalanceAmountType rhsBalanceAmount;
rhsBalanceAmount = that.getBalanceAmount();
if (!strategy.equals(LocatorUtils.property(thisLocator, "balanceAmount", lhsBalanceAmount), LocatorUtils.property(thatLocator, "balanceAmount", rhsBalanceAmount), lhsBalanceAmount, rhsBalanceAmount)) {
return false;
}
}
{
PaymentPurposeCodeType lhsPaymentPurposeCode;
lhsPaymentPurposeCode = this.getPaymentPurposeCode();
PaymentPurposeCodeType rhsPaymentPurposeCode;
rhsPaymentPurposeCode = that.getPaymentPurposeCode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "paymentPurposeCode", lhsPaymentPurposeCode), LocatorUtils.property(thatLocator, "paymentPurposeCode", rhsPaymentPurposeCode), lhsPaymentPurposeCode, rhsPaymentPurposeCode)) {
return false;
}
}
{
PaymentMeansType lhsPaymentMeans;
lhsPaymentMeans = this.getPaymentMeans();
PaymentMeansType rhsPaymentMeans;
rhsPaymentMeans = that.getPaymentMeans();
if (!strategy.equals(LocatorUtils.property(thisLocator, "paymentMeans", lhsPaymentMeans), LocatorUtils.property(thatLocator, "paymentMeans", rhsPaymentMeans), lhsPaymentMeans, rhsPaymentMeans)) {
return false;
}
}
{
List lhsPaymentTerms;
lhsPaymentTerms = (((this.paymentTerms!= null)&&(!this.paymentTerms.isEmpty()))?this.getPaymentTerms():null);
List rhsPaymentTerms;
rhsPaymentTerms = (((that.paymentTerms!= null)&&(!that.paymentTerms.isEmpty()))?that.getPaymentTerms():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "paymentTerms", lhsPaymentTerms), LocatorUtils.property(thatLocator, "paymentTerms", rhsPaymentTerms), lhsPaymentTerms, rhsPaymentTerms)) {
return false;
}
}
{
CustomerPartyType lhsBuyerCustomerParty;
lhsBuyerCustomerParty = this.getBuyerCustomerParty();
CustomerPartyType rhsBuyerCustomerParty;
rhsBuyerCustomerParty = that.getBuyerCustomerParty();
if (!strategy.equals(LocatorUtils.property(thisLocator, "buyerCustomerParty", lhsBuyerCustomerParty), LocatorUtils.property(thatLocator, "buyerCustomerParty", rhsBuyerCustomerParty), lhsBuyerCustomerParty, rhsBuyerCustomerParty)) {
return false;
}
}
{
SupplierPartyType lhsSellerSupplierParty;
lhsSellerSupplierParty = this.getSellerSupplierParty();
SupplierPartyType rhsSellerSupplierParty;
rhsSellerSupplierParty = that.getSellerSupplierParty();
if (!strategy.equals(LocatorUtils.property(thisLocator, "sellerSupplierParty", lhsSellerSupplierParty), LocatorUtils.property(thatLocator, "sellerSupplierParty", rhsSellerSupplierParty), lhsSellerSupplierParty, rhsSellerSupplierParty)) {
return false;
}
}
{
CustomerPartyType lhsOriginatorCustomerParty;
lhsOriginatorCustomerParty = this.getOriginatorCustomerParty();
CustomerPartyType rhsOriginatorCustomerParty;
rhsOriginatorCustomerParty = that.getOriginatorCustomerParty();
if (!strategy.equals(LocatorUtils.property(thisLocator, "originatorCustomerParty", lhsOriginatorCustomerParty), LocatorUtils.property(thatLocator, "originatorCustomerParty", rhsOriginatorCustomerParty), lhsOriginatorCustomerParty, rhsOriginatorCustomerParty)) {
return false;
}
}
{
CustomerPartyType lhsAccountingCustomerParty;
lhsAccountingCustomerParty = this.getAccountingCustomerParty();
CustomerPartyType rhsAccountingCustomerParty;
rhsAccountingCustomerParty = that.getAccountingCustomerParty();
if (!strategy.equals(LocatorUtils.property(thisLocator, "accountingCustomerParty", lhsAccountingCustomerParty), LocatorUtils.property(thatLocator, "accountingCustomerParty", rhsAccountingCustomerParty), lhsAccountingCustomerParty, rhsAccountingCustomerParty)) {
return false;
}
}
{
SupplierPartyType lhsAccountingSupplierParty;
lhsAccountingSupplierParty = this.getAccountingSupplierParty();
SupplierPartyType rhsAccountingSupplierParty;
rhsAccountingSupplierParty = that.getAccountingSupplierParty();
if (!strategy.equals(LocatorUtils.property(thisLocator, "accountingSupplierParty", lhsAccountingSupplierParty), LocatorUtils.property(thatLocator, "accountingSupplierParty", rhsAccountingSupplierParty), lhsAccountingSupplierParty, rhsAccountingSupplierParty)) {
return false;
}
}
{
PartyType lhsPayeeParty;
lhsPayeeParty = this.getPayeeParty();
PartyType rhsPayeeParty;
rhsPayeeParty = that.getPayeeParty();
if (!strategy.equals(LocatorUtils.property(thisLocator, "payeeParty", lhsPayeeParty), LocatorUtils.property(thatLocator, "payeeParty", rhsPayeeParty), lhsPayeeParty, rhsPayeeParty)) {
return false;
}
}
{
List lhsInvoicePeriod;
lhsInvoicePeriod = (((this.invoicePeriod!= null)&&(!this.invoicePeriod.isEmpty()))?this.getInvoicePeriod():null);
List rhsInvoicePeriod;
rhsInvoicePeriod = (((that.invoicePeriod!= null)&&(!that.invoicePeriod.isEmpty()))?that.getInvoicePeriod():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "invoicePeriod", lhsInvoicePeriod), LocatorUtils.property(thatLocator, "invoicePeriod", rhsInvoicePeriod), lhsInvoicePeriod, rhsInvoicePeriod)) {
return false;
}
}
{
List lhsBillingReference;
lhsBillingReference = (((this.billingReference!= null)&&(!this.billingReference.isEmpty()))?this.getBillingReference():null);
List rhsBillingReference;
rhsBillingReference = (((that.billingReference!= null)&&(!that.billingReference.isEmpty()))?that.getBillingReference():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "billingReference", lhsBillingReference), LocatorUtils.property(thatLocator, "billingReference", rhsBillingReference), lhsBillingReference, rhsBillingReference)) {
return false;
}
}
{
List lhsDocumentReference;
lhsDocumentReference = (((this.documentReference!= null)&&(!this.documentReference.isEmpty()))?this.getDocumentReference():null);
List rhsDocumentReference;
rhsDocumentReference = (((that.documentReference!= null)&&(!that.documentReference.isEmpty()))?that.getDocumentReference():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "documentReference", lhsDocumentReference), LocatorUtils.property(thatLocator, "documentReference", rhsDocumentReference), lhsDocumentReference, rhsDocumentReference)) {
return false;
}
}
{
ExchangeRateType lhsExchangeRate;
lhsExchangeRate = this.getExchangeRate();
ExchangeRateType rhsExchangeRate;
rhsExchangeRate = that.getExchangeRate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "exchangeRate", lhsExchangeRate), LocatorUtils.property(thatLocator, "exchangeRate", rhsExchangeRate), lhsExchangeRate, rhsExchangeRate)) {
return false;
}
}
{
List lhsAllowanceCharge;
lhsAllowanceCharge = (((this.allowanceCharge!= null)&&(!this.allowanceCharge.isEmpty()))?this.getAllowanceCharge():null);
List rhsAllowanceCharge;
rhsAllowanceCharge = (((that.allowanceCharge!= null)&&(!that.allowanceCharge.isEmpty()))?that.getAllowanceCharge():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "allowanceCharge", lhsAllowanceCharge), LocatorUtils.property(thatLocator, "allowanceCharge", rhsAllowanceCharge), lhsAllowanceCharge, rhsAllowanceCharge)) {
return false;
}
}
{
List lhsCollectedPayment;
lhsCollectedPayment = (((this.collectedPayment!= null)&&(!this.collectedPayment.isEmpty()))?this.getCollectedPayment():null);
List rhsCollectedPayment;
rhsCollectedPayment = (((that.collectedPayment!= null)&&(!that.collectedPayment.isEmpty()))?that.getCollectedPayment():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "collectedPayment", lhsCollectedPayment), LocatorUtils.property(thatLocator, "collectedPayment", rhsCollectedPayment), lhsCollectedPayment, rhsCollectedPayment)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
IDType theID;
theID = this.getID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theID), currentHashCode, theID);
}
{
List theNote;
theNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "note", theNote), currentHashCode, theNote);
}
{
UUIDType theUUID;
theUUID = this.getUUID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "uuid", theUUID), currentHashCode, theUUID);
}
{
BalanceBroughtForwardIndicatorType theBalanceBroughtForwardIndicator;
theBalanceBroughtForwardIndicator = this.getBalanceBroughtForwardIndicator();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "balanceBroughtForwardIndicator", theBalanceBroughtForwardIndicator), currentHashCode, theBalanceBroughtForwardIndicator);
}
{
DebitLineAmountType theDebitLineAmount;
theDebitLineAmount = this.getDebitLineAmount();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "debitLineAmount", theDebitLineAmount), currentHashCode, theDebitLineAmount);
}
{
CreditLineAmountType theCreditLineAmount;
theCreditLineAmount = this.getCreditLineAmount();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "creditLineAmount", theCreditLineAmount), currentHashCode, theCreditLineAmount);
}
{
BalanceAmountType theBalanceAmount;
theBalanceAmount = this.getBalanceAmount();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "balanceAmount", theBalanceAmount), currentHashCode, theBalanceAmount);
}
{
PaymentPurposeCodeType thePaymentPurposeCode;
thePaymentPurposeCode = this.getPaymentPurposeCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "paymentPurposeCode", thePaymentPurposeCode), currentHashCode, thePaymentPurposeCode);
}
{
PaymentMeansType thePaymentMeans;
thePaymentMeans = this.getPaymentMeans();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "paymentMeans", thePaymentMeans), currentHashCode, thePaymentMeans);
}
{
List thePaymentTerms;
thePaymentTerms = (((this.paymentTerms!= null)&&(!this.paymentTerms.isEmpty()))?this.getPaymentTerms():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "paymentTerms", thePaymentTerms), currentHashCode, thePaymentTerms);
}
{
CustomerPartyType theBuyerCustomerParty;
theBuyerCustomerParty = this.getBuyerCustomerParty();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "buyerCustomerParty", theBuyerCustomerParty), currentHashCode, theBuyerCustomerParty);
}
{
SupplierPartyType theSellerSupplierParty;
theSellerSupplierParty = this.getSellerSupplierParty();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sellerSupplierParty", theSellerSupplierParty), currentHashCode, theSellerSupplierParty);
}
{
CustomerPartyType theOriginatorCustomerParty;
theOriginatorCustomerParty = this.getOriginatorCustomerParty();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "originatorCustomerParty", theOriginatorCustomerParty), currentHashCode, theOriginatorCustomerParty);
}
{
CustomerPartyType theAccountingCustomerParty;
theAccountingCustomerParty = this.getAccountingCustomerParty();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "accountingCustomerParty", theAccountingCustomerParty), currentHashCode, theAccountingCustomerParty);
}
{
SupplierPartyType theAccountingSupplierParty;
theAccountingSupplierParty = this.getAccountingSupplierParty();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "accountingSupplierParty", theAccountingSupplierParty), currentHashCode, theAccountingSupplierParty);
}
{
PartyType thePayeeParty;
thePayeeParty = this.getPayeeParty();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "payeeParty", thePayeeParty), currentHashCode, thePayeeParty);
}
{
List theInvoicePeriod;
theInvoicePeriod = (((this.invoicePeriod!= null)&&(!this.invoicePeriod.isEmpty()))?this.getInvoicePeriod():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "invoicePeriod", theInvoicePeriod), currentHashCode, theInvoicePeriod);
}
{
List theBillingReference;
theBillingReference = (((this.billingReference!= null)&&(!this.billingReference.isEmpty()))?this.getBillingReference():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "billingReference", theBillingReference), currentHashCode, theBillingReference);
}
{
List theDocumentReference;
theDocumentReference = (((this.documentReference!= null)&&(!this.documentReference.isEmpty()))?this.getDocumentReference():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "documentReference", theDocumentReference), currentHashCode, theDocumentReference);
}
{
ExchangeRateType theExchangeRate;
theExchangeRate = this.getExchangeRate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "exchangeRate", theExchangeRate), currentHashCode, theExchangeRate);
}
{
List theAllowanceCharge;
theAllowanceCharge = (((this.allowanceCharge!= null)&&(!this.allowanceCharge.isEmpty()))?this.getAllowanceCharge():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "allowanceCharge", theAllowanceCharge), currentHashCode, theAllowanceCharge);
}
{
List theCollectedPayment;
theCollectedPayment = (((this.collectedPayment!= null)&&(!this.collectedPayment.isEmpty()))?this.getCollectedPayment():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "collectedPayment", theCollectedPayment), currentHashCode, theCollectedPayment);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}