public class EntityAliases extends HashMap<String,String>
Example:
<entityAliases>
Port = LogisticNode,
ManifestVoyage = Voyage
</entityAliases>
The alias goes to the left of the equal sign. It will be mapped to the right side.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
EntityAliases()
Creates empty aliases map.
|
EntityAliases(String str)
Creates the aliases from a string.
|
| Modifier and Type | Method and Description |
|---|---|
void |
parse(String str)
Parses the aliases from a string.
|
String |
translate(String name)
Maps the given name to an entity name.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic EntityAliases()
public EntityAliases(String str) throws ModelException
str - the stringModelException - if parsing failedpublic void parse(String str) throws ModelException
str - the stringModelException - if parsing failedTentackle - a domain driven enterprise framework