4 * This file was auto-generated from WSDL
5 * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
8 package vamsas.objects.simple;
10 public class Alignment extends vamsas.objects.simple.Object implements java.io.Serializable {
11 private java.lang.String gapchar;
12 private java.lang.String[] method;
13 private vamsas.objects.simple.SequenceSet seqs;
14 private vamsas.objects.simple.Sequence[] seqsAsArray;
20 java.lang.String gapchar,
21 java.lang.String[] method,
22 vamsas.objects.simple.SequenceSet seqs,
23 vamsas.objects.simple.Sequence[] seqsAsArray) {
24 this.gapchar = gapchar;
27 this.seqsAsArray = seqsAsArray;
32 * Gets the gapchar value for this Alignment.
36 public java.lang.String getGapchar() {
42 * Sets the gapchar value for this Alignment.
46 public void setGapchar(java.lang.String gapchar) {
47 this.gapchar = gapchar;
52 * Gets the method value for this Alignment.
56 public java.lang.String[] getMethod() {
62 * Sets the method value for this Alignment.
66 public void setMethod(java.lang.String[] method) {
72 * Gets the seqs value for this Alignment.
76 public vamsas.objects.simple.SequenceSet getSeqs() {
82 * Sets the seqs value for this Alignment.
86 public void setSeqs(vamsas.objects.simple.SequenceSet seqs) {
92 * Gets the seqsAsArray value for this Alignment.
96 public vamsas.objects.simple.Sequence[] getSeqsAsArray() {
102 * Sets the seqsAsArray value for this Alignment.
106 public void setSeqsAsArray(vamsas.objects.simple.Sequence[] seqsAsArray) {
107 this.seqsAsArray = seqsAsArray;
110 private java.lang.Object __equalsCalc = null;
111 public synchronized boolean equals(java.lang.Object obj) {
112 if (!(obj instanceof Alignment)) return false;
113 Alignment other = (Alignment) obj;
114 if (obj == null) return false;
115 if (this == obj) return true;
116 if (__equalsCalc != null) {
117 return (__equalsCalc == obj);
121 _equals = super.equals(obj) &&
122 ((this.gapchar==null && other.getGapchar()==null) ||
123 (this.gapchar!=null &&
124 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) ||
130 this.seqs.equals(other.getSeqs()))) &&
131 ((this.seqsAsArray==null && other.getSeqsAsArray()==null) ||
132 (this.seqsAsArray!=null &&
133 java.util.Arrays.equals(this.seqsAsArray, other.getSeqsAsArray())));
138 private boolean __hashCodeCalc = false;
139 public synchronized int hashCode() {
140 if (__hashCodeCalc) {
143 __hashCodeCalc = true;
144 int _hashCode = super.hashCode();
145 if (getGapchar() != null) {
146 _hashCode += getGapchar().hashCode();
148 if (getMethod() != null) {
150 i<java.lang.reflect.Array.getLength(getMethod());
152 java.lang.Object obj = java.lang.reflect.Array.get(getMethod(), i);
154 !obj.getClass().isArray()) {
155 _hashCode += obj.hashCode();
159 if (getSeqs() != null) {
160 _hashCode += getSeqs().hashCode();
162 if (getSeqsAsArray() != null) {
164 i<java.lang.reflect.Array.getLength(getSeqsAsArray());
166 java.lang.Object obj = java.lang.reflect.Array.get(getSeqsAsArray(), i);
168 !obj.getClass().isArray()) {
169 _hashCode += obj.hashCode();
173 __hashCodeCalc = false;