Class SireneValidator
java.lang.Object
org.apache.commons.validator.routines.SireneValidator
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe format validation class contains regex for SIREN and SIRET. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SireneValidatorGets the singleton instance of the SIRENE validator using the default formatsbooleanValidate a SIRENE-ID (SIREN or SIRET)
-
Constructor Details
-
SireneValidator
public SireneValidator()Create a default format validator.
-
-
Method Details
-
getInstance
Gets the singleton instance of the SIRENE validator using the default formats- Returns:
- A singleton instance of the validator
-
isValid
Validate a SIRENE-ID (SIREN or SIRET)- Parameters:
code- The value validation is being performed on- Returns:
trueif the value is valid
-