Merge branch 'bug/JAL-2827' into develop
[jalview.git] / src / jalview / datamodel / xdb / uniprot / UniprotFeature.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3  * Copyright (C) $$Year-Rel$$ The Jalview Authors
4  * 
5  * This file is part of Jalview.
6  * 
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.
11  *  
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.
16  * 
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.
20  */
21 package jalview.datamodel.xdb.uniprot;
22
23 /**
24  * A data model class for binding from Uniprot XML via uniprot_mapping.xml
25  */
26 public class UniprotFeature
27 {
28   private String type;
29
30   private String description;
31
32   private String status;
33
34   private int begin;
35
36   private int end;
37
38   public String getType()
39   {
40     return type;
41   }
42
43   public void setType(String t)
44   {
45     this.type = t;
46   }
47
48   public String getDescription()
49   {
50     return description;
51   }
52
53   public void setDescription(String d)
54   {
55     this.description = d;
56   }
57
58   public String getStatus()
59   {
60     return status;
61   }
62
63   public void setStatus(String s)
64   {
65     this.status = s;
66   }
67
68   public int getBegin()
69   {
70     return begin;
71   }
72
73   public void setBegin(int b)
74   {
75     this.begin = b;
76   }
77
78   public int getEnd()
79   {
80     return end;
81   }
82
83   public void setEnd(int e)
84   {
85     this.end = e;
86   }
87
88   public int getPosition()
89   {
90     return begin;
91   }
92
93   public void setPosition(int p)
94   {
95     this.begin = p;
96     this.end = p;
97   }
98 }