01: /*
02: * Created on Jan 23, 2004
03: *
04: * To change the template for this generated file go to
05: * Window - Preferences - Java - Code Generation - Code and Comments
06: */
07: package org.vfny.geoserver.form.validation;
08:
09: import org.apache.struts.action.ActionErrors;
10: import org.apache.struts.action.ActionForm;
11: import org.apache.struts.action.ActionMapping;
12: import javax.servlet.http.HttpServletRequest;
13:
14: /**
15: * ValidationTestSuiteNewForm purpose.
16: * <p>
17: * Description of ValidationTestSuiteNewForm ...
18: * </p>
19: *
20: * <p>
21: * Capabilities:
22: * </p>
23: * <ul>
24: * <li>
25: * Feature: description
26: * </li>
27: * </ul>
28: * <p>
29: * Example Use:
30: * </p>
31: * <pre><code>
32: * ValidationTestSuiteNewForm x = new ValidationTestSuiteNewForm(...);
33: * </code></pre>
34: *
35: * @author User, Refractions Research, Inc.
36: * @author $Author: jive $ (last modification)
37: * @version $Id: ValidationTestSuiteNewForm.java 6177 2007-02-19 10:11:27Z aaime $
38: */
39: public class ValidationTestSuiteNewForm extends ActionForm {
40: private String newName;
41:
42: public void reset(ActionMapping arg0, HttpServletRequest request) {
43: super .reset(arg0, request);
44:
45: newName = "";
46: }
47:
48: public ActionErrors validate(ActionMapping mapping,
49: HttpServletRequest request) {
50: ActionErrors errors = new ActionErrors();
51:
52: return errors;
53: }
54:
55: /**
56: * Access newName property.
57: *
58: * @return Returns the newName.
59: */
60: public String getNewName() {
61: return newName;
62: }
63:
64: /**
65: * Set newName to newName.
66: *
67: * @param newName The newName to set.
68: */
69: public void setNewName(String newName) {
70: this.newName = newName;
71: }
72: }
|