public class PathMappingSettings extends AbstractPathMapper implements java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
PathMappingSettings.BestMappingSelector |
static class |
PathMappingSettings.PathMapping |
Constructor and Description |
---|
PathMappingSettings() |
PathMappingSettings(java.util.List<? extends PathMappingSettings.PathMapping> pathMappings) |
Modifier and Type | Method and Description |
---|---|
void |
add(PathMappingSettings.PathMapping mapping) |
void |
addAll(java.util.List<? extends PathMappingSettings.PathMapping> mappings) |
void |
addAll(PathMappingSettings settings) |
void |
addMapping(java.lang.String local,
java.lang.String remote) |
void |
addMappingCheckUnique(java.lang.String local,
java.lang.String remote) |
java.lang.String |
convertToLocal(java.lang.String remotePath) |
java.lang.String |
convertToRemote(java.lang.String localPath) |
boolean |
equals(java.lang.Object o) |
protected java.util.Collection<PathMappingSettings.PathMapping> |
getAvailablePathMappings() |
java.util.List<PathMappingSettings.PathMapping> |
getPathMappings() |
int |
hashCode() |
static boolean |
isAnyEmpty(java.lang.String localRoot,
java.lang.String remoteRoot) |
boolean |
isEmpty() |
static java.lang.String |
mapToLocal(java.lang.String path,
java.lang.String remoteRoot,
java.lang.String localRoot) |
static PathMappingSettings |
readExternal(Element element) |
void |
setPathMappings(java.util.List<? extends PathMappingSettings.PathMapping> pathMappings) |
static void |
writeExternal(Element element,
PathMappingSettings mappings) |
canReplaceLocal, canReplaceRemote, convertToLocal, convertToRemote, convertToRemote
public PathMappingSettings(java.util.List<? extends PathMappingSettings.PathMapping> pathMappings)
public PathMappingSettings()
public boolean isEmpty()
isEmpty
in interface PathMapper
public java.lang.String convertToLocal(java.lang.String remotePath)
convertToLocal
in interface PathMapper
public java.lang.String convertToRemote(java.lang.String localPath)
convertToRemote
in interface PathMapper
public void add(PathMappingSettings.PathMapping mapping)
public void addMapping(java.lang.String local, java.lang.String remote)
public void addMappingCheckUnique(java.lang.String local, java.lang.String remote)
protected final java.util.Collection<PathMappingSettings.PathMapping> getAvailablePathMappings()
getAvailablePathMappings
in class AbstractPathMapper
public java.util.List<PathMappingSettings.PathMapping> getPathMappings()
public void setPathMappings(java.util.List<? extends PathMappingSettings.PathMapping> pathMappings)
public static java.lang.String mapToLocal(java.lang.String path, java.lang.String remoteRoot, java.lang.String localRoot)
public static boolean isAnyEmpty(java.lang.String localRoot, java.lang.String remoteRoot)
public static PathMappingSettings readExternal(Element element)
public static void writeExternal(Element element, PathMappingSettings mappings)
public void addAll(PathMappingSettings settings)
public void addAll(java.util.List<? extends PathMappingSettings.PathMapping> mappings)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object