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
9 * Jalview - A Sequence Alignment Editor and Viewer
\r
10 * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
12 * This program is free software; you can redistribute it and/or
\r
13 * modify it under the terms of the GNU General Public License
\r
14 * as published by the Free Software Foundation; either version 2
\r
15 * of the License, or (at your option) any later version.
\r
17 * This program is distributed in the hope that it will be useful,
\r
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
20 * GNU General Public License for more details.
\r
22 * You should have received a copy of the GNU General Public License
\r
23 * along with this program; if not, write to the Free Software
\r
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
26 package vamsas.objects.simple;
\r
28 public class Alignment extends vamsas.objects.simple.Object
\r
29 implements java.io.Serializable {
\r
30 private java.lang.String gapchar;
\r
31 private java.lang.String[] method;
\r
32 private vamsas.objects.simple.SequenceSet seqs;
\r
33 private java.lang.Object __equalsCalc = null;
\r
34 private boolean __hashCodeCalc = false;
\r
36 public Alignment() {
\r
39 public Alignment(java.lang.String gapchar, java.lang.String[] method,
\r
40 vamsas.objects.simple.SequenceSet seqs) {
\r
41 this.gapchar = gapchar;
\r
42 this.method = method;
\r
47 * Gets the gapchar value for this Alignment.
\r
51 public java.lang.String getGapchar() {
\r
56 * Sets the gapchar value for this Alignment.
\r
60 public void setGapchar(java.lang.String gapchar) {
\r
61 this.gapchar = gapchar;
\r
65 * Gets the method value for this Alignment.
\r
69 public java.lang.String[] getMethod() {
\r
74 * Sets the method value for this Alignment.
\r
78 public void setMethod(java.lang.String[] method) {
\r
79 this.method = method;
\r
83 * Gets the seqs value for this Alignment.
\r
87 public vamsas.objects.simple.SequenceSet getSeqs() {
\r
92 * Sets the seqs value for this Alignment.
\r
96 public void setSeqs(vamsas.objects.simple.SequenceSet seqs) {
\r
100 public synchronized boolean equals(java.lang.Object obj) {
\r
101 if (!(obj instanceof Alignment)) {
\r
105 Alignment other = (Alignment) obj;
\r
115 if (__equalsCalc != null) {
\r
116 return (__equalsCalc == obj);
\r
119 __equalsCalc = obj;
\r
122 _equals = super.equals(obj) &&
\r
123 (((this.gapchar == null) && (other.getGapchar() == null)) ||
\r
124 ((this.gapchar != null) && this.gapchar.equals(other.getGapchar()))) &&
\r
125 (((this.method == null) && (other.getMethod() == null)) ||
\r
126 ((this.method != null) &&
\r
127 java.util.Arrays.equals(this.method, other.getMethod()))) &&
\r
128 (((this.seqs == null) && (other.getSeqs() == null)) ||
\r
129 ((this.seqs != null) && this.seqs.equals(other.getSeqs())));
\r
130 __equalsCalc = null;
\r
135 public synchronized int hashCode() {
\r
136 if (__hashCodeCalc) {
\r
140 __hashCodeCalc = true;
\r
142 int _hashCode = super.hashCode();
\r
144 if (getGapchar() != null) {
\r
145 _hashCode += getGapchar().hashCode();
\r
148 if (getMethod() != null) {
\r
149 for (int i = 0; i < java.lang.reflect.Array.getLength(getMethod());
\r
151 java.lang.Object obj = java.lang.reflect.Array.get(getMethod(),
\r
154 if ((obj != null) && !obj.getClass().isArray()) {
\r
155 _hashCode += obj.hashCode();
\r
160 if (getSeqs() != null) {
\r
161 _hashCode += getSeqs().hashCode();
\r
164 __hashCodeCalc = false;
\r