public class PathMapper
extends java.lang.Object
This class caches results and is thread-safe.
| Constructor and Description |
|---|
PathMapper()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPathMap(java.lang.String sourcePath,
java.lang.String targetPath)
Add a path mapping.
|
void |
clear() |
java.util.Map |
convertMap(java.util.Map valueMap) |
java.util.Set |
getMappedPaths(java.lang.String sourcePath)
Gets the remapped paths for the given source path, excluding any derivative
paths i.e.
|
java.util.Set |
getMappedPathsWithPartialMatch(java.lang.String sourcePath)
Gets the remapped paths for the given source path, including any derivative
paths i.e.
|
boolean |
isEmpty() |
void |
lock()
Locks the instance against further modifications.
|
public void lock()
public void clear()
public void addPathMap(java.lang.String sourcePath,
java.lang.String targetPath)
sourcePath - the source pathtargetPath - the target pathpublic java.util.Set getMappedPaths(java.lang.String sourcePath)
sourcePath - the source pathpublic java.util.Set getMappedPathsWithPartialMatch(java.lang.String sourcePath)
sourcePath - the source pathpublic boolean isEmpty()
public java.util.Map convertMap(java.util.Map valueMap)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.