Package CHEM :: Package Annotation :: Module BaseAnnotator :: Class SingleAnnotator
[hide private]
[frames] | no frames]

Class SingleAnnotator



BaseAnnotator --+
                |
               SingleAnnotator

Special case of the BaseAnnotator. Instead of processing multiple columns and values, only works on a single one.

Instance Methods [hide private]
 
__init__(self)
Always set specificCols to None, doesn't make sense to filter a single annotator that can only produce 1 value.
 
columnName(self)
Just return the column name that this annotator is meant to populate
 
__call__(self, input)
Given some kind of input object, return the value this annotator is meant to populate for the respective table and column.

Inherited from BaseAnnotator: allColumns, allValues, annotateDict, iteritems, iterkeys, itervalues, keys, specifyColumns, values

Class Variables [hide private]

Inherited from BaseAnnotator: specificCols

Method Details [hide private]

__init__(self)
(Constructor)

 
Always set specificCols to None, doesn't make sense to filter a single annotator that can only produce 1 value.
Overrides: BaseAnnotator.__init__