Package org.vfny.geoserver.config.validation

Examples of org.vfny.geoserver.config.validation.PlugInConfig


public class ValidationTest extends TestCase {

//  public static void main(String[] args) {
  public void test() {
    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("--------------------------------------");
    for (int i = 0; i < pluginConfig.getPropertyDescriptors().length; i++) {
     
      System.out.println(pd[i].getClass().getName());
      System.out.println(ArgumentConfig.getDisplayName(pd[i]));
      System.out.println(ArgumentConfig.getDescription(pd[i]));
     
View Full Code Here


public class ValidationTest extends TestCase {

//  public static void main(String[] args) {
  public void test() {
    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("--------------------------------------");
    for (int i = 0; i < pluginConfig.getPropertyDescriptors().length; i++) {
     
      System.out.println(pd[i].getClass().getName());
      System.out.println(ArgumentConfig.getDisplayName(pd[i]));
      System.out.println(ArgumentConfig.getDescription(pd[i]));
     
View Full Code Here

        ValidationTestNewForm form = (ValidationTestNewForm) incomingForm;
       
        String newName = form.getNewName();
        String selectedPlugIn = form.getSelectedPlugIn();
       
        PlugInConfig plugIn = validationConfig.getPlugIn(selectedPlugIn);
       
        TestConfig testConfig = new TestConfig();
        testConfig.setName(newName);
        testConfig.setPlugIn(plugIn);
        testConfig.setArgs(new HashMap());
View Full Code Here

    return plugInName;
  }
   
    public String getPlugInDescription() {
        ValidationConfig validationConfig = (ValidationConfig) this.getServlet().getServletContext().getAttribute(ValidationConfig.CONFIG_KEY);
        PlugInConfig config = validationConfig.getPlugIn(plugInName);
        return config.getDescription();
    }
View Full Code Here

*/
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("--------------------------------------");
    for (int i = 0; i < pluginConfig.getPropertyDescriptors().length; i++) {
     
      System.out.println(pd[i].getClass().getName());
      System.out.println(ArgumentConfig.getDisplayName(pd[i]));
      System.out.println(ArgumentConfig.getDescription(pd[i]));
     
View Full Code Here

TOP

Related Classes of org.vfny.geoserver.config.validation.PlugInConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.