public boolean canReplaceLocal(String localPath) { for (PathMapping mapping : myPathMappings) { if (mapping.canReplaceLocal(localPath)) { return true; } } return false; }
public String convertToRemote(String localPath) { for (PathMapping mapping : myPathMappings) { if (mapping.canReplaceLocal(localPath)) { return mapping.mapToRemote(localPath); } } return localPath; }