net.sourceforge.sqlunit.handlers
Class ConstructorArgsHandler

java.lang.Object
  extended by net.sourceforge.sqlunit.handlers.ConstructorArgsHandler
All Implemented Interfaces:
IHandler
Direct Known Subclasses:
JndiHandler, MethodArgsHandler, TypeMapHandler

public class ConstructorArgsHandler
extends java.lang.Object
implements IHandler

The ConstructorArgsHandler parses the JDOM Element constructorArgs and processes it to return an array of Arg objects.

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

Constructor Summary
ConstructorArgsHandler()
           
 
Method Summary
protected  Arg[] getArguments(java.util.List elArgs)
          Returns an array of Arg objects.
 java.lang.Object process(org.jdom.Element elCtorArgs)
          Processes the JDOM Element representing the constructorArgs tag and returns an array of Arg objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstructorArgsHandler

public ConstructorArgsHandler()
Method Detail

process

public java.lang.Object process(org.jdom.Element elCtorArgs)
                         throws java.lang.Exception
Processes the JDOM Element representing the constructorArgs tag and returns an array of Arg objects.

Specified by:
process in interface IHandler
Parameters:
elCtorArgs - the JDOM Element representing the constructorArgs tag.
Returns:
an array of Arg objects. Client needs to cast appropriately.
Throws:
java.lang.Exception - if something went wrong processing the tag.

getArguments

protected final Arg[] getArguments(java.util.List elArgs)
                            throws java.lang.Exception
Returns an array of Arg objects. This will be reused in a subclass which is why this is factored out here.

Parameters:
elArgs - a List of arg elements.
Returns:
an array of Arg objects.
Throws:
java.lang.Exception - if something went wrong processing the list.