[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Tue Jun 26 21:25:04 UTC 2007


gordonp
Tue Jun 26 17:25:04 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data
In directory dev.open-bio.org:/tmp/cvs-serv23882/src/main/org/biomoby/shared/data

Modified Files:
	MobyDataObjectVector.java 
Log Message:
Added properly service-mode serialization
moby-live/Java/src/main/org/biomoby/shared/data MobyDataObjectVector.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataObjectVector.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataObjectVector.java	2007/02/08 16:59:58	1.2
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataObjectVector.java	2007/06/26 21:25:04	1.3
@@ -38,7 +38,19 @@
 	StringBuffer concatXML = new StringBuffer();
 	Iterator<MobyDataObject> iter = members.iterator();
 	while(iter.hasNext()){
-	    concatXML.append(iter.next().toXML());
+	    MobyDataObject mdsi = iter.next();
+	    if(!getName().equals(mdsi.getName())){
+		mdsi.setName(getName());
+	    }
+
+	    int oldXmlMode = mdsi.getXmlMode();
+	    if(oldXmlMode != xmlMode){
+		mdsi.setXmlMode(xmlMode);
+	    }
+	    concatXML.append(mdsi.toXML()+"\n");
+	    if(oldXmlMode != xmlMode){
+		mdsi.setXmlMode(oldXmlMode);
+	    }
 	}
 	return concatXML.toString();
     }




More information about the MOBY-guts mailing list