KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xdoclet > modules > webwork > WebWorkActionDocsSubTask


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

5 package xdoclet.modules.webwork;
6
7 import xdoclet.TemplateSubTask;
8
9 /**
10  * Generates HTML file containing description of defined WebWork actions.
11  *
12  * @author Rickard Oberg (rickard@xpedio.com)
13  * @created September 4, 2001
14  * @ant.element display-name="WebWork Action Docs" name="webworkactiondocs" parent="xdoclet.modules.web.WebDocletTask"
15  * @version $Revision: 1.5 $
16  */

17 public class WebWorkActionDocsSubTask extends TemplateSubTask
18 {
19
20     private final static String JavaDoc DEFAULT_TEMPLATE_FILE = "resources/webwork_actions.xdt";
21
22     private final static String JavaDoc GENERATED_FILE_NAME = "actions.html";
23
24     String JavaDoc javadocDir = null;
25
26     /**
27      * Describe what the WebWorkActionDocsSubTask constructor does
28      */

29     public WebWorkActionDocsSubTask()
30     {
31         setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE));
32         setDestinationFile(GENERATED_FILE_NAME);
33     }
34
35     /**
36      * Gets the JavadocDir attribute of the WebWorkActionDocsSubTask object
37      *
38      * @return The JavadocDir value
39      */

40     public String JavaDoc getJavadocDir()
41     {
42         return javadocDir;
43     }
44
45     /**
46      * Sets the JavadocDir attribute of the WebWorkActionDocsSubTask object
47      *
48      * @param javadocDir The new JavadocDir value
49      */

50     public void setJavadocDir(String JavaDoc javadocDir)
51     {
52         this.javadocDir = javadocDir;
53     }
54 }
55
Popular Tags