public class MultiPathMapping extends java.lang.Object implements PathMapping
IDENTITY
Constructor and Description |
---|
MultiPathMapping() |
Modifier and Type | Method and Description |
---|---|
MultiPathMapping |
link(java.lang.String src,
java.lang.String dst)
Creates a new link from the path
src to the path dst |
java.lang.String |
map(java.lang.String path)
Maps the given path to a new location.
|
java.lang.String |
map(java.lang.String path,
boolean reverse)
Maps the given path to a new location.
|
MultiPathMapping |
merge(MultiPathMapping base)
Merges the links from the given base mapping
|
public MultiPathMapping link(@Nonnull java.lang.String src, @Nonnull java.lang.String dst)
src
to the path dst
src
- source pathdst
- destination path@Nonnull public MultiPathMapping merge(@Nullable MultiPathMapping base)
base
- base mapping@Nonnull public java.lang.String map(@Nonnull java.lang.String path)
map
in interface PathMapping
path
- the path@Nonnull public java.lang.String map(@Nonnull java.lang.String path, boolean reverse)
map
in interface PathMapping
path
- the pathreverse
- if true
a reverse mapping is appliedCopyright © 2010 - 2020 Adobe. All Rights Reserved