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,MoneyWiseUKTax.MoneyWiseUKTaxConfigCtl
public class MoneyWiseUKTaxConfig
extends Object
implements MetisFieldItem, MoneyWiseUKTax.MoneyWiseUKTaxConfigCtl
Tax configuration.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.tonywasher.joceanus.metis.field.MetisFieldItem
MetisFieldItem.MetisFieldDef, MetisFieldItem.MetisFieldItemType, MetisFieldItem.MetisFieldSetCtl<T extends MetisFieldItem>, MetisFieldItem.MetisFieldSetDef, MetisFieldItem.MetisFieldTableItem, MetisFieldItem.MetisFieldVersionedDef -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMoneyWiseUKTaxConfig(MoneyWiseUKTax.MoneyWiseUKTaxYearCtl 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?voidsetHasAgeRelatedAllowance(boolean pFlag) Set whether we have an age related allowance?
-
Constructor Details
-
MoneyWiseUKTaxConfig
protected MoneyWiseUKTaxConfig(MoneyWiseUKTax.MoneyWiseUKTaxYearCtl 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
Description copied from interface:MoneyWiseUKTax.MoneyWiseUKTaxConfigCtlObtain the tax year.- Specified by:
getTaxYearin interfaceMoneyWiseUKTax.MoneyWiseUKTaxConfigCtl- Returns:
- the tax year
-
getTaxSource
public io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxSource getTaxSource()Obtain the tax bases.- Returns:
- the bases
-
getGrossPreSavings
Description copied from interface:MoneyWiseUKTax.MoneyWiseUKTaxConfigCtlObtain the gross preSavings income.- Specified by:
getGrossPreSavingsin interfaceMoneyWiseUKTax.MoneyWiseUKTaxConfigCtl- Returns:
- the gross preSavings
-
getGrossTaxable
Description copied from interface:MoneyWiseUKTax.MoneyWiseUKTaxConfigCtlObtain the gross taxable income.- Specified by:
getGrossTaxablein interfaceMoneyWiseUKTax.MoneyWiseUKTaxConfigCtl- Returns:
- the gross taxable
-
getBirthday
Description copied from interface:MoneyWiseUKTax.MoneyWiseUKTaxConfigCtlObtain the client birthday.- Specified by:
getBirthdayin interfaceMoneyWiseUKTax.MoneyWiseUKTaxConfigCtl- Returns:
- the birthday
-
getClientAge
Description copied from interface:MoneyWiseUKTax.MoneyWiseUKTaxConfigCtlObtain the client age.- Specified by:
getClientAgein interfaceMoneyWiseUKTax.MoneyWiseUKTaxConfigCtl- Returns:
- the gross taxable
-
hasAgeRelatedAllowance
public boolean hasAgeRelatedAllowance()Do we have an age related allowance?- Returns:
- true/false
-
setHasAgeRelatedAllowance
public void setHasAgeRelatedAllowance(boolean pFlag) Description copied from interface:MoneyWiseUKTax.MoneyWiseUKTaxConfigCtlSet whether we have an age related allowance?- Specified by:
setHasAgeRelatedAllowancein interfaceMoneyWiseUKTax.MoneyWiseUKTaxConfigCtl- Parameters:
pFlag- true/false
-
getAllowance
Description copied from interface:MoneyWiseUKTax.MoneyWiseUKTaxConfigCtlObtain the allowance.- Specified by:
getAllowancein interfaceMoneyWiseUKTax.MoneyWiseUKTaxConfigCtl- 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
-