Changeset 9434


Ignore:
Timestamp:
2005-03-15T16:19:12+13:00 (19 years ago)
Author:
kjdon
Message:

added replaceFirstLInk funciton

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/GSPath.java

    r5186 r9434  
    5353    }
    5454
     55    /** replaces the first link in the path with the specified name
     56     */
     57    static public String replaceFirstLink(String path, String new_first_link) {
     58    path = removeFirstLink(path);
     59    path = prependLink(path, new_first_link);
     60    return path;
     61
     62    }
    5563    /** returns the first name in the path
    5664     *
Note: See TracChangeset for help on using the changeset viewer.