Package Bio :: Package config :: Module FormatRegistry :: Class FormatGroup
[hide private]
[frames] | no frames]

Class FormatGroup

source code

Registry.RegisterableObject --+    
                              |    
     Registry.RegisterableGroup --+
                                  |
                                 FormatGroup

This object holds a group of FormatObjects.

Methods: identify Identify the format at a URL. identifyFile Identify the format of a file. identifyString Identify the format of a string.

Instance Methods [hide private]
 
__init__(self, name, abbrev=None, filter=None, multirecord=1)
FormatGroup(name[, abbrev][, filter][, multirecord])
source code
FormatObject or None
identifyFile(S, infile, debug_level=...) source code
FormatObject or None
identifyString(S, s, debug_level=...) source code
FormatObject or None
identify(S, source, debug_level=...) source code
 
add(self, obj, *args, **keywds) source code

Inherited from Registry.RegisterableGroup: add_after, add_before

Method Details [hide private]

__init__(self, name, abbrev=None, filter=None, multirecord=1)
(Constructor)

source code 

FormatGroup(name[, abbrev][, filter][, multirecord])

name is the name of the object, abbrev is an abbreviation for the name.

filter is an optional Martel.Expression that can be used to quickly determine whether some input is parseable by this group.

multirecord is either 0/1 indicating whether this format can be used to parse multiple records. By default, it is 1.

Overrides: Registry.RegisterableObject.__init__

add(self, obj, *args, **keywds)

source code 
Overrides: Registry.RegisterableGroup.add