[MOBY-guts] biomoby commit

Andreas Groscurth groscurt at dev.open-bio.org
Mon Jan 5 08:44:29 UTC 2009


groscurt
Mon Jan  5 03:44:29 EST 2009
Update of /home/repository/moby/moby-live/Java/src/config/templates
In directory dev.open-bio.org:/tmp/cvs-serv23834/src/config/templates

Modified Files:
	ServicePOSetTemplate.java 
Log Message:
template for service output changed so that it also accepts a collection of data types and not only an array.
moby-live/Java/src/config/templates ServicePOSetTemplate.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/config/templates/ServicePOSetTemplate.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/src/config/templates/ServicePOSetTemplate.java	2005/09/19 08:08:32	1.2
+++ /home/repository/moby/moby-live/Java/src/config/templates/ServicePOSetTemplate.java	2009/01/05 08:44:29	1.3
@@ -9,4 +9,15 @@
 	throws org.biomoby.shared.MobyException {
 	response.setDataSet (values, "@ARTICLE_NAME@");
     }
-
+    
+    /**************************************************************************
+     * Set a primary output set (a Collection) into the 'response'. <p>
+     *
+     * @param response represents output data that will go to a client
+     * @param values is to be stored in the 'response'
+     * @throws org.biomoby.shared.MobyException if something goes wrong
+     *************************************************************************/
+    public void set_ at ESC_ARTICLE_NAME@Set (MobyJob response, java.util.Collection<@DATATYPE@> values)
+	throws org.biomoby.shared.MobyException {
+	response.setDataSet (values.toArray(new @DATATYPE@[values.size()]), "@ARTICLE_NAME@");
+    }




More information about the MOBY-guts mailing list