net.sourceforge.sqlunit.handlers
Class ResultHandler

java.lang.Object
  extended by net.sourceforge.sqlunit.handlers.ResultHandler
All Implemented Interfaces:
IHandler

public class ResultHandler
extends java.lang.Object
implements IHandler

The ResultHandler class parses the XML representing the result object.

Version:
$Revision: 1.7 $
Author:
Sujit Pal (spal@users.sourceforge.net)

Constructor Summary
ResultHandler()
           
 
Method Summary
 java.lang.Object process(org.jdom.Element elResult)
          Processes a JDOM Element representing a result of a query and returns a DatabaseResult object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultHandler

public ResultHandler()
Method Detail

process

public final java.lang.Object process(org.jdom.Element elResult)
                               throws java.lang.Exception
Processes a JDOM Element representing a result of a query and returns a DatabaseResult object.

Specified by:
process in interface IHandler
Parameters:
elResult - the JDOM Element to use.
Returns:
a populated DatabaseResult object.
Throws:
java.lang.Exception - if there was a problem creating the DatabaseResult.