コード例 #1
0
 public boolean canReplaceLocal(String localPath) {
   for (PathMapping mapping : myPathMappings) {
     if (mapping.canReplaceLocal(localPath)) {
       return true;
     }
   }
   return false;
 }
コード例 #2
0
 public String convertToRemote(String localPath) {
   for (PathMapping mapping : myPathMappings) {
     if (mapping.canReplaceLocal(localPath)) {
       return mapping.mapToRemote(localPath);
     }
   }
   return localPath;
 }
コード例 #3
0
 public boolean canReplaceRemote(String remotePath) {
   for (PathMapping mapping : myPathMappings) {
     if (mapping.canReplaceRemote(remotePath)) {
       return true;
     }
   }
   return false;
 }
コード例 #4
0
  public String convertToLocal(String remotePath) {
    for (PathMapping mapping : myPathMappings) {
      if (mapping.canReplaceRemote(remotePath)) {
        return mapping.mapToLocal(remotePath);
      }
    }

    return remotePath;
  }