Rational QualityArchitect/Java API
Version 1.0

com.rational.test.vp
Class DatabaseVPDataRenderer

java.lang.Object
  |
  +--com.rational.test.vp.DatabaseVPDataRenderer
All Implemented Interfaces:
VerificationPointDataRenderer

public class DatabaseVPDataRenderer
extends java.lang.Object
implements VerificationPointDataRenderer

This class implements a renderer for any class that implements the DataTable interface.

The renderer creates a JDialog containing a scrollable JTable with the data from the supplied DatabaseVPData object.

If no expected data object exists in the datastore and the OPTION_USER_ACKNOWLEDGE_BASELINE option is set in the test script, the framework invokes the displayAndValidateData() method in this class. This method in this class lets the tester interactively accept or reject the displayed data as the baseline (expected) data for a static verification point.

Since:
QualityArchitect 0.1
See Also:
DatabaseVP, DatabaseVPData, DatabaseVPComparator, DatabaseVPDataProvider

Constructor Summary
DatabaseVPDataRenderer()
           
 
Method Summary
 boolean displayAndValidateData(VerificationPointData vpdData, java.lang.String sVPName)
          This method presents the tester with a visual representation of the data object as it exists before the expected (baseline) data is stored for this static verification point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseVPDataRenderer

public DatabaseVPDataRenderer()
Method Detail

displayAndValidateData

public boolean displayAndValidateData(VerificationPointData vpdData,
                                      java.lang.String sVPName)
Description copied from interface: VerificationPointDataRenderer

This method presents the tester with a visual representation of the data object as it exists before the expected (baseline) data is stored for this static verification point.

This method is invoked by the verification point framework when the following conditions exist:

When the method is invoked, it presents the tester with a visual representation of the data, and allows the tester to accept or reject the data:

Specified by:
displayAndValidateData in interface VerificationPointDataRenderer
Following copied from interface: com.rational.test.vp.VerificationPointDataRenderer
Parameters:
vpdData - The data to present to the tester for confirmation.
Returns:
true if the tester accepts the displayed data, or false if the tester rejects the data.

30-Jun-2003

Rational QualityArchitect/Java Support Home Page
Copyright (c) 2000, Rational Software Corporation