[MOBY-l] MobyDataType 'Object'

Ola Spjuth ola.spjuth at farmbio.uu.se
Fri Oct 19 12:41:26 UTC 2007


Hi,

How should the primitive MobyDataType 'Object' be treated? If a  
service only has a input with a primitive 'Object', what does it expect?

Example (implemented in jMoby):
The service 'getKeggPathwayAsGif' has primary input name='pathway'  
with MobyDataType 'object', hence instantiating from this  
datatypeName creates a MobyDataObject, which cannot contain a value  
(the static method createInstanceFromString(typename, value) sets the  
'value' parameter as ID for the MobyDataObject). Is this intentional  
and in that case what is the intention?

Why does not the service use the DataType 'String' if that's what it  
expects? Is the dirty workaround to always supply a MobyDataString if  
a DataType is set to Object?

Cheers,

    .../Ola



More information about the moby-l mailing list