Class MoneyWiseUKTaxConfig
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.
-
Nested Class Summary
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
ConstructorsModifierConstructorDescriptionprotectedMoneyWiseUKTaxConfig(MoneyWiseUKTaxYear pTaxYear, io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxSource pTaxSource, OceanusDate pBirthday) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncloneIt()Clone a current copy of the tax configuration.formatObject(OceanusDataFormatter pFormatter) Obtain Object summary.Obtain the allowance.Obtain the client birthday.Obtain the capital allowance.Obtain the client age.Obtain the fieldSet.Obtain the dividend allowance.Obtain the gross preSavings income.Obtain the gross taxable income.io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxBandSet.MoneyWiseTaxBandObtain the low savings band.Obtain the rental allowance.Obtain the savings allowance.io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxBandSetObtain the tax bands.io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxSourceObtain the tax bases.Obtain the tax year.booleanDo we have an age related allowance?protected voidsetHasAgeRelatedAllowance(boolean pFlag) Set whether we have an age related allowance?
-
Constructor Details
-
MoneyWiseUKTaxConfig
protected MoneyWiseUKTaxConfig(MoneyWiseUKTaxYear pTaxYear, io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxSource pTaxSource, OceanusDate pBirthday) Constructor.- Parameters:
pTaxYear- the taxYearpTaxSource- the tax sourcepBirthday- the client birthday
-
-
Method Details
-
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
Obtain the gross preSavings income.- Returns:
- the gross preSavings
-
getGrossTaxable
Obtain the gross taxable income.- Returns:
- the gross taxable
-
getBirthday
Obtain the client birthday.- Returns:
- the birthday
-
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
Obtain the allowance.- Returns:
- the allowance
-
getRentalAllowance
Obtain the rental allowance.- Returns:
- the rental allowance
-
getSavingsAllowance
Obtain the savings allowance.- Returns:
- the allowance
-
getDividendAllowance
Obtain the dividend allowance.- Returns:
- the allowance
-
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
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
-
cloneIt
Description copied from interface:io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxConfigClone a current copy of the tax configuration.- Specified by:
cloneItin interfaceio.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxConfig- Returns:
- the cloned copy
-