xdoclet.modules.apache.struts

Class StrutsValidationXmlSubTask

Implemented Interfaces:
Serializable

public class StrutsValidationXmlSubTask
extends xdoclet.XmlSubTask

Generates Struts Validator validation.xml deployment descriptor.
Version:
$Revision: 1.12 $
Authors:
Erik Hatcher (ehatcher@apache.org)
Nick Heudecker (nick at systemmobile.com)
ant.element
display-name = "validation.xml" name = "strutsvalidationxml" parent = "xdoclet.modules.web.WebDocletTask"
created
August 23, 2002

Nested Class Summary

Nested classes/interfaces inherited from class xdoclet.TemplateSubTask

TemplateSubTask.ExtentTypes, TemplateSubTask.OfType

Field Summary

protected static String
DTD_FILE_NAME_11
protected static String
DTD_FILE_NAME_113
protected static String
GENERATED_FILE_NAME
protected static String
VALIDATION_PUBLICID_11
protected static String
VALIDATION_PUBLICID_113
protected static String
VALIDATION_SYSTEMID_11
protected static String
VALIDATION_SYSTEMID_113
protected String
version

Fields inherited from class xdoclet.DocletSupport

currentClassTag, currentFieldTag, currentMethodTag

Constructor Summary

StrutsValidationXmlSubTask()
Creates a new validation task instance.

Method Summary

void
execute()
Describe what the method does
String
getVersion()
Gets the Version attribute of the task tag.
void
setVersion(String version)
Sets the validator 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

Field Details

DTD_FILE_NAME_11

protected static final String DTD_FILE_NAME_11

DTD_FILE_NAME_113

protected static final String DTD_FILE_NAME_113

GENERATED_FILE_NAME

protected static String GENERATED_FILE_NAME

VALIDATION_PUBLICID_11

protected static final String VALIDATION_PUBLICID_11

VALIDATION_PUBLICID_113

protected static final String VALIDATION_PUBLICID_113

VALIDATION_SYSTEMID_11

protected static final String VALIDATION_SYSTEMID_11

VALIDATION_SYSTEMID_113

protected static final String VALIDATION_SYSTEMID_113

version

protected String version

Constructor Details

StrutsValidationXmlSubTask

public StrutsValidationXmlSubTask()
Creates a new validation task instance.

Method Details

execute

public void execute()
            throws xdoclet.XDocletException
Describe what the method does
Overrides:
execute in interface xdoclet.TemplateSubTask
Throws:
xdoclet.XDocletException -

getVersion

public String getVersion()
Gets the Version attribute of the task tag.
Returns:
The Version value

setVersion

public void setVersion(String version)
Sets the validator version to use. Legal values are "1.1" and "1.1.3".
Parameters:
version -
ant.not-required
No.Defaultis "1.1".