[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Tue Jun 10 21:57:48 UTC 2008


gordonp
Tue Jun 10 17:57:47 EDT 2008
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/services
In directory dev.open-bio.org:/tmp/cvs-serv25081/src/main/ca/ucalgary/services

Modified Files:
	LegacyService.java 
Log Message:
Mechanism to incorporate new tranformation rules from URLs
moby-live/Java/src/main/ca/ucalgary/services LegacyService.java,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/services/LegacyService.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/services/LegacyService.java	2008/02/14 03:04:44	1.1
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/services/LegacyService.java	2008/06/10 21:57:47	1.2
@@ -50,6 +50,17 @@
 	String text = textClient.getText(mobyData, legacyFormatName);
 	return text == null ? null : text.getBytes(); //TODO: should we check the encoding?
     }
+    
+    /**
+     * Mechanism to incorporate new tranformation rules
+     */
+    protected void addLoweringMappingsFromURL(URL u) throws Exception{
+	textClient.addMappingsFromURL(u);
+    }
+
+    protected void addLiftingMappingsFromURL(URL u) throws Exception{
+	mobyClient.addMappingsFromURL(u);
+    }
 
     protected boolean canProduceDataTypeFromString(MobyDataType dataType){
 	return mobyClient.canProduceDataTypeFromString(dataType);
@@ -168,4 +179,4 @@
 
 	return service;
     }
-}
\ No newline at end of file
+}




More information about the MOBY-guts mailing list