[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Tue Jun 19 18:05:35 UTC 2007


gordonp
Tue Jun 19 14:05:35 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data
In directory dev.open-bio.org:/tmp/cvs-serv15832/src/main/org/biomoby/shared/data

Modified Files:
	MobyDataObject.java 
Log Message:
Fixed CRIB block to deal with Object tags (not just XRefs) properly
moby-live/Java/src/main/org/biomoby/shared/data MobyDataObject.java,1.16,1.17
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataObject.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataObject.java	2007/06/07 23:58:15	1.16
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataObject.java	2007/06/19 18:05:35	1.17
@@ -603,8 +603,11 @@
 		crib.append(obj.toXML()+"\n");
 		((MobyDataXref) obj).setXmlMode(MobyDataXref.CRIB_XML_MODE_OFF);
 	    }
-	    else{
+	    else if(obj instanceof MobyDataObject){
+		int oldXMLMode = ((MobyDataObject) obj).getXmlMode();
+		((MobyDataObject) obj).setXmlMode(xmlMode);
 		crib.append(obj.toXML()+"\n");
+		((MobyDataObject) obj).setXmlMode(oldXMLMode);
 	    }
 	}
 	crib.append("</"+MobyTags.CROSSREFERENCE+">\n");




More information about the MOBY-guts mailing list