public class UniqueNameMap extends Object
Constructor and Description |
---|
UniqueNameMap(UniqueNameMapParameters parameters) |
Modifier and Type | Method and Description |
---|---|
String |
addName(String name)
Adds an original name as the key and its processed version as the values to the map.
|
void |
addNames(Collection<String> names) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,String>> |
entrySet() |
protected Map<String,String> |
getMap() |
UniqueNameMapParameters |
getParameters() |
String |
getProcessedName(String originalName) |
boolean |
isEmpty() |
Set<String> |
keySet() |
String |
remove(Object key) |
int |
size() |
Collection<String> |
values() |
void |
writeNameMap(File file)
Writes the contents of the current name map in text format as tab separated values.
|
void |
writeNameMap(OutputStream stream)
Writes the contents of the current name map in text format as tab separated values.
|
public UniqueNameMap(UniqueNameMapParameters parameters)
public UniqueNameMapParameters getParameters()
public String addName(String name)
name
- the original name (stored as the key in the new map entry)public void addNames(Collection<String> names)
public String getProcessedName(String originalName)
public void clear()
public boolean containsKey(Object key)
public boolean containsValue(Object value)
public boolean isEmpty()
public int size()
public Collection<String> values()
public void writeNameMap(OutputStream stream)
stream
- the stream to write the table topublic void writeNameMap(File file) throws FileNotFoundException, IOException
file
- the file to write the table toFileNotFoundException
- if the file exists but is a directory rather than a regular file, does not exist but cannot be created, or cannot be opened for any other reasonSecurityException
- if a security manager exists and its checkWrite method denies write access to the file.IOException