This is a standalone Java library for VAT (Value-Added Tax) number formal validation. It doesn't connect to any web service. It can be used to verify if an input value is a valid VAT number with respect of the formal rules of a certain country.
Important
This library does not verify if the input value is actually assigned to a certain company or organization.
This will validate 11198699 value against Romanian VAT patterns:
boolean isValid = VatValidator.validate("RO", "11198699");
The first argument is the ISO-3166 country code, the second one is the value to be validated.
The validation source is a Javascript file found here