JAL-2418 source formatting
[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)
53             ? seqName.substring(0, MAX_ID_LENGTH)
54             : seqName;
55   }
56
57   public String getSeqResidue()
58   {
59     return seqResidue;
60   }
61
62   public void setSeqResidue(String seqResidue)
63   {
64     this.seqResidue = seqResidue;
65   }
66
67   public int getSeqStart()
68   {
69     return seqStart;
70   }
71
72   public void setSeqStart(int seqStart)
73   {
74     this.seqStart = seqStart;
75   }
76
77   public int getSeqEnd()
78   {
79     return seqEnd;
80   }
81
82   public void setSeqEnd(int seqEnd)
83   {
84     this.seqEnd = seqEnd;
85   }
86
87   public String getStrName()
88   {
89     return strName;
90   }
91
92   public void setStrName(String strName)
93   {
94     this.strName = (strName.length() > MAX_ID_LENGTH)
95             ? strName.substring(0, MAX_ID_LENGTH)
96             : strName;
97   }
98
99   public String getStrResidue()
100   {
101     return strResidue;
102   }
103
104   public void setStrResidue(String strResidue)
105   {
106     this.strResidue = strResidue;
107   }
108
109   public int getStrStart()
110   {
111     return strStart;
112   }
113
114   public void setStrStart(int strStart)
115   {
116     this.strStart = strStart;
117   }
118
119   public int getStrEnd()
120   {
121     return strEnd;
122   }
123
124   public void setStrEnd(int strEnd)
125   {
126     this.strEnd = strEnd;
127   }
128
129   public String getType()
130   {
131     return type;
132   }
133
134   public void setType(String type)
135   {
136     this.type = type;
137   }
138
139 }