* @version $Id: ValidationTest.java,v 1.1 2004/01/31 00:17:53 jive Exp $
*/
public class ValidationTest {
public static void main(String[] args) {
TestConfig testConfig = new TestConfig();
PlugInConfig pluginConfig = new PlugInConfig();
// the plugin to test the bean info for.
//pluginConfig.setClassName(PolygonBoundaryCoveredByPolygonValidation.class.getName());
pluginConfig.setClassName(GazetteerNameValidation.class.getName());
testConfig.setPlugIn(pluginConfig);
System.out.println(testConfig.toString());
System.out.println("--------------------------------------");
for (int i = 0; i < testConfig.getPropertyDescriptors().length; i++) {
System.out.println(testConfig.getPropertyDescriptors()[i].getClass().getName());
System.out.println(testConfig.getPropertyDescriptors()[i].getDisplayName());
System.out.println(testConfig.getPropertyDescriptors()[i].getShortDescription());
System.out.println(testConfig.getPropertyDescriptors()[i].attributeNames());
System.out.println("--------------------------------------");
}
System.out.println("--------------------------------------");
System.out.println("--------------------------------------");
System.out.println("--------------------------------------");
testConfig = new TestConfig();
pluginConfig = new PlugInConfig();
// the plugin to test the bean info for.
//pluginConfig.setClassName(PolygonBoundaryCoveredByPolygonValidation.class.getName());
pluginConfig.setClassName(GazetteerNameValidation.class.getName());
testConfig.setPlugIn(pluginConfig);
PropertyDescriptor [] pd = pluginConfig.getPropertyDescriptors();
System.out.println(pluginConfig.toString());
System.out.println("--------------------------------------");