[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Fri Mar 26 18:08:19 UTC 2010


gordonp
Fri Mar 26 14:08:18 EDT 2010
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory dev.open-bio.org:/tmp/cvs-serv2967/src/main/org/biomoby/shared

Modified Files:
	MobyDataType.java 
Log Message:
Fixed registry association with objects returned by getDataType method (was always null)
moby-live/Java/src/main/org/biomoby/shared MobyDataType.java,1.26,1.27
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataType.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataType.java	2008/10/30 02:33:25	1.26
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataType.java	2010/03/26 18:08:18	1.27
@@ -116,6 +116,9 @@
 		}
 		try{
 		    datatypes = central.getDataTypes();
+		    for(MobyDataType type: datatypes){
+			type.setRegistry(reg); // isn't set properly by the parser called above
+		    }
 		    datatypesMapByURL.put(reg == null ? "" : reg.getEndpoint(), datatypes);
 		}
 		catch(Exception e){
@@ -369,7 +372,7 @@
      * Searches the ontology lineage of the current data type against the data type corresponding to the provided name.
      */
     public boolean inheritsFrom(String otherTypeName){
-	return inheritsFrom(getDataType(otherTypeName));
+	return inheritsFrom(getDataType(otherTypeName, getRegistry()));
     }
 
     /**




More information about the MOBY-guts mailing list