Package intermine :: Module webservice :: Class ResultObjParser
[hide private]
[frames] | no frames]

Class ResultObjParser

source code

object --+    
         |    
    Parser --+
             |
            ResultObjParser

A result parser that produces ResultRow objects, which support both index and key access

Parses jsonrow formatted rows into ResultRows, which supports key access by list indices (based on the selected view) as well as lookup by view name (based on the selected view value).

Instance Methods [hide private]
 
__init__(self, cld) source code
ResultObject
parse(self, row)
Parse a row of JSON results into a ResultRow
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cld)
(Constructor)

source code 

Constructor

Parameters:
  • cld (intermine.model.Class) - the class of object this result object represents
Overrides: object.__init__

parse(self, row)

source code 

Parse a row of JSON results into a ResultRow

Parameters:
  • row (a JSON string) - a row of data from a result set
Returns: ResultObject
Overrides: Parser.parse