update author list in license for (JAL-826)
[jalview.git] / src / vamsas / objects / simple / SeqSearchResult.java
index 4d75aad..82331fd 100644 (file)
-/**\r
- * SeqSearchResult.java\r
- *\r
- * This file was auto-generated from WSDL\r
- * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.\r
+/*\r
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)\r
+ * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle\r
+ * \r
+ * This file is part of Jalview.\r
+ * \r
+ * Jalview is free software: you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License \r
+ * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\r
+ * \r
+ * Jalview is distributed in the hope that it will be useful, but \r
+ * WITHOUT ANY WARRANTY; without even the implied warranty \r
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR \r
+ * PURPOSE.  See the GNU General Public License for more details.\r
+ * \r
+ * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.\r
  */\r
-\r
 package vamsas.objects.simple;\r
 \r
-public class SeqSearchResult  extends vamsas.objects.simple.Result  implements java.io.Serializable {\r
-    private vamsas.objects.simple.Alignment alignment;\r
-    private java.lang.String annotation;\r
-    private java.lang.String features;\r
-    private java.lang.String newickTree;\r
-\r
-    public SeqSearchResult() {\r
+public class SeqSearchResult extends vamsas.objects.simple.Result implements\r
+        java.io.Serializable\r
+{\r
+  private vamsas.objects.simple.Alignment alignment;\r
+\r
+  private java.lang.String annotation;\r
+\r
+  private java.lang.String features;\r
+\r
+  private java.lang.String newickTree;\r
+\r
+  public SeqSearchResult()\r
+  {\r
+  }\r
+\r
+  public SeqSearchResult(vamsas.objects.simple.Alignment alignment,\r
+          java.lang.String annotation, java.lang.String features,\r
+          java.lang.String newickTree)\r
+  {\r
+    this.alignment = alignment;\r
+    this.annotation = annotation;\r
+    this.features = features;\r
+    this.newickTree = newickTree;\r
+  }\r
+\r
+  /**\r
+   * Gets the alignment value for this SeqSearchResult.\r
+   * \r
+   * @return alignment\r
+   */\r
+  public vamsas.objects.simple.Alignment getAlignment()\r
+  {\r
+    return alignment;\r
+  }\r
+\r
+  /**\r
+   * Sets the alignment value for this SeqSearchResult.\r
+   * \r
+   * @param alignment\r
+   */\r
+  public void setAlignment(vamsas.objects.simple.Alignment alignment)\r
+  {\r
+    this.alignment = alignment;\r
+  }\r
+\r
+  /**\r
+   * Gets the annotation value for this SeqSearchResult.\r
+   * \r
+   * @return annotation\r
+   */\r
+  public java.lang.String getAnnotation()\r
+  {\r
+    return annotation;\r
+  }\r
+\r
+  /**\r
+   * Sets the annotation value for this SeqSearchResult.\r
+   * \r
+   * @param annotation\r
+   */\r
+  public void setAnnotation(java.lang.String annotation)\r
+  {\r
+    this.annotation = annotation;\r
+  }\r
+\r
+  /**\r
+   * Gets the features value for this SeqSearchResult.\r
+   * \r
+   * @return features\r
+   */\r
+  public java.lang.String getFeatures()\r
+  {\r
+    return features;\r
+  }\r
+\r
+  /**\r
+   * Sets the features value for this SeqSearchResult.\r
+   * \r
+   * @param features\r
+   */\r
+  public void setFeatures(java.lang.String features)\r
+  {\r
+    this.features = features;\r
+  }\r
+\r
+  /**\r
+   * Gets the newickTree value for this SeqSearchResult.\r
+   * \r
+   * @return newickTree\r
+   */\r
+  public java.lang.String getNewickTree()\r
+  {\r
+    return newickTree;\r
+  }\r
+\r
+  /**\r
+   * Sets the newickTree value for this SeqSearchResult.\r
+   * \r
+   * @param newickTree\r
+   */\r
+  public void setNewickTree(java.lang.String newickTree)\r
+  {\r
+    this.newickTree = newickTree;\r
+  }\r
+\r
+  private java.lang.Object __equalsCalc = null;\r
+\r
+  public synchronized boolean equals(java.lang.Object obj)\r
+  {\r
+    if (!(obj instanceof SeqSearchResult))\r
+      return false;\r
+    SeqSearchResult other = (SeqSearchResult) obj;\r
+    if (obj == null)\r
+      return false;\r
+    if (this == obj)\r
+      return true;\r
+    if (__equalsCalc != null)\r
+    {\r
+      return (__equalsCalc == obj);\r
     }\r
-\r
-    public SeqSearchResult(\r
-           vamsas.objects.simple.Alignment alignment,\r
-           java.lang.String annotation,\r
-           java.lang.String features,\r
-           java.lang.String newickTree) {\r
-           this.alignment = alignment;\r
-           this.annotation = annotation;\r
-           this.features = features;\r
-           this.newickTree = newickTree;\r
+    __equalsCalc = obj;\r
+    boolean _equals;\r
+    _equals = super.equals(obj)\r
+            && ((this.alignment == null && other.getAlignment() == null) || (this.alignment != null && this.alignment\r
+                    .equals(other.getAlignment())))\r
+            && ((this.annotation == null && other.getAnnotation() == null) || (this.annotation != null && this.annotation\r
+                    .equals(other.getAnnotation())))\r
+            && ((this.features == null && other.getFeatures() == null) || (this.features != null && this.features\r
+                    .equals(other.getFeatures())))\r
+            && ((this.newickTree == null && other.getNewickTree() == null) || (this.newickTree != null && this.newickTree\r
+                    .equals(other.getNewickTree())));\r
+    __equalsCalc = null;\r
+    return _equals;\r
+  }\r
+\r
+  private boolean __hashCodeCalc = false;\r
+\r
+  public synchronized int hashCode()\r
+  {\r
+    if (__hashCodeCalc)\r
+    {\r
+      return 0;\r
     }\r
-\r
-\r
-    /**\r
-     * Gets the alignment value for this SeqSearchResult.\r
-     * \r
-     * @return alignment\r
-     */\r
-    public vamsas.objects.simple.Alignment getAlignment() {\r
-        return alignment;\r
-    }\r
-\r
-\r
-    /**\r
-     * Sets the alignment value for this SeqSearchResult.\r
-     * \r
-     * @param alignment\r
-     */\r
-    public void setAlignment(vamsas.objects.simple.Alignment alignment) {\r
-        this.alignment = alignment;\r
+    __hashCodeCalc = true;\r
+    int _hashCode = super.hashCode();\r
+    if (getAlignment() != null)\r
+    {\r
+      _hashCode += getAlignment().hashCode();\r
     }\r
-\r
-\r
-    /**\r
-     * Gets the annotation value for this SeqSearchResult.\r
-     * \r
-     * @return annotation\r
-     */\r
-    public java.lang.String getAnnotation() {\r
-        return annotation;\r
+    if (getAnnotation() != null)\r
+    {\r
+      _hashCode += getAnnotation().hashCode();\r
     }\r
-\r
-\r
-    /**\r
-     * Sets the annotation value for this SeqSearchResult.\r
-     * \r
-     * @param annotation\r
-     */\r
-    public void setAnnotation(java.lang.String annotation) {\r
-        this.annotation = annotation;\r
+    if (getFeatures() != null)\r
+    {\r
+      _hashCode += getFeatures().hashCode();\r
     }\r
-\r
-\r
-    /**\r
-     * Gets the features value for this SeqSearchResult.\r
-     * \r
-     * @return features\r
-     */\r
-    public java.lang.String getFeatures() {\r
-        return features;\r
-    }\r
-\r
-\r
-    /**\r
-     * Sets the features value for this SeqSearchResult.\r
-     * \r
-     * @param features\r
-     */\r
-    public void setFeatures(java.lang.String features) {\r
-        this.features = features;\r
-    }\r
-\r
-\r
-    /**\r
-     * Gets the newickTree value for this SeqSearchResult.\r
-     * \r
-     * @return newickTree\r
-     */\r
-    public java.lang.String getNewickTree() {\r
-        return newickTree;\r
-    }\r
-\r
-\r
-    /**\r
-     * Sets the newickTree value for this SeqSearchResult.\r
-     * \r
-     * @param newickTree\r
-     */\r
-    public void setNewickTree(java.lang.String newickTree) {\r
-        this.newickTree = newickTree;\r
-    }\r
-\r
-    private java.lang.Object __equalsCalc = null;\r
-    public synchronized boolean equals(java.lang.Object obj) {\r
-        if (!(obj instanceof SeqSearchResult)) return false;\r
-        SeqSearchResult other = (SeqSearchResult) obj;\r
-        if (obj == null) return false;\r
-        if (this == obj) return true;\r
-        if (__equalsCalc != null) {\r
-            return (__equalsCalc == obj);\r
-        }\r
-        __equalsCalc = obj;\r
-        boolean _equals;\r
-        _equals = super.equals(obj) && \r
-            ((this.alignment==null && other.getAlignment()==null) || \r
-             (this.alignment!=null &&\r
-              this.alignment.equals(other.getAlignment()))) &&\r
-            ((this.annotation==null && other.getAnnotation()==null) || \r
-             (this.annotation!=null &&\r
-              this.annotation.equals(other.getAnnotation()))) &&\r
-            ((this.features==null && other.getFeatures()==null) || \r
-             (this.features!=null &&\r
-              this.features.equals(other.getFeatures()))) &&\r
-            ((this.newickTree==null && other.getNewickTree()==null) || \r
-             (this.newickTree!=null &&\r
-              this.newickTree.equals(other.getNewickTree())));\r
-        __equalsCalc = null;\r
-        return _equals;\r
-    }\r
-\r
-    private boolean __hashCodeCalc = false;\r
-    public synchronized int hashCode() {\r
-        if (__hashCodeCalc) {\r
-            return 0;\r
-        }\r
-        __hashCodeCalc = true;\r
-        int _hashCode = super.hashCode();\r
-        if (getAlignment() != null) {\r
-            _hashCode += getAlignment().hashCode();\r
-        }\r
-        if (getAnnotation() != null) {\r
-            _hashCode += getAnnotation().hashCode();\r
-        }\r
-        if (getFeatures() != null) {\r
-            _hashCode += getFeatures().hashCode();\r
-        }\r
-        if (getNewickTree() != null) {\r
-            _hashCode += getNewickTree().hashCode();\r
-        }\r
-        __hashCodeCalc = false;\r
-        return _hashCode;\r
+    if (getNewickTree() != null)\r
+    {\r
+      _hashCode += getNewickTree().hashCode();\r
     }\r
+    __hashCodeCalc = false;\r
+    return _hashCode;\r
+  }\r
 \r
 }\r