⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 validationtestnewform.java

📁 电子地图服务器,搭建自己的地图服务
💻 JAVA
字号:
/*
 * Created on Jan 23, 2004
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.vfny.geoserver.form.validation;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.vfny.geoserver.config.validation.ValidationConfig;
import java.util.Collection;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;


/**
 * ValidationTestNewForm purpose.
 * <p>
 * Description of ValidationTestNewForm ...
 * </p>
 *
 * <p>
 * Capabilities:
 * </p>
 * <ul>
 * <li>
 * Feature: description
 * </li>
 * </ul>
 * <p>
 * Example Use:
 * </p>
 * <pre><code>
 * ValidationTestNewForm x = new ValidationTestNewForm(...);
 * </code></pre>
 *
 * @author User, Refractions Research, Inc.
 * @author $Author: emperorkefka $ (last modification)
 * @version $Id: ValidationTestNewForm.java 6177 2007-02-19 10:11:27Z aaime $
 */
public class ValidationTestNewForm extends ActionForm {
    private String newName;
    private String selectedPlugIn;

    //Key is the PlugIn name, Value is the description
    private Collection plugInConfigs;
    private Set plugInNames;

    public void reset(ActionMapping arg0, HttpServletRequest request) {
        super.reset(arg0, request);

        ValidationConfig validationConfig = (ValidationConfig) this.getServlet().getServletContext()
                                                                   .getAttribute(ValidationConfig.CONFIG_KEY);
        plugInConfigs = validationConfig.getPlugIns().values();
        plugInNames = validationConfig.getPlugInNames();

        newName = "";
    }

    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        ActionErrors errors = new ActionErrors();

        return errors;
    }

    public Collection getPlugInConfigs() {
        return plugInConfigs;
    }

    public Set getPlugIns() {
        return plugInNames;
    }

    /**
     * Access newName property.
     *
     * @return Returns the newName.
     */
    public String getNewName() {
        return newName;
    }

    /**
     * Set newName to newName.
     *
     * @param newName The newName to set.
     */
    public void setNewName(String newName) {
        this.newName = newName;
    }

    /**
     * Access selectedPlugIn property.
     *
     * @return Returns the selectedPlugIn.
     */
    public String getSelectedPlugIn() {
        return selectedPlugIn;
    }

    /**
     * Set selectedPlugIn to selectedPlugIn.
     *
     * @param selectedPlugIn The selectedPlugIn to set.
     */
    public void setSelectedPlugIn(String selectedPlugIn) {
        this.selectedPlugIn = selectedPlugIn;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -