-/**\r
- * CrossReference.java\r
- *\r
- * This file was auto-generated from WSDL\r
- * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.\r
+/*\r
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)\r
+ * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle\r
+ * \r
+ * This file is part of Jalview.\r
+ * \r
+ * Jalview is free software: you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License \r
+ * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\r
+ * \r
+ * Jalview is distributed in the hope that it will be useful, but \r
+ * WITHOUT ANY WARRANTY; without even the implied warranty \r
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR \r
+ * PURPOSE. See the GNU General Public License for more details.\r
+ * \r
+ * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.\r
*/\r
-\r
package uk.ac.ebi.picr.model;\r
\r
-public class CrossReference implements java.io.Serializable {\r
- private java.lang.String accession;\r
- private java.lang.String accessionVersion;\r
- private java.lang.String databaseDescription;\r
- private java.lang.String databaseName;\r
- private java.util.Calendar dateAdded;\r
- private java.util.Calendar dateDeleted;\r
- private boolean deleted;\r
- private java.lang.String gi;\r
- private java.lang.String taxonId;\r
-\r
- public CrossReference() {\r
- }\r
-\r
- public CrossReference(\r
- java.lang.String accession,\r
- java.lang.String accessionVersion,\r
- java.lang.String databaseDescription,\r
- java.lang.String databaseName,\r
- java.util.Calendar dateAdded,\r
- java.util.Calendar dateDeleted,\r
- boolean deleted,\r
- java.lang.String gi,\r
- java.lang.String taxonId) {\r
- this.accession = accession;\r
- this.accessionVersion = accessionVersion;\r
- this.databaseDescription = databaseDescription;\r
- this.databaseName = databaseName;\r
- this.dateAdded = dateAdded;\r
- this.dateDeleted = dateDeleted;\r
- this.deleted = deleted;\r
- this.gi = gi;\r
- this.taxonId = taxonId;\r
- }\r
-\r
-\r
- /**\r
- * Gets the accession value for this CrossReference.\r
- * \r
- * @return accession\r
- */\r
- public java.lang.String getAccession() {\r
- return accession;\r
- }\r
-\r
-\r
- /**\r
- * Sets the accession value for this CrossReference.\r
- * \r
- * @param accession\r
- */\r
- public void setAccession(java.lang.String accession) {\r
- this.accession = accession;\r
- }\r
-\r
-\r
- /**\r
- * Gets the accessionVersion value for this CrossReference.\r
- * \r
- * @return accessionVersion\r
- */\r
- public java.lang.String getAccessionVersion() {\r
- return accessionVersion;\r
- }\r
-\r
-\r
- /**\r
- * Sets the accessionVersion value for this CrossReference.\r
- * \r
- * @param accessionVersion\r
- */\r
- public void setAccessionVersion(java.lang.String accessionVersion) {\r
- this.accessionVersion = accessionVersion;\r
- }\r
-\r
-\r
- /**\r
- * Gets the databaseDescription value for this CrossReference.\r
- * \r
- * @return databaseDescription\r
- */\r
- public java.lang.String getDatabaseDescription() {\r
- return databaseDescription;\r
- }\r
-\r
-\r
- /**\r
- * Sets the databaseDescription value for this CrossReference.\r
- * \r
- * @param databaseDescription\r
- */\r
- public void setDatabaseDescription(java.lang.String databaseDescription) {\r
- this.databaseDescription = databaseDescription;\r
- }\r
-\r
-\r
- /**\r
- * Gets the databaseName value for this CrossReference.\r
- * \r
- * @return databaseName\r
- */\r
- public java.lang.String getDatabaseName() {\r
- return databaseName;\r
- }\r
-\r
-\r
- /**\r
- * Sets the databaseName value for this CrossReference.\r
- * \r
- * @param databaseName\r
- */\r
- public void setDatabaseName(java.lang.String databaseName) {\r
- this.databaseName = databaseName;\r
+public class CrossReference implements java.io.Serializable\r
+{\r
+ private java.lang.String accession;\r
+\r
+ private java.lang.String accessionVersion;\r
+\r
+ private java.lang.String databaseDescription;\r
+\r
+ private java.lang.String databaseName;\r
+\r
+ private java.util.Calendar dateAdded;\r
+\r
+ private java.util.Calendar dateDeleted;\r
+\r
+ private boolean deleted;\r
+\r
+ private java.lang.String gi;\r
+\r
+ private java.lang.String taxonId;\r
+\r
+ public CrossReference()\r
+ {\r
+ }\r
+\r
+ public CrossReference(java.lang.String accession,\r
+ java.lang.String accessionVersion,\r
+ java.lang.String databaseDescription,\r
+ java.lang.String databaseName, java.util.Calendar dateAdded,\r
+ java.util.Calendar dateDeleted, boolean deleted,\r
+ java.lang.String gi, java.lang.String taxonId)\r
+ {\r
+ this.accession = accession;\r
+ this.accessionVersion = accessionVersion;\r
+ this.databaseDescription = databaseDescription;\r
+ this.databaseName = databaseName;\r
+ this.dateAdded = dateAdded;\r
+ this.dateDeleted = dateDeleted;\r
+ this.deleted = deleted;\r
+ this.gi = gi;\r
+ this.taxonId = taxonId;\r
+ }\r
+\r
+ /**\r
+ * Gets the accession value for this CrossReference.\r
+ * \r
+ * @return accession\r
+ */\r
+ public java.lang.String getAccession()\r
+ {\r
+ return accession;\r
+ }\r
+\r
+ /**\r
+ * Sets the accession value for this CrossReference.\r
+ * \r
+ * @param accession\r
+ */\r
+ public void setAccession(java.lang.String accession)\r
+ {\r
+ this.accession = accession;\r
+ }\r
+\r
+ /**\r
+ * Gets the accessionVersion value for this CrossReference.\r
+ * \r
+ * @return accessionVersion\r
+ */\r
+ public java.lang.String getAccessionVersion()\r
+ {\r
+ return accessionVersion;\r
+ }\r
+\r
+ /**\r
+ * Sets the accessionVersion value for this CrossReference.\r
+ * \r
+ * @param accessionVersion\r
+ */\r
+ public void setAccessionVersion(java.lang.String accessionVersion)\r
+ {\r
+ this.accessionVersion = accessionVersion;\r
+ }\r
+\r
+ /**\r
+ * Gets the databaseDescription value for this CrossReference.\r
+ * \r
+ * @return databaseDescription\r
+ */\r
+ public java.lang.String getDatabaseDescription()\r
+ {\r
+ return databaseDescription;\r
+ }\r
+\r
+ /**\r
+ * Sets the databaseDescription value for this CrossReference.\r
+ * \r
+ * @param databaseDescription\r
+ */\r
+ public void setDatabaseDescription(java.lang.String databaseDescription)\r
+ {\r
+ this.databaseDescription = databaseDescription;\r
+ }\r
+\r
+ /**\r
+ * Gets the databaseName value for this CrossReference.\r
+ * \r
+ * @return databaseName\r
+ */\r
+ public java.lang.String getDatabaseName()\r
+ {\r
+ return databaseName;\r
+ }\r
+\r
+ /**\r
+ * Sets the databaseName value for this CrossReference.\r
+ * \r
+ * @param databaseName\r
+ */\r
+ public void setDatabaseName(java.lang.String databaseName)\r
+ {\r
+ this.databaseName = databaseName;\r
+ }\r
+\r
+ /**\r
+ * Gets the dateAdded value for this CrossReference.\r
+ * \r
+ * @return dateAdded\r
+ */\r
+ public java.util.Calendar getDateAdded()\r
+ {\r
+ return dateAdded;\r
+ }\r
+\r
+ /**\r
+ * Sets the dateAdded value for this CrossReference.\r
+ * \r
+ * @param dateAdded\r
+ */\r
+ public void setDateAdded(java.util.Calendar dateAdded)\r
+ {\r
+ this.dateAdded = dateAdded;\r
+ }\r
+\r
+ /**\r
+ * Gets the dateDeleted value for this CrossReference.\r
+ * \r
+ * @return dateDeleted\r
+ */\r
+ public java.util.Calendar getDateDeleted()\r
+ {\r
+ return dateDeleted;\r
+ }\r
+\r
+ /**\r
+ * Sets the dateDeleted value for this CrossReference.\r
+ * \r
+ * @param dateDeleted\r
+ */\r
+ public void setDateDeleted(java.util.Calendar dateDeleted)\r
+ {\r
+ this.dateDeleted = dateDeleted;\r
+ }\r
+\r
+ /**\r
+ * Gets the deleted value for this CrossReference.\r
+ * \r
+ * @return deleted\r
+ */\r
+ public boolean isDeleted()\r
+ {\r
+ return deleted;\r
+ }\r
+\r
+ /**\r
+ * Sets the deleted value for this CrossReference.\r
+ * \r
+ * @param deleted\r
+ */\r
+ public void setDeleted(boolean deleted)\r
+ {\r
+ this.deleted = deleted;\r
+ }\r
+\r
+ /**\r
+ * Gets the gi value for this CrossReference.\r
+ * \r
+ * @return gi\r
+ */\r
+ public java.lang.String getGi()\r
+ {\r
+ return gi;\r
+ }\r
+\r
+ /**\r
+ * Sets the gi value for this CrossReference.\r
+ * \r
+ * @param gi\r
+ */\r
+ public void setGi(java.lang.String gi)\r
+ {\r
+ this.gi = gi;\r
+ }\r
+\r
+ /**\r
+ * Gets the taxonId value for this CrossReference.\r
+ * \r
+ * @return taxonId\r
+ */\r
+ public java.lang.String getTaxonId()\r
+ {\r
+ return taxonId;\r
+ }\r
+\r
+ /**\r
+ * Sets the taxonId value for this CrossReference.\r
+ * \r
+ * @param taxonId\r
+ */\r
+ public void setTaxonId(java.lang.String taxonId)\r
+ {\r
+ this.taxonId = taxonId;\r
+ }\r
+\r
+ private java.lang.Object __equalsCalc = null;\r
+\r
+ public synchronized boolean equals(java.lang.Object obj)\r
+ {\r
+ if (!(obj instanceof CrossReference))\r
+ return false;\r
+ CrossReference other = (CrossReference) obj;\r
+ if (obj == null)\r
+ return false;\r
+ if (this == obj)\r
+ return true;\r
+ if (__equalsCalc != null)\r
+ {\r
+ return (__equalsCalc == obj);\r
}\r
-\r
-\r
- /**\r
- * Gets the dateAdded value for this CrossReference.\r
- * \r
- * @return dateAdded\r
- */\r
- public java.util.Calendar getDateAdded() {\r
- return dateAdded;\r
+ __equalsCalc = obj;\r
+ boolean _equals;\r
+ _equals = true\r
+ && ((this.accession == null && other.getAccession() == null) || (this.accession != null && this.accession\r
+ .equals(other.getAccession())))\r
+ && ((this.accessionVersion == null && other\r
+ .getAccessionVersion() == null) || (this.accessionVersion != null && this.accessionVersion\r
+ .equals(other.getAccessionVersion())))\r
+ && ((this.databaseDescription == null && other\r
+ .getDatabaseDescription() == null) || (this.databaseDescription != null && this.databaseDescription\r
+ .equals(other.getDatabaseDescription())))\r
+ && ((this.databaseName == null && other.getDatabaseName() == null) || (this.databaseName != null && this.databaseName\r
+ .equals(other.getDatabaseName())))\r
+ && ((this.dateAdded == null && other.getDateAdded() == null) || (this.dateAdded != null && this.dateAdded\r
+ .equals(other.getDateAdded())))\r
+ && ((this.dateDeleted == null && other.getDateDeleted() == null) || (this.dateDeleted != null && this.dateDeleted\r
+ .equals(other.getDateDeleted())))\r
+ && this.deleted == other.isDeleted()\r
+ && ((this.gi == null && other.getGi() == null) || (this.gi != null && this.gi\r
+ .equals(other.getGi())))\r
+ && ((this.taxonId == null && other.getTaxonId() == null) || (this.taxonId != null && this.taxonId\r
+ .equals(other.getTaxonId())));\r
+ __equalsCalc = null;\r
+ return _equals;\r
+ }\r
+\r
+ private boolean __hashCodeCalc = false;\r
+\r
+ public synchronized int hashCode()\r
+ {\r
+ if (__hashCodeCalc)\r
+ {\r
+ return 0;\r
}\r
-\r
-\r
- /**\r
- * Sets the dateAdded value for this CrossReference.\r
- * \r
- * @param dateAdded\r
- */\r
- public void setDateAdded(java.util.Calendar dateAdded) {\r
- this.dateAdded = dateAdded;\r
- }\r
-\r
-\r
- /**\r
- * Gets the dateDeleted value for this CrossReference.\r
- * \r
- * @return dateDeleted\r
- */\r
- public java.util.Calendar getDateDeleted() {\r
- return dateDeleted;\r
- }\r
-\r
-\r
- /**\r
- * Sets the dateDeleted value for this CrossReference.\r
- * \r
- * @param dateDeleted\r
- */\r
- public void setDateDeleted(java.util.Calendar dateDeleted) {\r
- this.dateDeleted = dateDeleted;\r
- }\r
-\r
-\r
- /**\r
- * Gets the deleted value for this CrossReference.\r
- * \r
- * @return deleted\r
- */\r
- public boolean isDeleted() {\r
- return deleted;\r
+ __hashCodeCalc = true;\r
+ int _hashCode = 1;\r
+ if (getAccession() != null)\r
+ {\r
+ _hashCode += getAccession().hashCode();\r
}\r
-\r
-\r
- /**\r
- * Sets the deleted value for this CrossReference.\r
- * \r
- * @param deleted\r
- */\r
- public void setDeleted(boolean deleted) {\r
- this.deleted = deleted;\r
+ if (getAccessionVersion() != null)\r
+ {\r
+ _hashCode += getAccessionVersion().hashCode();\r
}\r
-\r
-\r
- /**\r
- * Gets the gi value for this CrossReference.\r
- * \r
- * @return gi\r
- */\r
- public java.lang.String getGi() {\r
- return gi;\r
+ if (getDatabaseDescription() != null)\r
+ {\r
+ _hashCode += getDatabaseDescription().hashCode();\r
}\r
-\r
-\r
- /**\r
- * Sets the gi value for this CrossReference.\r
- * \r
- * @param gi\r
- */\r
- public void setGi(java.lang.String gi) {\r
- this.gi = gi;\r
+ if (getDatabaseName() != null)\r
+ {\r
+ _hashCode += getDatabaseName().hashCode();\r
}\r
-\r
-\r
- /**\r
- * Gets the taxonId value for this CrossReference.\r
- * \r
- * @return taxonId\r
- */\r
- public java.lang.String getTaxonId() {\r
- return taxonId;\r
+ if (getDateAdded() != null)\r
+ {\r
+ _hashCode += getDateAdded().hashCode();\r
}\r
-\r
-\r
- /**\r
- * Sets the taxonId value for this CrossReference.\r
- * \r
- * @param taxonId\r
- */\r
- public void setTaxonId(java.lang.String taxonId) {\r
- this.taxonId = taxonId;\r
+ if (getDateDeleted() != null)\r
+ {\r
+ _hashCode += getDateDeleted().hashCode();\r
}\r
-\r
- private java.lang.Object __equalsCalc = null;\r
- public synchronized boolean equals(java.lang.Object obj) {\r
- if (!(obj instanceof CrossReference)) return false;\r
- CrossReference other = (CrossReference) obj;\r
- if (obj == null) return false;\r
- if (this == obj) return true;\r
- if (__equalsCalc != null) {\r
- return (__equalsCalc == obj);\r
- }\r
- __equalsCalc = obj;\r
- boolean _equals;\r
- _equals = true && \r
- ((this.accession==null && other.getAccession()==null) || \r
- (this.accession!=null &&\r
- this.accession.equals(other.getAccession()))) &&\r
- ((this.accessionVersion==null && other.getAccessionVersion()==null) || \r
- (this.accessionVersion!=null &&\r
- this.accessionVersion.equals(other.getAccessionVersion()))) &&\r
- ((this.databaseDescription==null && other.getDatabaseDescription()==null) || \r
- (this.databaseDescription!=null &&\r
- this.databaseDescription.equals(other.getDatabaseDescription()))) &&\r
- ((this.databaseName==null && other.getDatabaseName()==null) || \r
- (this.databaseName!=null &&\r
- this.databaseName.equals(other.getDatabaseName()))) &&\r
- ((this.dateAdded==null && other.getDateAdded()==null) || \r
- (this.dateAdded!=null &&\r
- this.dateAdded.equals(other.getDateAdded()))) &&\r
- ((this.dateDeleted==null && other.getDateDeleted()==null) || \r
- (this.dateDeleted!=null &&\r
- this.dateDeleted.equals(other.getDateDeleted()))) &&\r
- this.deleted == other.isDeleted() &&\r
- ((this.gi==null && other.getGi()==null) || \r
- (this.gi!=null &&\r
- this.gi.equals(other.getGi()))) &&\r
- ((this.taxonId==null && other.getTaxonId()==null) || \r
- (this.taxonId!=null &&\r
- this.taxonId.equals(other.getTaxonId())));\r
- __equalsCalc = null;\r
- return _equals;\r
+ _hashCode += (isDeleted() ? Boolean.TRUE : Boolean.FALSE).hashCode();\r
+ if (getGi() != null)\r
+ {\r
+ _hashCode += getGi().hashCode();\r
}\r
-\r
- private boolean __hashCodeCalc = false;\r
- public synchronized int hashCode() {\r
- if (__hashCodeCalc) {\r
- return 0;\r
- }\r
- __hashCodeCalc = true;\r
- int _hashCode = 1;\r
- if (getAccession() != null) {\r
- _hashCode += getAccession().hashCode();\r
- }\r
- if (getAccessionVersion() != null) {\r
- _hashCode += getAccessionVersion().hashCode();\r
- }\r
- if (getDatabaseDescription() != null) {\r
- _hashCode += getDatabaseDescription().hashCode();\r
- }\r
- if (getDatabaseName() != null) {\r
- _hashCode += getDatabaseName().hashCode();\r
- }\r
- if (getDateAdded() != null) {\r
- _hashCode += getDateAdded().hashCode();\r
- }\r
- if (getDateDeleted() != null) {\r
- _hashCode += getDateDeleted().hashCode();\r
- }\r
- _hashCode += (isDeleted() ? Boolean.TRUE : Boolean.FALSE).hashCode();\r
- if (getGi() != null) {\r
- _hashCode += getGi().hashCode();\r
- }\r
- if (getTaxonId() != null) {\r
- _hashCode += getTaxonId().hashCode();\r
- }\r
- __hashCodeCalc = false;\r
- return _hashCode;\r
+ if (getTaxonId() != null)\r
+ {\r
+ _hashCode += getTaxonId().hashCode();\r
}\r
+ __hashCodeCalc = false;\r
+ return _hashCode;\r
+ }\r
\r
}\r