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

Class FormatGroup

RegisterableObject --+    
                     |    
     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.
Method Summary
  __init__(self, name, abbrev, filter, multirecord)
FormatGroup(name[, abbrev][, filter][, multirecord])
  add(self, obj, *args, **keywds)
  identify(self, source, debug_level)
S.identify(source[, debug_level]) -> FormatObject or None
  identifyFile(self, infile, debug_level)
S.identifyFile(infile[, debug_level]) -> FormatObject or None
  identifyString(self, s, debug_level)
S.identifyString(s[, debug_level]) -> FormatObject or None
    Inherited from RegisterableGroup
  add_after(self, obj, after)
  add_before(self, obj, before)

Method Details

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

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:
Bio.config.Registry.RegisterableGroup.__init__

identify(self, source, debug_level=0)

S.identify(source[, debug_level]) -> FormatObject or None

identifyFile(self, infile, debug_level=0)

S.identifyFile(infile[, debug_level]) -> FormatObject or None

identifyString(self, s, debug_level=0)

S.identifyString(s[, debug_level]) -> FormatObject or None

Generated by Epydoc 2.1 on Thu Jun 30 22:06:05 2005 http://epydoc.sf.net