[MOBY-guts] biomoby commit

Paul Gordon gordonp at pub.open-bio.org
Tue Apr 19 15:01:34 UTC 2005


gordonp
Tue Apr 19 11:01:33 EDT 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory pub.open-bio.org:/tmp/cvs-serv16139/src/main/org/biomoby/shared

Modified Files:
	MobyDataSimpleInstance.java 
Log Message:
Removed redundant toXML portion that cvan be handled by the super class

moby-live/Java/src/main/org/biomoby/shared MobyDataSimpleInstance.java,1.8,1.9
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataSimpleInstance.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataSimpleInstance.java	2005/04/15 21:34:40	1.8
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataSimpleInstance.java	2005/04/19 15:01:33	1.9
@@ -300,14 +300,7 @@
 		 MobyPrefixResolver.MOBY_XML_NAMESPACE+"\" moby:articleName=\"" + getName() : "")+
 		"\">" + dataValue + "</Simple>";
 	else{
-	    MobyNamespace[] ns = getNamespaces();
-	    String result = "<Simple xmlns=\""+MobyPrefixResolver.MOBY_XML_NAMESPACE+"\">\n<objectType>" +
-		getDataType().getName() + "</objectType>\n";
-	    for(int i = 0; ns != null && i < ns.length; i++){
-		result += "<Namespace>" + ns[i].getName() + "</Namespace>\n";
-	    }
-	    result += "</Simple>";
-	    return result;
+	    return super.toXML();
 	}
     }
 }




More information about the MOBY-guts mailing list