Class SireneValidator

java.lang.Object
org.apache.commons.validator.routines.SireneValidator

public class SireneValidator extends Object
SIRENE (French System Information et Repertoire des Entreprise et des Etablissements) Validator.

International Code Designator, ICD : 0002 for SIRENE

Issuing Organization : Institut National de la Statistique et des Etudes Economiques, (I.N.S.E.E.), Departement des Repertoires, 18, Bd Adolphe Pinard, 75675 PARIS Cedex 14

Structure of Code :

1) Number of characters: 9 characters ("SIREN") 14 " 9+5 ("SIRET"),

The 9 character number designates an organization, the 14 character number designates a specific establishment of the organization designated by the first 9 characters.

2) Check digits: 9th and 14th character respectively

See Wikipedia - SIRET for more details.

Since:
1.10.0
  • Constructor Details

    • SireneValidator

      public SireneValidator()
      Create a default format validator.
  • Method Details

    • getInstance

      public static SireneValidator getInstance()
      Gets the singleton instance of the SIRENE validator using the default formats
      Returns:
      A singleton instance of the validator
    • isValid

      public boolean isValid(String code)
      Validate a SIRENE-ID (SIREN or SIRET)
      Parameters:
      code - The value validation is being performed on
      Returns:
      true if the value is valid