public class ReferenceMapper extends Object
Supports the mapping between key values.
As well as direct mappings from one key value to another, this class also provides string replacement tasks that can be used to replace keys within model definitions.
Modifier and Type | Class and Description |
---|---|
static class |
ReferenceMapper.Builder |
Modifier and Type | Method and Description |
---|---|
static ReferenceMapper.Builder |
builder() |
List<StringReplacementTask> |
getReplacementTasks()
Returns the string replacement tasks corresponding to the contained key mappings.
|
String |
map(String id)
Maps an old ID string to the new equivalent.
|
String |
toString() |
public String map(String id)
Maps an old ID string to the new equivalent.
id
- the old ID stringpublic List<StringReplacementTask> getReplacementTasks()
Returns the string replacement tasks corresponding to the contained key mappings.
public static ReferenceMapper.Builder builder()
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.