net.sourceforge.sqlunit.handlers
Class SetHandler

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

public class SetHandler
extends java.lang.Object
implements IHandler

The SetHandler allows setting variables into the Symbol table.

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

Constructor Summary
SetHandler()
           
 
Method Summary
 java.lang.Object process(org.jdom.Element elSet)
          Makes an entry for the given object in the Symbol table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetHandler

public SetHandler()
Method Detail

process

public final java.lang.Object process(org.jdom.Element elSet)
                               throws java.lang.Exception
Makes an entry for the given object in the Symbol table. The variable name is checked for correct formatting, ie ${varname}.

Specified by:
process in interface IHandler
Parameters:
elSet - the JDOM Element representing the set directive.
Returns:
an Object, null in this case.
Throws:
java.lang.Exception - if something went wrong with the set operation.