[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Sat Jun 9 22:01:15 UTC 2007


gordonp
Sat Jun  9 18:01:15 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/services
In directory dev.open-bio.org:/tmp/cvs-serv5336/src/main/ca/ucalgary/seahawk/services

Modified Files:
	MobyComplexBuilder.java 
Log Message:
Change so namespace without ID can be constructed
moby-live/Java/src/main/ca/ucalgary/seahawk/services MobyComplexBuilder.java,1.7,1.8
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/services/MobyComplexBuilder.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/services/MobyComplexBuilder.java	2007/06/08 14:04:27	1.7
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/services/MobyComplexBuilder.java	2007/06/09 22:01:15	1.8
@@ -142,9 +142,8 @@
 					     MobyClient.WHITESPACE_ATTR_STRIP_FLANKING_VAL, 
 					     null, 
 					     data);
-
-		// A non-blank value was the result of the evaluation
-		if(result.length() > 0){
+		// A non-blank value was the result of the evaluation, or it's the only namespace we have
+		if(mobyNS.length == 1 || result.length() > 0){
 		    if(!haveID){
 			// A namespace that has a value
 			mobyObj.setPrimaryNamespace(mobyNS[i]);




More information about the MOBY-guts mailing list