From: jprocter Date: Tue, 9 Feb 2010 17:31:14 +0000 (+0000) Subject: token replacement engine for generation of urls for a group of sequences X-Git-Tag: Release_2_5~147 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=07b9194d382328890103d477cda2e2278b7a70c5;p=jalview.git token replacement engine for generation of urls for a group of sequences --- diff --git a/src/jalview/util/GroupUrlLink.java b/src/jalview/util/GroupUrlLink.java new file mode 100644 index 0000000..f319eb1 --- /dev/null +++ b/src/jalview/util/GroupUrlLink.java @@ -0,0 +1,729 @@ +/* + * 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 + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + */ +package jalview.util; + +import jalview.datamodel.Sequence; +import jalview.datamodel.SequenceI; + +import java.util.Hashtable; +import java.util.Vector; + +public class GroupUrlLink +{ + /** + * Helper class based on the UrlLink class which enables URLs to be + * constructed from sequences or IDs associated with a group of sequences. URL + * definitions consist of a pipe separated string containing a