Class MoneyWiseUKTaxAnalysis
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTaxPreferenceKeys.static classTaxation Preferences.Nested classes/interfaces inherited from interface io.github.tonywasher.joceanus.metis.field.MetisFieldItem
MetisFieldItem.MetisFieldDef, MetisFieldItem.MetisFieldItemType, MetisFieldItem.MetisFieldSetDef, MetisFieldItem.MetisFieldTableItem, MetisFieldItem.MetisFieldUpdatableItem, MetisFieldItem.MetisFieldVersionedDef -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMoneyWiseUKTaxAnalysis(io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxSource pTaxSource, MetisPreferenceManager pPrefMgr, MoneyWiseUKTaxYear pTaxYear) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCalculate the taxDue.protected voidCalculate the taxProfit.formatObject(OceanusDataFormatter pFormatter) Obtain Object summary.Obtain the fieldSet.Obtain the taxableIncome.Obtain the taxConfig.Obtain the taxDue.Obtain the taxPaid.Obtain the taxProfit.Obtain the taxYear.protected voidprocessItem(io.github.tonywasher.joceanus.moneywise.data.statics.MoneyWiseTaxClass pBasis, MoneyWiseUKIncomeScheme pScheme) Process the item.Iterator<io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxDueBucket> Obtain the taxBands iterator.
-
Constructor Details
-
MoneyWiseUKTaxAnalysis
protected MoneyWiseUKTaxAnalysis(io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxSource pTaxSource, MetisPreferenceManager pPrefMgr, MoneyWiseUKTaxYear pTaxYear) Constructor.- Parameters:
pTaxSource- the taxSourcepPrefMgr- the preference managerpTaxYear- the tax year
-
-
Method Details
-
getTaxYear
Description copied from interface:io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysisObtain the taxYear.- Specified by:
getTaxYearin interfaceio.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysis- Returns:
- the taxYear
-
getTaxConfig
Obtain the taxConfig.- Returns:
- the taxConfig
-
taxDueIterator
Description copied from interface:io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysisObtain the taxBands iterator.- Specified by:
taxDueIteratorin interfaceio.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysis- Returns:
- the iterator
-
getTaxableIncome
Description copied from interface:io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysisObtain the taxableIncome.- Specified by:
getTaxableIncomein interfaceio.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysis- Returns:
- the taxableIncome
-
getTaxDue
Description copied from interface:io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysisObtain the taxDue.- Specified by:
getTaxDuein interfaceio.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysis- Returns:
- the taxDue
-
getTaxPaid
Description copied from interface:io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysisObtain the taxPaid.- Specified by:
getTaxPaidin interfaceio.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysis- Returns:
- the taxPaid
-
getTaxProfit
Description copied from interface:io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxAnalysisObtain the taxProfit.- Specified by:
getTaxProfitin interfaceio.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 basispScheme- the income scheme
-
getDataFieldSet
Description copied from interface:MetisFieldItemObtain the fieldSet.- Specified by:
getDataFieldSetin interfaceMetisFieldItem- Returns:
- the fieldSet
-
formatObject
Description copied from interface:MetisDataItem.MetisDataObjectFormatObtain Object summary.- Specified by:
formatObjectin interfaceMetisDataItem.MetisDataObjectFormat- Parameters:
pFormatter- the data formatter- Returns:
- the display summary of the object
-