1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (2.11.1.4)
3  * Copyright (C) 2021 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 
getSeqName()45   public String getSeqName()
46   {
47     return seqName;
48   }
49 
setSeqName(String seqName)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 
getSeqResidue()57   public String getSeqResidue()
58   {
59     return seqResidue;
60   }
61 
setSeqResidue(String seqResidue)62   public void setSeqResidue(String seqResidue)
63   {
64     this.seqResidue = seqResidue;
65   }
66 
getSeqStart()67   public int getSeqStart()
68   {
69     return seqStart;
70   }
71 
setSeqStart(int seqStart)72   public void setSeqStart(int seqStart)
73   {
74     this.seqStart = seqStart;
75   }
76 
getSeqEnd()77   public int getSeqEnd()
78   {
79     return seqEnd;
80   }
81 
setSeqEnd(int seqEnd)82   public void setSeqEnd(int seqEnd)
83   {
84     this.seqEnd = seqEnd;
85   }
86 
getStrName()87   public String getStrName()
88   {
89     return strName;
90   }
91 
setStrName(String strName)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 
getStrResidue()99   public String getStrResidue()
100   {
101     return strResidue;
102   }
103 
setStrResidue(String strResidue)104   public void setStrResidue(String strResidue)
105   {
106     this.strResidue = strResidue;
107   }
108 
getStrStart()109   public int getStrStart()
110   {
111     return strStart;
112   }
113 
setStrStart(int strStart)114   public void setStrStart(int strStart)
115   {
116     this.strStart = strStart;
117   }
118 
getStrEnd()119   public int getStrEnd()
120   {
121     return strEnd;
122   }
123 
setStrEnd(int strEnd)124   public void setStrEnd(int strEnd)
125   {
126     this.strEnd = strEnd;
127   }
128 
getType()129   public String getType()
130   {
131     return type;
132   }
133 
setType(String type)134   public void setType(String type)
135   {
136     this.type = type;
137   }
138 
139 }
140