4d75aad9f2be2ca03f33d0c2aa610cb7ba4669d3
[jalview.git] / src / vamsas / objects / simple / SeqSearchResult.java
1 /**\r
2  * SeqSearchResult.java\r
3  *\r
4  * This file was auto-generated from WSDL\r
5  * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.\r
6  */\r
7 \r
8 package vamsas.objects.simple;\r
9 \r
10 public class SeqSearchResult  extends vamsas.objects.simple.Result  implements java.io.Serializable {\r
11     private vamsas.objects.simple.Alignment alignment;\r
12     private java.lang.String annotation;\r
13     private java.lang.String features;\r
14     private java.lang.String newickTree;\r
15 \r
16     public SeqSearchResult() {\r
17     }\r
18 \r
19     public SeqSearchResult(\r
20            vamsas.objects.simple.Alignment alignment,\r
21            java.lang.String annotation,\r
22            java.lang.String features,\r
23            java.lang.String newickTree) {\r
24            this.alignment = alignment;\r
25            this.annotation = annotation;\r
26            this.features = features;\r
27            this.newickTree = newickTree;\r
28     }\r
29 \r
30 \r
31     /**\r
32      * Gets the alignment value for this SeqSearchResult.\r
33      * \r
34      * @return alignment\r
35      */\r
36     public vamsas.objects.simple.Alignment getAlignment() {\r
37         return alignment;\r
38     }\r
39 \r
40 \r
41     /**\r
42      * Sets the alignment value for this SeqSearchResult.\r
43      * \r
44      * @param alignment\r
45      */\r
46     public void setAlignment(vamsas.objects.simple.Alignment alignment) {\r
47         this.alignment = alignment;\r
48     }\r
49 \r
50 \r
51     /**\r
52      * Gets the annotation value for this SeqSearchResult.\r
53      * \r
54      * @return annotation\r
55      */\r
56     public java.lang.String getAnnotation() {\r
57         return annotation;\r
58     }\r
59 \r
60 \r
61     /**\r
62      * Sets the annotation value for this SeqSearchResult.\r
63      * \r
64      * @param annotation\r
65      */\r
66     public void setAnnotation(java.lang.String annotation) {\r
67         this.annotation = annotation;\r
68     }\r
69 \r
70 \r
71     /**\r
72      * Gets the features value for this SeqSearchResult.\r
73      * \r
74      * @return features\r
75      */\r
76     public java.lang.String getFeatures() {\r
77         return features;\r
78     }\r
79 \r
80 \r
81     /**\r
82      * Sets the features value for this SeqSearchResult.\r
83      * \r
84      * @param features\r
85      */\r
86     public void setFeatures(java.lang.String features) {\r
87         this.features = features;\r
88     }\r
89 \r
90 \r
91     /**\r
92      * Gets the newickTree value for this SeqSearchResult.\r
93      * \r
94      * @return newickTree\r
95      */\r
96     public java.lang.String getNewickTree() {\r
97         return newickTree;\r
98     }\r
99 \r
100 \r
101     /**\r
102      * Sets the newickTree value for this SeqSearchResult.\r
103      * \r
104      * @param newickTree\r
105      */\r
106     public void setNewickTree(java.lang.String newickTree) {\r
107         this.newickTree = newickTree;\r
108     }\r
109 \r
110     private java.lang.Object __equalsCalc = null;\r
111     public synchronized boolean equals(java.lang.Object obj) {\r
112         if (!(obj instanceof SeqSearchResult)) return false;\r
113         SeqSearchResult other = (SeqSearchResult) obj;\r
114         if (obj == null) return false;\r
115         if (this == obj) return true;\r
116         if (__equalsCalc != null) {\r
117             return (__equalsCalc == obj);\r
118         }\r
119         __equalsCalc = obj;\r
120         boolean _equals;\r
121         _equals = super.equals(obj) && \r
122             ((this.alignment==null && other.getAlignment()==null) || \r
123              (this.alignment!=null &&\r
124               this.alignment.equals(other.getAlignment()))) &&\r
125             ((this.annotation==null && other.getAnnotation()==null) || \r
126              (this.annotation!=null &&\r
127               this.annotation.equals(other.getAnnotation()))) &&\r
128             ((this.features==null && other.getFeatures()==null) || \r
129              (this.features!=null &&\r
130               this.features.equals(other.getFeatures()))) &&\r
131             ((this.newickTree==null && other.getNewickTree()==null) || \r
132              (this.newickTree!=null &&\r
133               this.newickTree.equals(other.getNewickTree())));\r
134         __equalsCalc = null;\r
135         return _equals;\r
136     }\r
137 \r
138     private boolean __hashCodeCalc = false;\r
139     public synchronized int hashCode() {\r
140         if (__hashCodeCalc) {\r
141             return 0;\r
142         }\r
143         __hashCodeCalc = true;\r
144         int _hashCode = super.hashCode();\r
145         if (getAlignment() != null) {\r
146             _hashCode += getAlignment().hashCode();\r
147         }\r
148         if (getAnnotation() != null) {\r
149             _hashCode += getAnnotation().hashCode();\r
150         }\r
151         if (getFeatures() != null) {\r
152             _hashCode += getFeatures().hashCode();\r
153         }\r
154         if (getNewickTree() != null) {\r
155             _hashCode += getNewickTree().hashCode();\r
156         }\r
157         __hashCodeCalc = false;\r
158         return _hashCode;\r
159     }\r
160 \r
161 }\r