KickJava   Java API By Example, From Geeks To Geeks.

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


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

5 package xdoclet.modules.webwork;
6
7 import xdoclet.XDocletTagSupport;
8
9 /**
10  * @author Ara Abrahamian (ara_e@email.com)
11  * @created Oct 15, 2001
12  * @xdoclet.taghandler namespace="WebWork"
13  * @version $Revision: 1.5 $
14  */

15 public class WebWorkTagsHandler extends XDocletTagSupport
16 {
17     /**
18      * Describe what the method does
19      *
20      * @return Describe the return value
21      */

22     public String JavaDoc javaDocHtmlFile()
23     {
24         // Create path to HTML file in JavaDoc pointing to the action class
25

26         // Possibly prefix with a base directory
27
WebWorkActionDocsSubTask webworkSubtask = (WebWorkActionDocsSubTask) getDocletContext().getActiveSubTask();
28         String JavaDoc javadocDir = webworkSubtask.getJavadocDir();
29
30         return (javadocDir == null ? "" : javadocDir + "/") + getCurrentClass().getQualifiedName().replace('.', '/') + ".html";
31     }
32
33     /**
34      * Describe what the method does
35      *
36      * @return Describe the return value
37      */

38     public String JavaDoc commandName()
39     {
40         String JavaDoc name = getCurrentMethod().getName().substring(2);
41
42         name = name.substring(0, 1).toLowerCase() + name.substring(1);
43         return name;
44     }
45 }
46
Popular Tags