|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task com.thoughtworks.qdox.ant.AbstractQdoxTask net.sf.jameleon.ant.JameleonXDoclet
public class JameleonXDoclet
An Ant task that registers all functional points (defined in isA
, which defaults to
FunctionTag
) so they can be recognized by the Jameleon engine.
Field Summary | |
---|---|
protected String |
isA
|
protected Javadoc2Bean |
j2b
|
protected File |
outputDir
|
protected String |
outputFileName
|
protected boolean |
quiet
|
Fields inherited from class com.thoughtworks.qdox.ant.AbstractQdoxTask |
---|
allClasses, allSources, fileMap |
Fields inherited from class org.apache.tools.ant.Task |
---|
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
project |
Constructor Summary | |
---|---|
JameleonXDoclet()
|
Method Summary | |
---|---|
protected File |
constructFileFromClassName(String className)
Simply constructs a file from a String that represents the fully qualified class name. |
void |
execute()
Implement this method and play with _xJavaDoc |
protected String |
getTagDefsFileName()
|
protected void |
mergeBuilderSources(Javadoc2Bean j2b)
|
protected void |
saveTagDefs(Properties props,
String fileName)
Saves the function point names and their corresponding class names to a file |
protected void |
serializeFunctionalPoint(FunctionalPoint fp,
String className)
|
protected void |
setClassAttributes(JavaClass clazz,
Properties props,
Javadoc2Bean j2b)
Set the class-specific attributes |
void |
setIsA(String isA)
Restricts the javadocs to be extracted to all classes that implement this class |
void |
setOutputDir(File outputDir)
Set the directory where TestCaseTagDefs.properties will be generated to |
void |
setOutputFileName(String fileName)
Set the file where the function points will be registered to. |
void |
setQuiet(boolean quiet)
Sets the messages to be printed to stdout to true/false |
Methods inherited from class com.thoughtworks.qdox.ant.AbstractQdoxTask |
---|
addFileset, buildFileMap, buildFileMap, createDocletTagFactory, processClasses, processSources, validateAttributes |
Methods inherited from class org.apache.tools.ant.Task |
---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getProject, setProject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected File outputDir
protected String outputFileName
protected String isA
protected boolean quiet
protected Javadoc2Bean j2b
Constructor Detail |
---|
public JameleonXDoclet()
Method Detail |
---|
public void setOutputDir(File outputDir)
outputDir
- - The directory where TestCaseTagDefs.properties will be generated to.public void setIsA(String isA)
isA
- - The class to restrict by.public void setQuiet(boolean quiet)
quiet
- - Set to true to be quite. Defaults to falsepublic void setOutputFileName(String fileName)
fileName
- - The name of the file where the information will be sent to. This does not include the directory as that is set
via the outputDir property.public void execute() throws org.apache.tools.ant.BuildException
execute
in class AbstractQdoxTask
org.apache.tools.ant.BuildException
- Ant's way of reporting exceptionprotected void mergeBuilderSources(Javadoc2Bean j2b)
protected File constructFileFromClassName(String className)
outputDir
.
className
- - a String representing the name and partial (package) location of the file.
outputDir
and is followed by the directory
structure (package) of the className
protected String getTagDefsFileName()
protected void saveTagDefs(Properties props, String fileName) throws org.apache.tools.ant.BuildException
props
- - The properties to save to a file.
org.apache.tools.ant.BuildException
protected void setClassAttributes(JavaClass clazz, Properties props, Javadoc2Bean j2b) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
protected void serializeFunctionalPoint(FunctionalPoint fp, String className) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |