xdoclet.modules.apache.struts

Class StrutsConfigXmlSubTask

Implemented Interfaces:
Serializable

public class StrutsConfigXmlSubTask
extends xdoclet.XmlSubTask

Generates struts-config.xml deployment descriptor.
Version:
$Revision: 1.12 $
Authors:
Dmitri Colebatch
Nick Heudecker
ant.element
display-name = "struts-config.xml" name = "strutsconfigxml" parent = "xdoclet.modules.web.WebDocletTask"
created
September 2, 2001

Nested Class Summary

static class
StrutsConfigXmlSubTask.StrutsVersion

Nested classes/interfaces inherited from class xdoclet.TemplateSubTask

TemplateSubTask.ExtentTypes, TemplateSubTask.OfType

Field Summary

Fields inherited from class xdoclet.DocletSupport

currentClassTag, currentFieldTag, currentMethodTag

Constructor Summary

StrutsConfigXmlSubTask()
Describe what the StrutsConfigXmlSubTask constructor does

Method Summary

void
execute()
Generate struts-config.xml
String
getController()
String
getVersion()
Gets the Version attribute of the StrutsConfigXmlSubTask object
void
setController(String controller)
Sets fully qualified class to use when instantiating ActionMapping objects.
void
setVersion(StrutsConfigXmlSubTask.StrutsVersion version)
Sets the struts version to use.

Methods inherited from class xdoclet.XmlSubTask

copyAttributesFrom, engineFinished, getDtdURL, getPublicId, getSchema, getSchemaURL, getSystemId, getUseIds, getXmlencoding, isValidateXML, setDtdURL, setPublicId, setSchema, setSchemaURL, setSystemId, setUseIds, setValidateXML, setXmlencoding, startProcess

Methods inherited from class xdoclet.TemplateSubTask

addOfType, addOfType, addPackageSubstitution, copyAttributesFrom, engineFinished, engineStarted, execute, generateForClass, getAcceptAbstractClasses, getAcceptInterfaces, getDestinationFile, getEngine, getExtent, getGeneratedFileName, getGenerationManager, getHavingClassTag, getOfType, getPackageSubstitutions, getSubTaskClassName, getTemplateURL, init, isPackageSubstitutionInheritanceSupported, isPrefixWithPackageStructure, javaFile, matchesGenerationRules, processInnerClasses, setAcceptAbstractClasses, setAcceptInterfaces, setDestinationFile, setEngine, setExtent, setExtentValue, setGenerationManager, setHavingClassTag, setOfType, setPackageSubstitutionInheritanceSupported, setPackageSubstitutions, setPrefixWithPackageStructure, setSubTaskClassName, setTemplateFile, setTemplateURL, startEngine, startProcess, startProcessForAll, startProcessPerClass, validateOptions

Methods inherited from class xdoclet.SubTask

addConfigParam, copyAttributesFrom, execute, getConfigParams, getConfigParamsAsMap, getContext, getDestDir, getMergeDir, getSubTaskName, getXJavaDoc, init, setDestDir, setMergeDir, setSubTaskName, validateOptions

Methods inherited from class xdoclet.DocletSupport

getCurrentClass, getCurrentClassTag, getCurrentConstructor, getCurrentField, getCurrentFieldTag, getCurrentMethod, getCurrentMethodTag, getCurrentPackage, getCurrentTag, isDocletGenerated, popCurrentClass, pushCurrentClass, setCurrentClass, setCurrentClassTag, setCurrentConstructor, setCurrentField, setCurrentFieldTag, setCurrentMethod, setCurrentMethodTag, setCurrentPackage

Constructor Details

StrutsConfigXmlSubTask

public StrutsConfigXmlSubTask()
Describe what the StrutsConfigXmlSubTask constructor does

Method Details

execute

public void execute()
            throws xdoclet.XDocletException
Generate struts-config.xml
Overrides:
execute in interface xdoclet.TemplateSubTask
Throws:
xdoclet.XDocletException -

getController

public String getController()

getVersion

public String getVersion()
Gets the Version attribute of the StrutsConfigXmlSubTask object
Returns:
The Version value

setController

public void setController(String controller)
Sets fully qualified class to use when instantiating ActionMapping objects.
Parameters:
controller -

setVersion

public void setVersion(StrutsConfigXmlSubTask.StrutsVersion version)
Sets the struts version to use. Legal values are "1.0", "1.1" and "1.2".
Parameters:
version -
ant.not-required
"No. Default is '1.0'".