JAL-1479 added support for SIFTs mapping output viewing and implemented exception...
[jalview.git] / src / jalview / ws / sifts / MappingOutputPojo.java
diff --git a/src/jalview/ws/sifts/MappingOutputPojo.java b/src/jalview/ws/sifts/MappingOutputPojo.java
new file mode 100644 (file)
index 0000000..c06e51f
--- /dev/null
@@ -0,0 +1,129 @@
+package jalview.ws.sifts;
+
+public class MappingOutputPojo
+{
+  private String seqName;
+
+  private String seqResidue;
+
+  private int seqStart;
+
+  private int seqEnd;
+
+  private String strName;
+
+  private String strResidue;
+
+  private int strStart;
+
+  private int strEnd;
+
+  private String type;
+
+  private int wrapHeight;
+
+  private static final int MAX_ID_LENGTH = 30;
+
+  public String getSeqName()
+  {
+    return seqName;
+  }
+
+  public void setSeqName(String seqName)
+  {
+    this.seqName = (seqName.length() > MAX_ID_LENGTH) ? seqName.substring(
+            0, MAX_ID_LENGTH) : seqName;
+  }
+
+  public String getSeqResidue()
+  {
+    return seqResidue;
+  }
+
+  public void setSeqResidue(String seqResidue)
+  {
+    this.seqResidue = seqResidue;
+  }
+
+  public int getSeqStart()
+  {
+    return seqStart;
+  }
+
+  public void setSeqStart(int seqStart)
+  {
+    this.seqStart = seqStart;
+  }
+
+  public int getSeqEnd()
+  {
+    return seqEnd;
+  }
+
+  public void setSeqEnd(int seqEnd)
+  {
+    this.seqEnd = seqEnd;
+  }
+
+  public String getStrName()
+  {
+    return strName;
+  }
+
+  public void setStrName(String strName)
+  {
+    this.strName = (strName.length() > MAX_ID_LENGTH) ? strName.substring(
+            0, MAX_ID_LENGTH) : strName;
+  }
+
+  public String getStrResidue()
+  {
+    return strResidue;
+  }
+
+  public void setStrResidue(String strResidue)
+  {
+    this.strResidue = strResidue;
+  }
+
+  public int getStrStart()
+  {
+    return strStart;
+  }
+
+  public void setStrStart(int strStart)
+  {
+    this.strStart = strStart;
+  }
+
+  public int getStrEnd()
+  {
+    return strEnd;
+  }
+
+  public void setStrEnd(int strEnd)
+  {
+    this.strEnd = strEnd;
+  }
+
+  public String getType()
+  {
+    return type;
+  }
+
+  public void setType(String type)
+  {
+    this.type = type;
+  }
+
+  public int getWrapHeight()
+  {
+    return wrapHeight;
+  }
+
+  public void setWrapHeight(int wrapHeight)
+  {
+    this.wrapHeight = wrapHeight;
+  }
+
+}