public class InspcReplAlias
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map<java.lang.String,java.lang.String> |
repl |
Constructor and Description |
---|
InspcReplAlias() |
Modifier and Type | Method and Description |
---|---|
void |
addDataReplace(java.util.Map<java.lang.String,java.lang.String> src)
It supports usage of an alias in the data path.
|
void |
addDataReplace(java.lang.String alias,
java.lang.String value)
It supports usage of an alias in the data path.
|
java.lang.String |
replaceDataPathPrefix(java.lang.String path)
It supports usage of an alias in the data path.
|
java.lang.String |
searchAliasForValue(java.lang.String path) |
public void addDataReplace(java.util.Map<java.lang.String,java.lang.String> src)
replaceDataPathPrefix(String)
.src
- this map will added to the existing one.public void addDataReplace(java.lang.String alias, java.lang.String value)
replaceDataPathPrefix(String)
.alias
- Any shorter aliasvalue
- The complete value.public java.lang.String replaceDataPathPrefix(java.lang.String path)
path
- may contain "alias:restOfPath"addDataReplace(String, String)
the it is replaced
inclusively ":". If alias is not found, it is not replaced.
Note that another meaning of "prefix:restOfPath" is possible.public java.lang.String searchAliasForValue(java.lang.String path)