Package qm :: Package test :: Package classes :: Module xml_result_stream :: Class XMLResultReader
[hide private]
[frames] | no frames]

Class XMLResultReader
source code

                 object --+            
                          |            
        extension.Extension --+        
                              |        
     result_reader.ResultReader --+    
                                  |    
file_result_reader.FileResultReader --+
                                      |
                                     XMLResultReader

Reads in 'Result's from an XML-formatted results file.

To write such a file, see 'XMLResultStream'.

Nested Classes [hide private]

Inherited from file_result_reader.FileResultReader: InvalidFile

Inherited from extension.Extension: Type, __metaclass__


Instance Methods [hide private]
  __init__(self, arguments=None, **args)
Construct a new 'FileResultReader'.
  GetAnnotations(self)
Return this run's dictionary of annotations.
  GetResult(self)
Return the next 'Result' from this reader.
  _GetResultFromDomNode(self, node)
Extract a result from a DOM node.

Inherited from result_reader.ResultReader: __iter__

Inherited from extension.Extension: GetClassName, GetExplicitArguments, MakeDomDocument, MakeDomElement, Write, __getattr__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Class Variables [hide private]

Inherited from file_result_reader.FileResultReader: arguments, file, filename

Inherited from result_reader.ResultReader: kind

Inherited from object: __class__


Method Details [hide private]

__init__(self, arguments=None, **args)
(Constructor)

source code 

Construct a new 'FileResultReader'.

'arguments' -- As for 'ResultReader'.

If the file provided is not in the input format expected by this result reader, the derived class '__init__' function must raise an 'InvalidStream' exception.
Overrides: file_result_reader.FileResultReader.__init__
(inherited documentation)

GetAnnotations(self)

source code 
Return this run's dictionary of annotations.
Overrides: result_reader.ResultReader.GetAnnotations
(inherited documentation)

GetResult(self)

source code 

Return the next 'Result' from this reader.

returns -- A 'Result', or 'None' if there are no more results.
Overrides: result_reader.ResultReader.GetResult
(inherited documentation)

_GetResultFromDomNode(self, node)

source code 

Extract a result from a DOM node.

'node' -- A DOM node corresponding to a "result" element.

returns -- A 'Result' object.