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

oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.TaxSubtotalType Maven / Gradle / Ivy


package oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
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 com.phloc.commons.equals.EqualsUtils;
import com.phloc.commons.hash.HashCodeGenerator;
import com.phloc.commons.string.ToStringGenerator;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.BaseUnitMeasureType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.CalculationSequenceNumericType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PerUnitAmountType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PercentType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TaxAmountType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TaxableAmountType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TierRangeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TierRatePercentType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TransactionCurrencyTaxAmountType;


/**
 * 
 * 
 * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ABIE</ccts:ComponentType><ccts:DictionaryEntryName>Tax Subtotal. Details</ccts:DictionaryEntryName><ccts:Definition>Information about the subtotal for a particular tax category within a tax scheme, such as standard rate within VAT.</ccts:Definition><ccts:ObjectClass>Tax Subtotal</ccts:ObjectClass></ccts:Component>
 * 
* * *

Java class for TaxSubtotalType complex type. * *

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

 * <complexType name="TaxSubtotalType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TaxableAmount" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TaxAmount"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}CalculationSequenceNumeric" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TransactionCurrencyTaxAmount" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Percent" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}BaseUnitMeasure" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PerUnitAmount" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TierRange" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TierRatePercent" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}TaxCategory"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TaxSubtotalType", propOrder = { "taxableAmount", "taxAmount", "calculationSequenceNumeric", "transactionCurrencyTaxAmount", "percent", "baseUnitMeasure", "perUnitAmount", "tierRange", "tierRatePercent", "taxCategory" }) public class TaxSubtotalType implements Serializable { @XmlElement(name = "TaxableAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private TaxableAmountType taxableAmount; @XmlElement(name = "TaxAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true) private TaxAmountType taxAmount; @XmlElement(name = "CalculationSequenceNumeric", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private CalculationSequenceNumericType calculationSequenceNumeric; @XmlElement(name = "TransactionCurrencyTaxAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private TransactionCurrencyTaxAmountType transactionCurrencyTaxAmount; @XmlElement(name = "Percent", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private PercentType percent; @XmlElement(name = "BaseUnitMeasure", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private BaseUnitMeasureType baseUnitMeasure; @XmlElement(name = "PerUnitAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private PerUnitAmountType perUnitAmount; @XmlElement(name = "TierRange", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private TierRangeType tierRange; @XmlElement(name = "TierRatePercent", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private TierRatePercentType tierRatePercent; @XmlElement(name = "TaxCategory", required = true) private TaxCategoryType taxCategory; /** * Default constructor * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * */ public TaxSubtotalType() { } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Tax Subtotal. Taxable_ Amount. Amount</ccts:DictionaryEntryName><ccts:Definition>The net amount to which the tax percent (rate) is applied to calculate the tax amount.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Tax Subtotal</ccts:ObjectClass><ccts:PropertyTermQualifier>Taxable</ccts:PropertyTermQualifier><ccts:PropertyTerm>Amount</ccts:PropertyTerm><ccts:RepresentationTerm>Amount</ccts:RepresentationTerm><ccts:DataType>Amount. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link TaxableAmountType } * */ @Nullable public TaxableAmountType getTaxableAmount() { return taxableAmount; } /** * Sets the value of the taxableAmount property. * * @param value * allowed object is * {@link TaxableAmountType } * */ public void setTaxableAmount( @Nullable TaxableAmountType value) { this.taxableAmount = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Tax Subtotal. Tax Amount. Amount</ccts:DictionaryEntryName><ccts:Definition>The amount of tax stated explicitly.</ccts:Definition><ccts:Cardinality>1</ccts:Cardinality><ccts:ObjectClass>Tax Subtotal</ccts:ObjectClass><ccts:PropertyTerm>Tax Amount</ccts:PropertyTerm><ccts:RepresentationTerm>Amount</ccts:RepresentationTerm><ccts:DataType>Amount. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link TaxAmountType } * */ @Nullable public TaxAmountType getTaxAmount() { return taxAmount; } /** * Sets the value of the taxAmount property. * * @param value * allowed object is * {@link TaxAmountType } * */ public void setTaxAmount( @Nullable TaxAmountType value) { this.taxAmount = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Tax Subtotal. Calculation Sequence. Numeric</ccts:DictionaryEntryName><ccts:Definition>Identifies the numerical order sequence in which taxes are applied when multiple taxes are attracted. If all taxes apply to the same taxable amount, CalculationSequenceNumeric will be '1' for all taxes.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Tax Subtotal</ccts:ObjectClass><ccts:PropertyTerm>Calculation Sequence</ccts:PropertyTerm><ccts:RepresentationTerm>Numeric</ccts:RepresentationTerm><ccts:DataType>Numeric. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link CalculationSequenceNumericType } * */ @Nullable public CalculationSequenceNumericType getCalculationSequenceNumeric() { return calculationSequenceNumeric; } /** * Sets the value of the calculationSequenceNumeric property. * * @param value * allowed object is * {@link CalculationSequenceNumericType } * */ public void setCalculationSequenceNumeric( @Nullable CalculationSequenceNumericType value) { this.calculationSequenceNumeric = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Tax Subtotal. Transaction Currency_ Tax Amount. Amount</ccts:DictionaryEntryName><ccts:Definition>The tax amount, expressed in the currency used for invoicing.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Tax Subtotal</ccts:ObjectClass><ccts:PropertyTermQualifier>Transaction Currency</ccts:PropertyTermQualifier><ccts:PropertyTerm>Tax Amount</ccts:PropertyTerm><ccts:RepresentationTerm>Amount</ccts:RepresentationTerm><ccts:DataType>Amount. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link TransactionCurrencyTaxAmountType } * */ @Nullable public TransactionCurrencyTaxAmountType getTransactionCurrencyTaxAmount() { return transactionCurrencyTaxAmount; } /** * Sets the value of the transactionCurrencyTaxAmount property. * * @param value * allowed object is * {@link TransactionCurrencyTaxAmountType } * */ public void setTransactionCurrencyTaxAmount( @Nullable TransactionCurrencyTaxAmountType value) { this.transactionCurrencyTaxAmount = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Tax Subtotal. Percent</ccts:DictionaryEntryName><ccts:Definition>The tax rate for the category, expressed as a percentage.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Tax Subtotal</ccts:ObjectClass><ccts:PropertyTerm>Percent</ccts:PropertyTerm><ccts:RepresentationTerm>Percent</ccts:RepresentationTerm><ccts:DataType>Percent. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link PercentType } * */ @Nullable public PercentType getPercent() { return percent; } /** * Sets the value of the percent property. * * @param value * allowed object is * {@link PercentType } * */ public void setPercent( @Nullable PercentType value) { this.percent = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Tax Subtotal. Base Unit Measure. Measure</ccts:DictionaryEntryName><ccts:Definition>Where a tax is applied at a certain rate per unit, the measure of units on which the tax calculation is based.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Tax Subtotal</ccts:ObjectClass><ccts:PropertyTerm>Base Unit Measure</ccts:PropertyTerm><ccts:RepresentationTerm>Measure</ccts:RepresentationTerm><ccts:DataType>Measure. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link BaseUnitMeasureType } * */ @Nullable public BaseUnitMeasureType getBaseUnitMeasure() { return baseUnitMeasure; } /** * Sets the value of the baseUnitMeasure property. * * @param value * allowed object is * {@link BaseUnitMeasureType } * */ public void setBaseUnitMeasure( @Nullable BaseUnitMeasureType value) { this.baseUnitMeasure = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Tax Subtotal. Per Unit_ Amount. Amount</ccts:DictionaryEntryName><ccts:Definition>Where a tax is applied at a certain rate per unit, the rate per unit applied.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Tax Subtotal</ccts:ObjectClass><ccts:PropertyTermQualifier>Per Unit</ccts:PropertyTermQualifier><ccts:PropertyTerm>Amount</ccts:PropertyTerm><ccts:RepresentationTerm>Amount</ccts:RepresentationTerm><ccts:DataType>Amount. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link PerUnitAmountType } * */ @Nullable public PerUnitAmountType getPerUnitAmount() { return perUnitAmount; } /** * Sets the value of the perUnitAmount property. * * @param value * allowed object is * {@link PerUnitAmountType } * */ public void setPerUnitAmount( @Nullable PerUnitAmountType value) { this.perUnitAmount = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Tax Subtotal. Tier Range. Text</ccts:DictionaryEntryName><ccts:Definition>Where a tax is tiered, the range of tiers applied in the calculation of the tax subtotal for the tax category.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Tax Subtotal</ccts:ObjectClass><ccts:PropertyTerm>Tier Range</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link TierRangeType } * */ @Nullable public TierRangeType getTierRange() { return tierRange; } /** * Sets the value of the tierRange property. * * @param value * allowed object is * {@link TierRangeType } * */ public void setTierRange( @Nullable TierRangeType value) { this.tierRange = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Tax Subtotal. Tier Rate. Percent</ccts:DictionaryEntryName><ccts:Definition>Where a tax is tiered, the rate of tax applied to the range of tiers in the calculation of the tax subtotal for the tax category.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Tax Subtotal</ccts:ObjectClass><ccts:PropertyTerm>Tier Rate</ccts:PropertyTerm><ccts:RepresentationTerm>Percent</ccts:RepresentationTerm><ccts:DataType>Percent. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link TierRatePercentType } * */ @Nullable public TierRatePercentType getTierRatePercent() { return tierRatePercent; } /** * Sets the value of the tierRatePercent property. * * @param value * allowed object is * {@link TierRatePercentType } * */ public void setTierRatePercent( @Nullable TierRatePercentType value) { this.tierRatePercent = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Tax Subtotal. Tax Category</ccts:DictionaryEntryName><ccts:Definition>An association to Tax Category.</ccts:Definition><ccts:Cardinality>1</ccts:Cardinality><ccts:ObjectClass>Tax Subtotal</ccts:ObjectClass><ccts:PropertyTerm>Tax Category</ccts:PropertyTerm><ccts:AssociatedObjectClass>Tax Category</ccts:AssociatedObjectClass></ccts:Component>
     * 
* * * @return * possible object is * {@link TaxCategoryType } * */ @Nullable public TaxCategoryType getTaxCategory() { return taxCategory; } /** * Sets the value of the taxCategory property. * * @param value * allowed object is * {@link TaxCategoryType } * */ public void setTaxCategory( @Nullable TaxCategoryType value) { this.taxCategory = value; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public boolean equals(final Object o) { if (o == this) { return true; } if ((o == null)||(!getClass().equals(o.getClass()))) { return false; } final TaxSubtotalType rhs = ((TaxSubtotalType) o); if (!EqualsUtils.equals(taxableAmount, rhs.taxableAmount)) { return false; } if (!EqualsUtils.equals(taxAmount, rhs.taxAmount)) { return false; } if (!EqualsUtils.equals(calculationSequenceNumeric, rhs.calculationSequenceNumeric)) { return false; } if (!EqualsUtils.equals(transactionCurrencyTaxAmount, rhs.transactionCurrencyTaxAmount)) { return false; } if (!EqualsUtils.equals(percent, rhs.percent)) { return false; } if (!EqualsUtils.equals(baseUnitMeasure, rhs.baseUnitMeasure)) { return false; } if (!EqualsUtils.equals(perUnitAmount, rhs.perUnitAmount)) { return false; } if (!EqualsUtils.equals(tierRange, rhs.tierRange)) { return false; } if (!EqualsUtils.equals(tierRatePercent, rhs.tierRatePercent)) { return false; } if (!EqualsUtils.equals(taxCategory, rhs.taxCategory)) { return false; } return true; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(taxableAmount).append(taxAmount).append(calculationSequenceNumeric).append(transactionCurrencyTaxAmount).append(percent).append(baseUnitMeasure).append(perUnitAmount).append(tierRange).append(tierRatePercent).append(taxCategory).getHashCode(); } /** * Created by phloc-jaxb22-plugin -Xphloc-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("taxableAmount", taxableAmount).append("taxAmount", taxAmount).append("calculationSequenceNumeric", calculationSequenceNumeric).append("transactionCurrencyTaxAmount", transactionCurrencyTaxAmount).append("percent", percent).append("baseUnitMeasure", baseUnitMeasure).append("perUnitAmount", perUnitAmount).append("tierRange", tierRange).append("tierRatePercent", tierRatePercent).append("taxCategory", taxCategory).toString(); } /** * Special setter with value of type BigDecimal * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type PercentType and never null */ @Nonnull public PercentType setPercent( @Nullable final BigDecimal valueParam) { PercentType aObj = getPercent(); if (aObj == null) { aObj = new PercentType(valueParam); setPercent(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type BigDecimal * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type CalculationSequenceNumericType and never null */ @Nonnull public CalculationSequenceNumericType setCalculationSequenceNumeric( @Nullable final BigDecimal valueParam) { CalculationSequenceNumericType aObj = getCalculationSequenceNumeric(); if (aObj == null) { aObj = new CalculationSequenceNumericType(valueParam); setCalculationSequenceNumeric(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type BigDecimal * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type TierRatePercentType and never null */ @Nonnull public TierRatePercentType setTierRatePercent( @Nullable final BigDecimal valueParam) { TierRatePercentType aObj = getTierRatePercent(); if (aObj == null) { aObj = new TierRatePercentType(valueParam); setTierRatePercent(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type String * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type TierRangeType and never null */ @Nonnull public TierRangeType setTierRange( @Nullable final String valueParam) { TierRangeType aObj = getTierRange(); if (aObj == null) { aObj = new TierRangeType(valueParam); setTierRange(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type BigDecimal * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type TaxableAmountType and never null */ @Nonnull public TaxableAmountType setTaxableAmount( @Nullable final BigDecimal valueParam) { TaxableAmountType aObj = getTaxableAmount(); if (aObj == null) { aObj = new TaxableAmountType(valueParam); setTaxableAmount(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type BigDecimal * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type TaxAmountType and never null */ @Nonnull public TaxAmountType setTaxAmount( @Nullable final BigDecimal valueParam) { TaxAmountType aObj = getTaxAmount(); if (aObj == null) { aObj = new TaxAmountType(valueParam); setTaxAmount(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type BigDecimal * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type TransactionCurrencyTaxAmountType and never null */ @Nonnull public TransactionCurrencyTaxAmountType setTransactionCurrencyTaxAmount( @Nullable final BigDecimal valueParam) { TransactionCurrencyTaxAmountType aObj = getTransactionCurrencyTaxAmount(); if (aObj == null) { aObj = new TransactionCurrencyTaxAmountType(valueParam); setTransactionCurrencyTaxAmount(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type BigDecimal * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type PerUnitAmountType and never null */ @Nonnull public PerUnitAmountType setPerUnitAmount( @Nullable final BigDecimal valueParam) { PerUnitAmountType aObj = getPerUnitAmount(); if (aObj == null) { aObj = new PerUnitAmountType(valueParam); setPerUnitAmount(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type BigDecimal * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type BaseUnitMeasureType and never null */ @Nonnull public BaseUnitMeasureType setBaseUnitMeasure( @Nullable final BigDecimal valueParam) { BaseUnitMeasureType aObj = getBaseUnitMeasure(); if (aObj == null) { aObj = new BaseUnitMeasureType(valueParam); setBaseUnitMeasure(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Get the value of the contained TaxableAmountType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained TaxableAmountType object or null */ @Nullable public BigDecimal getTaxableAmountValue() { TaxableAmountType aObj = getTaxableAmount(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained TaxAmountType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained TaxAmountType object or null */ @Nullable public BigDecimal getTaxAmountValue() { TaxAmountType aObj = getTaxAmount(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained CalculationSequenceNumericType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained CalculationSequenceNumericType object or null */ @Nullable public BigDecimal getCalculationSequenceNumericValue() { CalculationSequenceNumericType aObj = getCalculationSequenceNumeric(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained TransactionCurrencyTaxAmountType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained TransactionCurrencyTaxAmountType object or null */ @Nullable public BigDecimal getTransactionCurrencyTaxAmountValue() { TransactionCurrencyTaxAmountType aObj = getTransactionCurrencyTaxAmount(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained PercentType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained PercentType object or null */ @Nullable public BigDecimal getPercentValue() { PercentType aObj = getPercent(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained BaseUnitMeasureType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained BaseUnitMeasureType object or null */ @Nullable public BigDecimal getBaseUnitMeasureValue() { BaseUnitMeasureType aObj = getBaseUnitMeasure(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained PerUnitAmountType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained PerUnitAmountType object or null */ @Nullable public BigDecimal getPerUnitAmountValue() { PerUnitAmountType aObj = getPerUnitAmount(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained TierRangeType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained TierRangeType object or null */ @Nullable public String getTierRangeValue() { TierRangeType aObj = getTierRange(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained TierRatePercentType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained TierRatePercentType object or null */ @Nullable public BigDecimal getTierRatePercentValue() { TierRatePercentType aObj = getTierRatePercent(); return ((aObj == null)?null:aObj.getValue()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy