KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xdoclet > modules > apache > tapestry > PageSpecificationSubTask


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

5 package xdoclet.modules.apache.tapestry;
6
7 import org.apache.commons.logging.Log;
8
9 import xjavadoc.XClass;
10 import xdoclet.TemplateSubTask;
11
12 import xdoclet.XDocletException;
13
14 /**
15  * Generates page-specifications for Tapestry applications.
16  *
17  * @author Michael Newcomb (mnewcomb@sourceforge.net)
18  * @created February 4, 2005
19  * @version $Revision: 1.1 $
20  * @ant.element name="page-specification" display-name="Page-Specification SubTask"
21  * parent="xdoclet.modules.apache.tapestry.TapestryDocletTask"
22  */

23 public class PageSpecificationSubTask extends TemplateSubTask
24 {
25     protected final static String JavaDoc DEFAULT_TEMPLATE_FILE = "resources/page-specification.xdt";
26
27     /**
28      */

29     public PageSpecificationSubTask()
30     {
31         setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE));
32         setDestinationFile("{0}.page");
33         setPrefixWithPackageStructure(false);
34     }
35
36     /**
37      * Describe what the method does
38      *
39      * @param clazz Describe what the parameter does
40      * @return Describe the return value
41      * @exception XDocletException
42      */

43     protected boolean matchesGenerationRules(XClass clazz) throws XDocletException
44     {
45         return clazz.getDoc().getTag("tapestry:page-specification") != null;
46     }
47 }
48
Popular Tags