public class CaseSensitiveStringAnonymizer extends AbstractAnonymizer<String>
attributeAnonymizers, caseSensitive, schemaManager| Constructor and Description |
|---|
CaseSensitiveStringAnonymizer()
Creates a new instance of StringAnonymizer.
|
CaseSensitiveStringAnonymizer(Map<Integer,String> latestStringMap)
Creates a new instance of StringAnonymizer.
|
| Modifier and Type | Method and Description |
|---|---|
Attribute |
anonymize(Map<Value<String>,Value<String>> valueMap,
Set<Value<String>> valueSet,
Attribute attribute)
Anonymize an attribute using pure random values (either chars of bytes, depending on the Attribute type)
|
Map<Integer,String> |
getLatestStringMap() |
void |
setLatestStringMap(Map<Integer,String> latestStringMap) |
computeNewValue, computeNewValue, getLatestBytesMap, setAnonymizers, setLatestBytesMap, setSchemaManagerpublic CaseSensitiveStringAnonymizer()
public Attribute anonymize(Map<Value<String>,Value<String>> valueMap, Set<Value<String>> valueSet, Attribute attribute)
valueMap - The existing map of value to the associated anonymized counterpartvalueSet - The existing set of anonymized counterpartattribute - The attribute to anonymizepublic Map<Integer,String> getLatestStringMap()
getLatestStringMap in interface Anonymizer<String>getLatestStringMap in class AbstractAnonymizer<String>public void setLatestStringMap(Map<Integer,String> latestStringMap)
setLatestStringMap in interface Anonymizer<String>setLatestStringMap in class AbstractAnonymizer<String>Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.