X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FUrlLink.java;h=0529c73790acf1a05841714563d0b1755b59a44f;hb=aba253e57b22ce7d1f4fe376935e42aeb4f6d591;hp=0d9275912187635c5f78bc2b6c787d941a628efd;hpb=8c53a6c0bda186beb949efd99cecbb815eab2210;p=jalview.git diff --git a/src/jalview/util/UrlLink.java b/src/jalview/util/UrlLink.java index 0d92759..0529c73 100644 --- a/src/jalview/util/UrlLink.java +++ b/src/jalview/util/UrlLink.java @@ -21,6 +21,8 @@ package jalview.util; import static jalview.util.UrlConstants.DB_ACCESSION; +import static jalview.util.UrlConstants.DELIM; +import static jalview.util.UrlConstants.SEP; import static jalview.util.UrlConstants.SEQUENCE_ID; import jalview.datamodel.DBRefEntry; @@ -39,19 +41,34 @@ public class UrlLink * Jalview 2.4 extension allows regular expressions to be used to parse ID * 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 + * text following the first pipe symbol will be substituted. Usage * documentation todo. */ - private String url_suffix, url_prefix, target, label, regexReplace; + + private static final String EQUALS = "="; + + private static final String SPACE = " "; + + private String urlSuffix; + + private String urlPrefix; + + private String target; + + private String label; + + private String dbname; + + private String regexReplace; private boolean dynamic = false; - private boolean uses_db_accession = false; + private boolean usesDBaccession = false; private String invalidMessage = null; /** - * parse the given linkString of the form '