| Home | Trees | Index | Help |
|---|
| Package qm :: Module extension :: Class Extension |
|
object --+
|
Extension
Database,
ExpectationDatabase,
ResultReader,
ResultStream,
RunDatabase,
Runnable,
SuiteA class derived from 'Extension' is a QM extension.
A variety of different classes are derived from 'Extension'. All of these classes can be derived from by users to produce customized QM extensions.
'Extension' is an abstract class.| Method Summary | |
|---|---|
Construct a new 'Extension'. | |
__getattr__(self,
name)
| |
Return the name of the extension class. | |
Return the arguments to this extension instance. | |
Create a DOM document for 'self'. | |
Create a DOM node for 'self'. | |
Write an XML description of 'self' to a file. | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Class Variable Summary | |
|---|---|
type |
__metaclass__ = qm.extension.Type |
list |
arguments = []
|
NoneType |
kind = None |
type |
Type = qm.extension.Type |
| Method Details |
|---|
__init__(self,
**args)
|
GetClassName(self)Return the name of the extension class. returns -- A string giving the name of this etension class. |
GetExplicitArguments(self)Return the arguments to this extension instance. returns -- A dictionary mapping argument names to their values. Computed arguments are ommitted from the dictionary. |
MakeDomDocument(self)Create a DOM document for 'self'. 'extension_class' -- A class derived from 'Extension'. 'arguments' -- The arguments to the extension class. returns -- A new DOM document corresponding to an instance of the extension class. |
MakeDomElement(self, document, element=None)Create a DOM node for 'self'. 'document' -- The DOM document that will contain the new element. 'element' -- If not 'None' the extension element to which items will be added. Otherwise, a new element will be created by this function. returns -- A new DOM element corresponding to an instance of the extension class. The caller is responsible for attaching it to the 'document'. |
Write(self, file)Write an XML description of 'self' to a file. 'file' -- A file object to which the data should be written. |
| Class Variable Details |
|---|
arguments
|
kind
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Sep 27 15:49:07 2007 | http://epydoc.sf.net |