Class TaxIdStructure

java.lang.Object
org.notima.util.TaxIdStructure

public class TaxIdStructure extends Object
Represents a tax id separated in parts.
Author:
Daniel Tamm
  • Field Details

    • FMT_UNKNOWN

      public static String FMT_UNKNOWN
    • FMT_SE14

      public static String FMT_SE14
    • FMT_SE12

      public static String FMT_SE12
    • FMT_SE11

      public static String FMT_SE11
    • FMT_SE10

      public static String FMT_SE10
    • prefix

      protected String prefix
    • leftmiddle

      protected String leftmiddle
    • rightmiddle

      protected String rightmiddle
    • suffix

      protected String suffix
    • taxIdFormat

      protected String taxIdFormat
  • Constructor Details

    • TaxIdStructure

      public TaxIdStructure(String taxIdFormat)
  • Method Details

    • getPrefix

      public String getPrefix()
    • setPrefix

      public void setPrefix(String prefix)
    • getLeftmiddle

      public String getLeftmiddle()
    • setLeftmiddle

      public void setLeftmiddle(String leftmiddle)
    • getRightmiddle

      public String getRightmiddle()
    • setRightmiddle

      public void setRightmiddle(String rightmiddle)
    • getSuffix

      public String getSuffix()
    • setSuffix

      public void setSuffix(String suffix)
    • getTaxIdFormat

      public String getTaxIdFormat()
    • setTaxIdFormat

      public void setTaxIdFormat(String taxIdFormat)
    • 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

      public String printTaxId(String dstFormat)
      Parameters:
      dstFormat - The format use to print the tax id
      Returns:
      The tax id in the given format.