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

public class MoneyWiseUKTaxAnalysis extends Object implements MetisFieldItem, io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysis
UK Tax Analysis.
  • Constructor Details

    • MoneyWiseUKTaxAnalysis

      protected MoneyWiseUKTaxAnalysis(io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxSource pTaxSource, MetisPreferenceManager pPrefMgr, MoneyWiseUKTaxYear pTaxYear)
      Constructor.
      Parameters:
      pTaxSource - the taxSource
      pPrefMgr - the preference manager
      pTaxYear - the tax year
  • Method Details

    • getTaxYear

      public MoneyWiseUKTaxYear getTaxYear()
      Description copied from interface: io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysis
      Obtain the taxYear.
      Specified by:
      getTaxYear in interface io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysis
      Returns:
      the taxYear
    • getTaxConfig

      public MoneyWiseUKTaxConfig getTaxConfig()
      Obtain the taxConfig.
      Returns:
      the taxConfig
    • taxDueIterator

      public Iterator<io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxDueBucket> taxDueIterator()
      Description copied from interface: io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysis
      Obtain the taxBands iterator.
      Specified by:
      taxDueIterator in interface io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysis
      Returns:
      the iterator
    • getTaxableIncome

      public OceanusMoney getTaxableIncome()
      Description copied from interface: io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysis
      Obtain the taxableIncome.
      Specified by:
      getTaxableIncome in interface io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysis
      Returns:
      the taxableIncome
    • getTaxDue

      public OceanusMoney getTaxDue()
      Description copied from interface: io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysis
      Obtain the taxDue.
      Specified by:
      getTaxDue in interface io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysis
      Returns:
      the taxDue
    • getTaxPaid

      public OceanusMoney getTaxPaid()
      Description copied from interface: io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysis
      Obtain the taxPaid.
      Specified by:
      getTaxPaid in interface io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysis
      Returns:
      the taxPaid
    • getTaxProfit

      public OceanusMoney getTaxProfit()
      Description copied from interface: io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysis
      Obtain the taxProfit.
      Specified by:
      getTaxProfit in interface io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysis
      Returns:
      the taxProfit
    • calculateTaxDue

      protected void calculateTaxDue()
      Calculate the taxDue.
    • calculateTaxProfit

      protected void calculateTaxProfit()
      Calculate the taxProfit.
    • processItem

      protected void processItem(io.github.tonywasher.joceanus.moneywise.data.statics.MoneyWiseTaxClass pBasis, MoneyWiseUKIncomeScheme pScheme)
      Process the item.
      Parameters:
      pBasis - the tax basis
      pScheme - the income scheme
    • getDataFieldSet

      public MetisFieldSet<MoneyWiseUKTaxAnalysis> 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