[MOBY-guts] biomoby commit

Paul Gordon gordonp at pub.open-bio.org
Tue Apr 19 17:40:10 UTC 2005


gordonp
Tue Apr 19 13:40:10 EDT 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory pub.open-bio.org:/tmp/cvs-serv17120

Modified Files:
	MobyDataDateTime.java 
Log Message:
Updated toXML method to get proper ISO8601 format in service XML mode, and use default central toXML of superclass

moby-live/Java/src/main/org/biomoby/shared MobyDataDateTime.java,1.4,1.5
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataDateTime.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataDateTime.java	2005/04/15 21:34:40	1.4
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataDateTime.java	2005/04/19 17:40:10	1.5
@@ -280,16 +280,10 @@
 		 "\" moby:id=\"" + (getId() != null ? getId() : "") + "\" " +
 		(getName() != null ? " xmlns:moby=\""+
 		 MobyPrefixResolver.MOBY_XML_NAMESPACE+"\" moby:articleName=\"" + getName() : "")+
-		"\">" + value + "</moby:DateTime>";
+		"\">" + toString() + "</moby:DateTime>";
 		 }
 	else{
-	    String result = "<Simple xmlns=\""+MobyPrefixResolver.MOBY_XML_NAMESPACE+
-		"\">\n<objectType>DateTime</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