*/
package org.biojava.dasobert.dasregistry;
-/** a Bean to be returned via SOAP. It takes care of the DAS - coordinate Systems
+/**
+ * a Bean to be returned via SOAP. It takes care of the DAS - coordinate Systems
+ *
* @author Andreas Prlic
*/
public class DasCoordinateSystem
{
String name;
+
String category;
+
String organism_name;
+
int ncbi_tax_id;
+
String uniqueId;
+
String version;
+
String testCode;
public DasCoordinateSystem()
public boolean equals(DasCoordinateSystem other)
{
boolean match = true;
- System.out.println("comparing " + this.toString() + " to " + other.toString());
+ System.out.println("comparing " + this.toString() + " to "
+ + other.toString());
// URI has piority
- if ( (!uniqueId.equals("")) && (uniqueId.equals(other.getUniqueId())))
+ if ((!uniqueId.equals("")) && (uniqueId.equals(other.getUniqueId())))
{
return true;
}
if (ncbi_tax_id != other.getNCBITaxId())
{
- System.out.println("mismatch in ncbi tax id " + ncbi_tax_id + " != " +
- other.getNCBITaxId());
+ System.out.println("mismatch in ncbi tax id " + ncbi_tax_id + " != "
+ + other.getNCBITaxId());
match = false;
}
if (!version.equals(other.getVersion()))
return match;
}
-
- public int hashCode() {
- int h = 7;
-
- h = 31 * h + ( null == name ? 0 : name.hashCode());
- h = 31 * h + ( null == category ? 0 : category.hashCode());
-
- return h;
- }
+
+ public int hashCode()
+ {
+ int h = 7;
+
+ h = 31 * h + (null == name ? 0 : name.hashCode());
+ h = 31 * h + (null == category ? 0 : category.hashCode());
+
+ return h;
+ }
public Object clone()
{