X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FUrlLink.java;h=00e33b2a83c4beac3ff58895c28b32075635cf3d;hb=c16c1633e1a5acc9f44e4de40b9abbb8a59b99b4;hp=c2df60800578f310f19cfa6db209f395a5b19ef7;hpb=506d60f0e188723ddc91c26824b41ac7034df3fe;p=jalview.git diff --git a/src/jalview/util/UrlLink.java b/src/jalview/util/UrlLink.java index c2df608..00e33b2 100644 --- a/src/jalview/util/UrlLink.java +++ b/src/jalview/util/UrlLink.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4) - * Copyright (C) 2008 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle + * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1) + * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -29,6 +29,7 @@ public class UrlLink * strings and replace the result in the URL. Regex's operate on the whole ID * string given to the matchURL method, if no regex is supplied, then only * text following the first pipe symbol will be susbstituted. + * Usage documentation todo. */ private String url_suffix, url_prefix, target, label, regexReplace; @@ -171,8 +172,8 @@ public class UrlLink } /** - * - * @return true if URL string could not be parsed properly. + * Check if URL string was parsed properly. + * @return boolean - if false then getInvalidMessage returns an error message */ public boolean isValid() { @@ -344,7 +345,7 @@ public class UrlLink * //"123123312", "123123 ABCDE foo", "PFAM:PF23943", */ "Label:gi|9234|pdb|102L|A" }; - + // TODO: test the setLabel method. for (int i = 0; i < links.length; i++) { UrlLink ul = new UrlLink(links[i]); @@ -384,4 +385,9 @@ public class UrlLink // TODO Auto-generated method stub return dynamic; } + + public void setLabel(String newlabel) + { + this.label = newlabel; + } }