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

Class Parser

source code

object --+
         |
        Parser
Known Subclasses:

Base class for result line parsers

Sub-class this class to gain a default constructor

Instance Methods [hide private]
 
__init__(self, view=[]) source code
 
parse(self, data)
Abstract method - implementations must provide behaviour
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, view=[])
(Constructor)

source code 

Constructor

Parameters:
  • view (list) - the list of output columns (default: [])
Overrides: object.__init__

parse(self, data)

source code 

Abstract method - implementations must provide behaviour

Parameters:
  • data - a line of data