net.sourceforge.anttestsetgen
Interface TestSetValidator

All Known Implementing Classes:
BroadBandValidator

public interface TestSetValidator

The TestSetValidator interface is the extension point of the TestSetGenerator

By implementing this interface customer made validators can be implemented. The validator is based on the Command Pattern. So first you set the applicable parameters, and then you execute the isValid method.

The TestSetGenerator will execute the custom validator for every row in the resultset. Via the setParameter the values from the database are transfered to the custom validator.

Version:
$Id: TestSetValidator.java,v 1.2 2004/01/04 15:00:18 mcjansen Exp $
Author:
Marco Jansen (Contrado Technologies)
See Also:
For an example implementation

Method Summary
 boolean isValid()
          Validate the supplied parameters.
 void setParameter(java.lang.String name, java.lang.String value)
          Set a parameter of the custom validator.
 

Method Detail

setParameter

public void setParameter(java.lang.String name,
                         java.lang.String value)
                  throws org.apache.tools.ant.BuildException
Set a parameter of the custom validator.

Parameters:
name - The name of the parameter
value - The value of the parameter
Throws:
org.apache.tools.ant.BuildException - In case of an error in the custom validator

isValid

public boolean isValid()
                throws org.apache.tools.ant.BuildException
Validate the supplied parameters.

Returns:
true in case the parameters are a valid combination, false if not
Throws:
org.apache.tools.ant.BuildException - In case of an error during validation


Copyright © 2003-2004 Marco Jansen (Contrado Technologies). All Rights Reserved.