[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Sat Dec 1 01:26:10 UTC 2007


gordonp
Fri Nov 30 20:26:10 EST 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data
In directory dev.open-bio.org:/tmp/cvs-serv3752/src/main/org/biomoby/shared/data

Modified Files:
	MobyDataComposite.java MobyDataObjectVector.java 
Log Message:
Added missing registry param to vector instantiation
moby-live/Java/src/main/org/biomoby/shared/data MobyDataComposite.java,1.20,1.21 MobyDataObjectVector.java,1.3,1.4
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataComposite.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataComposite.java	2007/11/30 17:23:16	1.20
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataComposite.java	2007/12/01 01:26:09	1.21
@@ -468,7 +468,7 @@
 	    if(relationshipType == Central.iHAS){		
 
 		// If we got here, there was a previous single value, and the field should be a list
-		MobyDataObjectVector HASList = new MobyDataObjectVector("");
+		MobyDataObjectVector HASList = new MobyDataObjectVector("", getDataType().getRegistry());
 		// Replaces old single value
 		members.put(fieldName, HASList);
 		HASList.add(existingMember);

===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataObjectVector.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataObjectVector.java	2007/06/26 21:25:04	1.3
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataObjectVector.java	2007/12/01 01:26:10	1.4
@@ -3,6 +3,7 @@
 
 import java.util.*;
 
+import org.biomoby.registry.meta.Registry;
 import org.biomoby.shared.Central;
 import org.biomoby.shared.MobyDataType;
 import org.biomoby.shared.MobyException;
@@ -24,11 +25,19 @@
      * Builds a vector with an initial capacity of 5.
      */
     public MobyDataObjectVector(String name){
-	this(name, 5);
+	this(name, null);
+    }
+
+    public MobyDataObjectVector(String name, Registry registry){
+	this(name, 5, registry);
     }
 
     public MobyDataObjectVector(String name, int initialCapacity){
-	super(name);
+      this(name, initialCapacity, null);
+    }
+
+    public MobyDataObjectVector(String name, int initialCapacity, Registry registry){
+	super(name, registry);
 	members = new Vector<MobyDataObject>(initialCapacity);
     }
 



More information about the MOBY-guts mailing list