Package overit.geocall.basic.anonymizer
Class Anonymizer.ItalianFiscalCodeAnonymizer
java.lang.Object
overit.geocall.basic.anonymizer.Anonymizer.AbstractAnonymizer<String,Anonymizer.ItalianFiscalCodeAnonymizer>
overit.geocall.basic.anonymizer.Anonymizer.ItalianFiscalCodeAnonymizer
- Enclosing class:
Anonymizer
public class Anonymizer.ItalianFiscalCodeAnonymizer
extends Anonymizer.AbstractAnonymizer<String,Anonymizer.ItalianFiscalCodeAnonymizer>
Anonymizer used to obfuscate a fields containing user's fiscal code value.
If the context doesn't contains the field assigned to this instance, all'the method of this class will not change the context.
-
Field Summary
Fields inherited from class overit.geocall.basic.anonymizer.Anonymizer.AbstractAnonymizer
_field -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanonymize(String surnameField, String nameField, String birthdayField, String birthplaceField, String genderField) Generate the italian fiscal code based on the user's information given as parameters.protected Stringprotected Dateprotected Stringprotected Stringprotected voidMethods inherited from class overit.geocall.basic.anonymizer.Anonymizer.AbstractAnonymizer
setValue
-
Constructor Details
-
ItalianFiscalCodeAnonymizer
-
-
Method Details
-
anonymize
public Anonymizer.ItalianFiscalCodeAnonymizer anonymize(String surnameField, String nameField, String birthdayField, String birthplaceField, String genderField) Generate the italian fiscal code based on the user's information given as parameters. We suppose that the input values, have been already anonymized.- Parameters:
surnameField- field containing the surname's valuenameField- field containing the name's valuebirthdayField- field containing the birthdaty's valuebirthplaceField- field containing the birthplace's valuegenderField- field containing the gender's value- Returns:
- a reference of this object.
-
validate
- Overrides:
validatein classAnonymizer.AbstractAnonymizer<String,Anonymizer.ItalianFiscalCodeAnonymizer>
-
getRandomDate
-
getRandomCity
-
getRandomText
-
getRandomGender
-