[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Fri Nov 14 20:32:02 UTC 2008
gordonp
Fri Nov 14 15:32:02 EST 2008
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client
In directory dev.open-bio.org:/tmp/cvs-serv8312/src/main/org/biomoby/client
Modified Files:
MobyRequest.java
Log Message:
Added convenience method for secondaries, javadocs
moby-live/Java/src/main/org/biomoby/client MobyRequest.java,1.39,1.40
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/MobyRequest.java,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/MobyRequest.java 2008/10/30 02:33:25 1.39
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/MobyRequest.java 2008/11/14 20:32:02 1.40
@@ -224,6 +224,13 @@
public MobyContentInstance getInput(){
return inputData;
}
+
+ /**
+ * Same functionality as setSecondaryInput(MobyDataSecondaryInstance[])
+ */
+ public void setSecondaryInput(Collection<MobyDataSecondaryInstance> secondaryData) throws MobyException{
+ setSecondaryInput(secondaryData.toArray(new MobyDataSecondaryInstance[secondaryData.size()]));
+ }
/**
* This method will assign the provided secondary parameters to all primary input data currently
@@ -274,7 +281,8 @@
* are properly defined according to the Web service definition,
* a SOAP request will be sent to the remote server, and the method
* will return one or more MOBY objects (synchronous).
- * Call this method after calling setService, and setInput.
+ * Call this method after calling setService, and setInput. If you do not call
+ * setSecondaryInput, the default secondary parameter values will be used.
*
* @return the results of the remote Web service in response to the give input
*
More information about the MOBY-guts
mailing list