java.lang.Object
io.github.tonywasher.joceanus.moneywise.tax.uk.MoneyWiseUKTaxConfig
All Implemented Interfaces:
MetisDataItem.MetisDataObjectFormat, MetisFieldItem, io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxConfig

public class MoneyWiseUKTaxConfig extends Object implements MetisFieldItem, io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxConfig
Tax configuration.
  • Constructor Details

    • MoneyWiseUKTaxConfig

      protected MoneyWiseUKTaxConfig(MoneyWiseUKTaxYear pTaxYear, io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxSource pTaxSource, OceanusDate pBirthday)
      Constructor.
      Parameters:
      pTaxYear - the taxYear
      pTaxSource - the tax source
      pBirthday - the client birthday
  • Method Details

    • getTaxYear

      public MoneyWiseUKTaxYear getTaxYear()
      Obtain the tax year.
      Returns:
      the tax year
    • getTaxSource

      public io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxSource getTaxSource()
      Obtain the tax bases.
      Returns:
      the bases
    • getGrossPreSavings

      public OceanusMoney getGrossPreSavings()
      Obtain the gross preSavings income.
      Returns:
      the gross preSavings
    • getGrossTaxable

      public OceanusMoney getGrossTaxable()
      Obtain the gross taxable income.
      Returns:
      the gross taxable
    • getBirthday

      public OceanusDate getBirthday()
      Obtain the client birthday.
      Returns:
      the birthday
    • getClientAge

      public Integer getClientAge()
      Obtain the client age.
      Returns:
      the gross taxable
    • hasAgeRelatedAllowance

      public boolean hasAgeRelatedAllowance()
      Do we have an age related allowance?
      Returns:
      true/false
    • setHasAgeRelatedAllowance

      protected void setHasAgeRelatedAllowance(boolean pFlag)
      Set whether we have an age related allowance?
      Parameters:
      pFlag - true/false
    • getAllowance

      public OceanusMoney getAllowance()
      Obtain the allowance.
      Returns:
      the allowance
    • getRentalAllowance

      public OceanusMoney getRentalAllowance()
      Obtain the rental allowance.
      Returns:
      the rental allowance
    • getSavingsAllowance

      public OceanusMoney getSavingsAllowance()
      Obtain the savings allowance.
      Returns:
      the allowance
    • getDividendAllowance

      public OceanusMoney getDividendAllowance()
      Obtain the dividend allowance.
      Returns:
      the allowance
    • getCapitalAllowance

      public OceanusMoney getCapitalAllowance()
      Obtain the capital allowance.
      Returns:
      the allowance
    • getTaxBands

      public io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxBandSet getTaxBands()
      Obtain the tax bands.
      Returns:
      the tax bands
    • getLoSavingsBand

      public io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxBandSet.MoneyWiseTaxBand getLoSavingsBand()
      Obtain the low savings band.
      Returns:
      the low savings band
    • getDataFieldSet

      public MetisFieldSet<MoneyWiseUKTaxConfig> getDataFieldSet()
      Description copied from interface: MetisFieldItem
      Obtain the fieldSet.
      Specified by:
      getDataFieldSet in interface MetisFieldItem
      Returns:
      the fieldSet
    • formatObject

      public String formatObject(OceanusDataFormatter pFormatter)
      Description copied from interface: MetisDataItem.MetisDataObjectFormat
      Obtain Object summary.
      Specified by:
      formatObject in interface MetisDataItem.MetisDataObjectFormat
      Parameters:
      pFormatter - the data formatter
      Returns:
      the display summary of the object
    • cloneIt

      public MoneyWiseUKTaxConfig cloneIt()
      Description copied from interface: io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxConfig
      Clone a current copy of the tax configuration.
      Specified by:
      cloneIt in interface io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxConfig
      Returns:
      the cloned copy