2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
21 package jalview.datamodel.xdb.uniprot;
24 * A data model class for binding from Uniprot XML via uniprot_mapping.xml
26 public class UniprotFeature
30 private String description = null;
32 private String original = null;
34 private String variation = null;
36 private String status;
42 public String getType()
47 public void setType(String t)
52 public String getDescription()
54 if (description == null && variation == null && original == null)
58 return (description == null ? "" : description)
60 ? (description != null ? " " : "") + "Variation: '"
64 ? ((description != null || variation != null) ? " "
65 : "") + "Original: '" + original + "'"
69 public void setDescription(String d)
74 public String getStatus()
79 public void setStatus(String s)
89 public void setBegin(int b)
99 public void setEnd(int e)
104 public int getPosition()
109 public void setPosition(int p)
115 public String getOriginal()
120 public void setOriginal(String original)
122 this.original = original;
125 public String getVariation()
130 public void setVariation(String variant)
132 this.variation = variant;