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

Class ResultRowParser

source code

object --+    
         |    
    Parser --+
             |
            ResultRowParser

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]
ResultRow
parse(self, row)
Parse a row of JSON results into a ResultRow
source code

Inherited from Parser: __init__

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]

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: ResultRow
Overrides: Parser.parse