Package com.rolfje.anonimatron.synonyms
Interface Synonym
- All Known Implementing Classes:
DateSynonym,HashedFromSynonym,NullSynonym,NumberSynonym,StringSynonym
public interface Synonym
Provides a way to connect source and target data, and identify the type of
data. Usually the data type is something more semantic, like "NAME" or
"STREET". Synonyms are produced by the
AnonymizerService.-
Method Summary
-
Method Details
-
isShortLived
boolean isShortLived()Indicates if this Synonym is short-lived or transient, meaning that it should not be stored in the synonyms file. Transient Synonyms are not stored, need to be calculated each run time. Transient synonyms are:- Not stored in memory.
- Not stored in the synonym file.
- Returns:
trueif the synonym should be thrown away after use (not stored in the synonym file).
-
getType
String getType()- Returns:
- The semantic data type of this Synonym, usually something descriptive as "NAME" or "STREET".
-
getFrom
Object getFrom()- Returns:
- The data which was in the original database for this Synonym
-
getTo
Object getTo()- Returns:
- The data with which the original data in the database will be or is replaced when the Anonymizer runs.
-