4675fb7d3a1dc1587f5941246b90c13fa1014a7f
[jalview.git] / src / jalview / ws / sifts / MappingOutputPojo.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.ws.sifts;
22
23 public class MappingOutputPojo
24 {
25   private String seqName;
26
27   private String seqResidue;
28
29   private int seqStart;
30
31   private int seqEnd;
32
33   private String strName;
34
35   private String strResidue;
36
37   private int strStart;
38
39   private int strEnd;
40
41   private String type;
42
43   private static final int MAX_ID_LENGTH = 30;
44
45   public String getSeqName()
46   {
47     return seqName;
48   }
49
50   public void setSeqName(String seqName)
51   {
52     this.seqName = (seqName.length() > MAX_ID_LENGTH) ? seqName.substring(
53             0, MAX_ID_LENGTH) : seqName;
54   }
55
56   public String getSeqResidue()
57   {
58     return seqResidue;
59   }
60
61   public void setSeqResidue(String seqResidue)
62   {
63     this.seqResidue = seqResidue;
64   }
65
66   public int getSeqStart()
67   {
68     return seqStart;
69   }
70
71   public void setSeqStart(int seqStart)
72   {
73     this.seqStart = seqStart;
74   }
75
76   public int getSeqEnd()
77   {
78     return seqEnd;
79   }
80
81   public void setSeqEnd(int seqEnd)
82   {
83     this.seqEnd = seqEnd;
84   }
85
86   public String getStrName()
87   {
88     return strName;
89   }
90
91   public void setStrName(String strName)
92   {
93     this.strName = (strName.length() > MAX_ID_LENGTH) ? strName.substring(
94             0, MAX_ID_LENGTH) : strName;
95   }
96
97   public String getStrResidue()
98   {
99     return strResidue;
100   }
101
102   public void setStrResidue(String strResidue)
103   {
104     this.strResidue = strResidue;
105   }
106
107   public int getStrStart()
108   {
109     return strStart;
110   }
111
112   public void setStrStart(int strStart)
113   {
114     this.strStart = strStart;
115   }
116
117   public int getStrEnd()
118   {
119     return strEnd;
120   }
121
122   public void setStrEnd(int strEnd)
123   {
124     this.strEnd = strEnd;
125   }
126
127   public String getType()
128   {
129     return type;
130   }
131
132   public void setType(String type)
133   {
134     this.type = type;
135   }
136
137 }