public interface ReplaceAlias_ifc
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
sVersion
Version, history and license.
|
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)
Try to replace the start of path with a given alias.
|
static final java.lang.String sVersion
searchAliasForValue(String)
as revers routine to replaceDataPathPrefix(String)
org.vishia.gral.ifc.GralMngBuild_ifc
as one method of the interface. But the capability was necessary outside the Graphic, therefore
this interface was created.
void addDataReplace(java.util.Map<java.lang.String,java.lang.String> src)
replaceDataPathPrefix(String)
.src
- this map will added to the existing one.void addDataReplace(java.lang.String alias, java.lang.String value)
replaceDataPathPrefix(String)
.alias
- Any shorter aliasvalue
- The complete value.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.java.lang.String searchAliasForValue(java.lang.String path)
path
-