[MOBY-guts] biomoby commit
Andreas Groscurth
groscurt at dev.open-bio.org
Fri Aug 24 09:35:36 UTC 2007
groscurt
Fri Aug 24 05:35:27 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory dev.open-bio.org:/tmp/cvs-serv29724/src/main/org/biomoby/shared
Modified Files:
MobyDataType.java MobyNamespace.java MobyService.java
MobyServiceType.java
Log Message:
Template configuration file for the moby synchronization
moby-live/Java/src/main/org/biomoby/shared MobyDataType.java,1.18,1.19 MobyNamespace.java,1.10,1.11 MobyService.java,1.19,1.20 MobyServiceType.java,1.10,1.11
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataType.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataType.java 2007/06/09 21:58:26 1.18
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataType.java 2007/08/24 09:35:27 1.19
@@ -29,7 +29,7 @@
* @version $Id$
*/
-public class MobyDataType implements Comparable {
+public class MobyDataType implements Comparable<MobyDataType>, LSIDAccessible {
/**
* A dummy name used for MobyDataType instances that do not have
@@ -37,8 +37,8 @@
*/
static public final String DUMMY_NAME = "_dummy_";
- public int compareTo (Object obj) {
- return name.compareToIgnoreCase ( ((MobyDataType)obj).getName() );
+ public int compareTo (MobyDataType obj) {
+ return name.compareToIgnoreCase ( obj.getName() );
}
public boolean equals (Object obj) {
return name.equals ( ((MobyDataType)obj).getName() );
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyNamespace.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyNamespace.java 2007/06/16 00:25:08 1.10
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyNamespace.java 2007/08/24 09:35:27 1.11
@@ -27,7 +27,7 @@
* @version $Id$
*/
-public class MobyNamespace implements Comparable{
+public class MobyNamespace implements Comparable<MobyNamespace>, LSIDAccessible {
protected String name;
protected String authority = "";
@@ -199,8 +199,8 @@
return Utils.format (this, indent);
}
- public int compareTo (Object obj) {
- return name.compareToIgnoreCase ( ((MobyNamespace)obj).getName() );
+ public int compareTo (MobyNamespace obj) {
+ return name.compareToIgnoreCase ( obj.getName() );
}
public boolean equals(Object o){
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyService.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyService.java 2007/06/08 14:04:27 1.19
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyService.java 2007/08/24 09:35:27 1.20
@@ -25,7 +25,7 @@
*/
public class MobyService
- implements Comparable {
+ implements Comparable<MobyService>, LSIDAccessible {
/**
* A dummy name used for MobyService instances that do not have
@@ -86,8 +86,8 @@
/**************************************************************************
* Implementing Comparable interface.
*************************************************************************/
- public int compareTo (Object obj) {
- return getUniqueName().compareToIgnoreCase ( ((MobyService)obj).getUniqueName() );
+ public int compareTo (MobyService obj) {
+ return getUniqueName().compareToIgnoreCase ( obj.getUniqueName() );
}
public boolean equals (Object obj) {
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyServiceType.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyServiceType.java 2007/06/09 21:58:26 1.10
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyServiceType.java 2007/08/24 09:35:27 1.11
@@ -28,7 +28,7 @@
*/
public class MobyServiceType
- implements Comparable {
+ implements Comparable<MobyServiceType>, LSIDAccessible {
protected String name;
protected String description = "";
@@ -42,8 +42,8 @@
private static Map<String,MobyServiceType[]> servicetypesMapBySynonym = new HashMap<String,MobyServiceType[]>();
private static Map<URL,MobyServiceType[]> servicetypesMapByURL = new HashMap<URL,MobyServiceType[]>();
- public int compareTo (Object obj) {
- return name.compareToIgnoreCase ( ((MobyServiceType)obj).getName() );
+ public int compareTo (MobyServiceType obj) {
+ return name.compareToIgnoreCase ( obj.getName() );
}
public boolean equals (Object obj) {
return name.equals ( ((MobyServiceType)obj).getName() );
More information about the MOBY-guts
mailing list