Package org.notima.util
Class TaxIdStructure
java.lang.Object
org.notima.util.TaxIdStructure
Represents a tax id separated in parts.
- Author:
- Daniel Tamm
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether the tax id could be a valid date.printTaxId(String dstFormat) voidsetLeftmiddle(String leftmiddle) voidvoidsetRightmiddle(String rightmiddle) voidvoidsetTaxIdFormat(String taxIdFormat)
-
Field Details
-
FMT_UNKNOWN
-
FMT_SE14
-
FMT_SE12
-
FMT_SE11
-
FMT_SE10
-
prefix
-
leftmiddle
-
rightmiddle
-
suffix
-
taxIdFormat
-
-
Constructor Details
-
TaxIdStructure
-
-
Method Details
-
getPrefix
-
setPrefix
-
getLeftmiddle
-
setLeftmiddle
-
getRightmiddle
-
setRightmiddle
-
getSuffix
-
setSuffix
-
getTaxIdFormat
-
setTaxIdFormat
-
isValidDateSE
public boolean isValidDateSE()Checks whether the tax id could be a valid date. Applies only on Swedish tax ids.- Returns:
- If the tax id (for physical persons) is a valid date.
-
printTaxId
- Parameters:
dstFormat- The format use to print the tax id- Returns:
- The tax id in the given format.
-