[MOBY-guts] biomoby commit
Paul Gordon
gordonp at pub.open-bio.org
Tue Apr 19 17:44:48 UTC 2005
gordonp
Tue Apr 19 13:44:48 EDT 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory pub.open-bio.org:/tmp/cvs-serv17153
Modified Files:
MobyDataString.java
Log Message:
Updated toXML method to use superclass implementation of central XML mode
moby-live/Java/src/main/org/biomoby/shared MobyDataString.java,1.4,1.5
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataString.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/MobyDataString.java 2005/04/15 21:34:40 1.4
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataString.java 2005/04/19 17:44:48 1.5
@@ -76,14 +76,9 @@
MobyPrefixResolver.MOBY_XML_NAMESPACE+"\" moby:articleName=\"" + getName() : "")+
"\">" + tmpValue + "</moby:String>";
}
+ // Central mode, use default toXML provided by superclasses
else{
- String result = "<Simple xmlns=\""+MobyPrefixResolver.MOBY_XML_NAMESPACE+
- "\">\n<objectType>String</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