[MOBY-l] request about getNamespace() in MobyData

Martin Senger senger at ebi.ac.uk
Wed Jul 7 00:42:14 UTC 2004


Hi,

   Please forgive me if I has not understood correctly your question, but
if I have then here is an answer:

> I don't succeed in using the method "getNamespaces()" or "getDataType()"
> because the method getPrimaryInputs() returns me a type MobyData while the
> methods "getNamespaces()" or "getDataType()" require
> MobyPrimaryDataSimple.
>
   MobyPrimaryDataSimple inherits from MobyData. So, actually,the method
getPrimaryInputs() only seems to return MobyData but in fact it returns
more specific type, e.g. MobyPrimaryDataSimple. So, just cast it.

    Regards,
    Martin

-- 
Martin Senger

EMBL Outstation - Hinxton                Senger at EBI.ac.uk
European Bioinformatics Institute        Phone: (+44) 1223 494636
Wellcome Trust Genome Campus             (Switchboard:     494444)
Hinxton                                  Fax  : (+44) 1223 494468
Cambridge CB10 1SD
United Kingdom                           http://industry.ebi.ac.uk/~senger




More information about the moby-l mailing list