Package bioMoby :: Module mobyDataTypes :: Class MobyZmPDB
[show private | hide private]
[frames | no frames]

Class MobyZmPDB

MobyObject --+
             |
            MobyZmPDB


WARNING: this class was only used as an example of how to transmit PDB files! It just compress the file using zlib and encode it in order to embed PDB in xml tags
Method Summary
  __init__(self, filename, content, compress, namespace, id, articleName)
  __str__(self)
Returns the PDB
  compress(self)
Compress the PDB using zlib
  fromMoby(self, xml)
Returns a PDB from a XML String
  loadFromFile(self, filename)
Load a PDB
  saveToFile(self, filename)
Save the PDB into a file
  toMoby(self)
This is the method that transforms a PDB into a moby object
    Inherited from MobyObject
  getInfo(self, xmlNode)
Get the namespace and the id of the Object

Method Details

__str__(self)
(Informal representation operator)

Returns the PDB
Overrides:
bioMoby.mobyDataTypes.MobyObject.__str__

compress(self)

Compress the PDB using zlib

fromMoby(self, xml)

Returns a PDB from a XML String
Overrides:
bioMoby.mobyDataTypes.MobyObject.fromMoby

loadFromFile(self, filename)

Load a PDB

saveToFile(self, filename)

Save the PDB into a file

toMoby(self)

This is the method that transforms a PDB into a moby object
Overrides:
bioMoby.mobyDataTypes.MobyObject.toMoby

Generated by Epydoc 2.1 on Wed Nov 3 17:06:09 2004 http://epydoc.sf.net