[MOBY-guts] biomoby commit

Paul Gordon gordonp at pub.open-bio.org
Mon Aug 15 17:41:41 UTC 2005


gordonp
Mon Aug 15 13:41:41 EDT 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data
In directory pub.open-bio.org:/tmp/cvs-serv6436/main/org/biomoby/shared/data

Modified Files:
	MobyDataComposite.java MobyDataInstance.java 
	MobyDataSecondaryInstance.java 
Log Message:
Forgot to add these last time, to make all underlying Java data objects accessible in org.biomoby.shared.data

moby-live/Java/src/main/org/biomoby/shared/data MobyDataComposite.java,1.3,1.4 MobyDataInstance.java,1.1,1.2 MobyDataSecondaryInstance.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.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataComposite.java	2005/07/22 05:11:54	1.3
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataComposite.java	2005/08/15 17:41:41	1.4
@@ -146,7 +146,14 @@
 	    return instanceXML.toString();
 	}
     }
-    
+  
+    /**
+     * @return HashMap of member names to MobyDataObjects
+     */
+    public Object getObject(){
+	return members;
+    }
+  
     // Below, to the end of the class file, are the methods that must be 
     // implemented to satisfy the ConcurrentMap interface
 

===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataInstance.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataInstance.java	2005/05/12 04:59:49	1.1
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataInstance.java	2005/08/15 17:41:41	1.2
@@ -30,4 +30,10 @@
      */
     public int getXmlMode();
 
+    /**
+     * Each implementer will return the underlying Java object used to store the MOBY value.
+     * For example, MOBY Floats are stored internally as BigDecimal objects.
+     */
+    public Object getObject();
+
 }

===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataSecondaryInstance.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/MobyDataSecondaryInstance.java	2005/07/22 05:11:54	1.3
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataSecondaryInstance.java	2005/08/15 17:41:41	1.4
@@ -66,6 +66,13 @@
 	setValue(MobyDataObject.getTextContents((Element) values.item(0)));
     }
 
+    /**
+     * For now, all secondary parameters are treated as strings.
+     */
+    public Object getObject(){
+	return getValue();
+    }
+
     public void setValue(String value) throws IllegalArgumentException{
 	dataValue = value;
     }




More information about the MOBY-guts mailing list