[MOBY-l] Collection of Biomoby inputs

Edward Kawas edward.kawas at gmail.com
Mon Apr 6 13:40:06 UTC 2009


Hi Michael,

To find out whether an input is a collection or not, you need to do first
get the primary inputs:

MobyPrimaryData inputs = service.getPrimaryInputs();

Then while you iterate over them, you need to check if they are either
MobyPrimaryDataSet or MobyPrimaryDataSimple:

for (MobyPrimaryData input : inputs) {
      if (input instanceof MobyPrimaryDataSimple) {
      // not a collection
      } else if (input instanceof MobyPrimaryDataSet) {
      // collection
      }
}

Hope this helps!

Eddie

-----Original Message-----
From: moby-l-bounces at lists.open-bio.org
[mailto:moby-l-bounces at lists.open-bio.org] On Behalf Of Michael Gerlich
Sent: April-06-09 5:31 AM
To: moby-l at biomoby.org
Subject: [MOBY-l] Collection of Biomoby inputs

Hi all,

I'd like to know how I can find out if the input of a Biomoby service is 
a collection or not?
I didn't find appropriate functions in MobyService or MobyDataType Objects.

Anyone knows where to look?

Regards,
Michael

-- 

Michael Gerlich
Group Bioinformatics & Mass Spectrometry
Leibniz Institute of Plant Biochemistry
06120 Halle, Germany

_______________________________________________
moby-l mailing list
moby-l at lists.open-bio.org
http://lists.open-bio.org/mailman/listinfo/moby-l




More information about the moby-l mailing list