001/*
002 *                    BioJava development code
003 *
004 * This code may be freely distributed and modified under the
005 * terms of the GNU Lesser General Public Licence.  This should
006 * be distributed with the code.  If you do not have a copy,
007 * see:
008 *
009 *      http://www.gnu.org/copyleft/lesser.html
010 *
011 * Copyright for this code is held jointly by the individual
012 * authors.  These should be listed in @author doc comments.
013 *
014 * For more information on the BioJava project and its aims,
015 * or to join the biojava-l mailing list, visit the home page
016 * at:
017 *
018 *      http://www.biojava.org/
019 *
020 */
021package org.biojava.bio.program.blast2html;
022
023import java.util.Properties;
024
025/**
026 * Simple URL generator for EMBL at the EBI.
027 * For more upto date information about how to generate
028 * URL's see <A href="http://www.ebi.ac.uk/cgi-bin/dbfetch">dbfetch</A>
029 *
030 * Primary author -
031 *                 Colin Hardman      (CAT)
032 * Other authors  -
033 *                 Tim Dilks          (CAT)
034 *                 Simon Brocklehurst (CAT)
035 *                 Stuart Johnston    (CAT)
036 *                 Lawerence Bower    (CAT)
037 *                 Derek Crockford    (CAT)
038 *                 Neil Benn          (CAT)
039 *
040 * Copyright 2001 Cambridge Antibody Technology Group plc.
041 *
042 * This code released to the biojava project, May 2001
043 * under the LGPL license.
044 *
045 * @author Cambridge Antibody Technology Group plc
046 * @version 1.0
047 */
048public class EbiDatabaseURLGenerator implements DatabaseURLGenerator {
049
050    public String toURL( String poID, Properties poProperties ) {
051        return "http://www.ebi.ac.uk/cgi-bin/dbfetch?id=".concat( poID );
052    }
053    public String toLink( String poID, Properties poProperties ) {
054        return "[<A class=\"dbRetrieve\" HREF=\"".concat
055            ( this.toURL( poID, poProperties ) ).concat
056            ( "\">retrieve hit from ebi</A>]");
057    }
058}