Class TaxNumberValidator
java.lang.Object
software.xdev.bzst.dip.client.model.configuration.TaxNumberValidator
Checks if a taxNumber is valid.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intLength of the checksumstatic final intAbsolute length of the entire IdNr.static final intLength of the "number" part of the IdNr.static final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidateTaxNumber(String taxNumber) Throws anTaxNumberExceptionif the taxNumber is not valid according to the Elster - Prüfung der Steuer- und Steueridentifikationsnummer sowie der Ordnungskriterien bei der Grundsteuer
-
Field Details
-
IDNR_LENGTH
public static final int IDNR_LENGTHAbsolute length of the entire IdNr.- See Also:
-
IDNR_NUMBER_LENGTH
public static final int IDNR_NUMBER_LENGTHLength of the "number" part of the IdNr. (without check digit)- See Also:
-
IDNR_CHECKSUM_LENGTH
public static final int IDNR_CHECKSUM_LENGTHLength of the checksum- See Also:
-
SIZE_FOR_TRIPLETS_ALLOWED
public static final int SIZE_FOR_TRIPLETS_ALLOWED- See Also:
-
SIZE_FOR_DOUBLET_ALLOWED
public static final int SIZE_FOR_DOUBLET_ALLOWED- See Also:
-
SIZE_NOT_ALLOWED
public static final int SIZE_NOT_ALLOWED- See Also:
-
-
Method Details
-
validateTaxNumber
Throws anTaxNumberExceptionif the taxNumber is not valid according to the Elster - Prüfung der Steuer- und Steueridentifikationsnummer sowie der Ordnungskriterien bei der Grundsteuer
-