Package g4ds :: Module descriptionprocessor :: Class DescriptionProcessor
[show private | hide private]
[frames | no frames]

Class DescriptionProcessor

Known Subclasses:
CommunityDescriptionProcessor, MemberDescriptionProcessor, ServiceDescriptionProcessor

Super class for all processor to provide some common functionality.
Method Summary
xml.dom.Node _createOneNode(self, doc, parent, name, value, cdatavalue)
Integrates the steps for creating a node, adding it to the parent node and adding a child node for the text.
  _decodeOneNode(self, node)
Extracts text or CData section from a node.
String _determineVersionString(self, prevVersion, significance)
Increases the version number.

Method Details

_createOneNode(self, doc, parent, name, value=None, cdatavalue=None)

Integrates the steps for creating a node, adding it to the parent node and adding a child node for the text.
Returns:
A node with the given name and the value as child text node
           (type=xml.dom.Node)

_decodeOneNode(self, node)

Extracts text or CData section from a node.

_determineVersionString(self, prevVersion=None, significance=1)

Increases the version number.
Parameters:
prevVersion - Version String of the previous Version. If not, the initial version number will be applied
           (type=String)
significance - How big is the change from the last version; defines, which part of the version is changed - must be 1, 2, 3 or 4, 1 is lowest significance
           (type=int)
Returns:
Version String
           (type=String)

Generated by Epydoc 2.0 on Sat Oct 22 22:52:47 2005 http://epydoc.sf.net