[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Wed Mar 17 20:57:59 UTC 2010


gordonp
Wed Mar 17 16:57:59 EDT 2010
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data
In directory dev.open-bio.org:/tmp/cvs-serv12685/src/main/org/biomoby/shared/data

Modified Files:
	MobyDataInstance.java 
Log Message:
Added methods to allow association of a random application-specific objects with the Moby data
moby-live/Java/src/main/org/biomoby/shared/data MobyDataInstance.java,1.3,1.4
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataInstance.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/MobyDataInstance.java	2006/07/07 04:12:40	1.3
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataInstance.java	2010/03/17 20:57:59	1.4
@@ -36,6 +36,20 @@
      */
     public Object getObject();
 
+    /**
+     * Retrieves any application-specific data that may have been stored in association with this Moby object.
+     * The returned object has nothing to do with the Moby protocol itself.  See setUserData() for more details.
+     */
+    public Object getUserData();
+
+    /**
+     * Allows developers to track their application-specific information alongside the Moby functionality.
+     * Provided for application developers' convenience: data stored using this routine is completely 
+     * ignore by the Moby core libraries.  If you want to store Moby data, use the routines defined in various
+     * subclasses of this class (e.g. MobyDataObject).
+     */
+    public void setUserData(Object data);
+
     public void setName(String name);
     public String getName();
 }




More information about the MOBY-guts mailing list