2 * Jalview - A Sequence Alignment Editor and Viewer
3 * Copyright (C) 2007 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 package jalview.datamodel;
21 public class DBRefEntry
23 String source="", version="", accessionId="";
25 * maps from associated sequence to the database sequence's coordinate system
31 public DBRefEntry(String source, String version, String accessionId)
34 this.version = version;
35 this.accessionId = accessionId;
37 public boolean equals(DBRefEntry entry) {
42 if ((source!=null && entry.source!=null && source.equals(entry.source))
44 (accessionId!=null && entry.accessionId!=null && accessionId.equals(entry.accessionId))
46 (version!=null && entry.version!=null && version.equals(entry.version))
48 ((map==null && entry.map==null) || (map!=null && entry.map!=null && map.equals(entry.map)))) {
53 public String getSource()
58 public String getVersion()
63 public String getAccessionId()
68 * @param accessionId the accessionId to set
70 public void setAccessionId(String accessionId) {
71 this.accessionId = accessionId;
74 * @param source the source to set
76 public void setSource(String source) {
80 * @param version the version to set
82 public void setVersion(String version) {
83 this.version = version;
88 public Mapping getMap() {
92 * @param map the map to set
94 public void setMap(Mapping map) {