KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xdoclet > modules > apache > struts > StrutsDynaFormValidationXmlSubTask


1 /*
2  * Copyright (c) 2001, 2002 The XDoclet team
3  * All rights reserved.
4  */

5 package xdoclet.modules.apache.struts;
6
7
8 /**
9  * Generates Struts Validator validation.xml deployment descriptor for struts dynamic action forms.
10  *
11  * @author <a HREF="mailto:nick at systemmobile.com">Nick Heudecker</a>
12  * @created August 2, 2004
13  * @ant.element display-name="validation.xml" name="strutsdynaformvalidationxml"
14  * parent="xdoclet.modules.web.WebDocletTask"
15  * @version $Revision: 1.3 $
16  * @xdoclet.merge-file file="validation-global.xml" relates-to="validation.xml" description="An XML unparsed entity
17  * containing the global elements for the validation descriptor."
18  * @xdoclet.merge-file file="validation-forms.xml" relates-to="validation.xml" description="An XML unparsed entity
19  * containing form validations."
20  */

21 public class StrutsDynaFormValidationXmlSubTask extends StrutsValidationXmlSubTask
22 {
23
24     private static String JavaDoc DEFAULT_TEMPLATE_FILE = "resources/dynaform_validation_xml.xdt";
25
26     /**
27      * Creates a new instance of the task.
28      */

29     public StrutsDynaFormValidationXmlSubTask()
30     {
31         setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE));
32         setDestinationFile(GENERATED_FILE_NAME);
33     }
34
35 }
36
Popular Tags