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