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) 2005 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
27 package vamsas.objects.simple;
29 public class Alignment extends vamsas.objects.simple.Object implements java.io.Serializable {
30 private java.lang.String gapchar;
31 private java.lang.String[] method;
32 private vamsas.objects.simple.SequenceSet seqs;
38 java.lang.String gapchar,
39 java.lang.String[] method,
40 vamsas.objects.simple.SequenceSet seqs) {
41 this.gapchar = gapchar;
48 * Gets the gapchar value for this Alignment.
52 public java.lang.String getGapchar() {
58 * Sets the gapchar value for this Alignment.
62 public void setGapchar(java.lang.String gapchar) {
63 this.gapchar = gapchar;
68 * Gets the method value for this Alignment.
72 public java.lang.String[] getMethod() {
78 * Sets the method value for this Alignment.
82 public void setMethod(java.lang.String[] method) {
88 * Gets the seqs value for this Alignment.
92 public vamsas.objects.simple.SequenceSet getSeqs() {
98 * Sets the seqs value for this Alignment.
102 public void setSeqs(vamsas.objects.simple.SequenceSet seqs) {
106 private java.lang.Object __equalsCalc = null;
107 public synchronized boolean equals(java.lang.Object obj) {
108 if (!(obj instanceof Alignment)) return false;
109 Alignment other = (Alignment) obj;
110 if (obj == null) return false;
111 if (this == obj) return true;
112 if (__equalsCalc != null) {
113 return (__equalsCalc == obj);
117 _equals = super.equals(obj) &&
118 ((this.gapchar==null && other.getGapchar()==null) ||
119 (this.gapchar!=null &&
120 this.gapchar.equals(other.getGapchar()))) &&
121 ((this.method==null && other.getMethod()==null) ||
122 (this.method!=null &&
123 java.util.Arrays.equals(this.method, other.getMethod()))) &&
124 ((this.seqs==null && other.getSeqs()==null) ||
126 this.seqs.equals(other.getSeqs())));
131 private boolean __hashCodeCalc = false;
132 public synchronized int hashCode() {
133 if (__hashCodeCalc) {
136 __hashCodeCalc = true;
137 int _hashCode = super.hashCode();
138 if (getGapchar() != null) {
139 _hashCode += getGapchar().hashCode();
141 if (getMethod() != null) {
143 i<java.lang.reflect.Array.getLength(getMethod());
145 java.lang.Object obj = java.lang.reflect.Array.get(getMethod(), i);
147 !obj.getClass().isArray()) {
148 _hashCode += obj.hashCode();
152 if (getSeqs() != null) {
153 _hashCode += getSeqs().hashCode();
155 __hashCodeCalc = false;