xdoclet.modules.apache.struts

Class StrutsValidationXmlSubTask

public class StrutsValidationXmlSubTask extends XmlSubTask

Generates Struts Validator validation.xml deployment descriptor.

Version: $Revision: 1.12 $

Author: Erik Hatcher (ehatcher@apache.org) Nick Heudecker (nick at systemmobile.com)

UNKNOWN: August 23, 2002 display-name = "validation.xml" name = "strutsvalidationxml" parent = "xdoclet.modules.web.WebDocletTask" file = "validation-global.xml" relates-to = "validation.xml" description = "An XML unparsed entity * containing the global elements for the validation descriptor." file = "validation-forms.xml" relates-to = "validation.xml" description = "An XML unparsed entity * containing form validations."

Field Summary
protected static StringDTD_FILE_NAME_11
protected static StringDTD_FILE_NAME_113
protected static StringGENERATED_FILE_NAME
protected Stringversion
protected static StringVALIDATION_PUBLICID_11
protected static StringVALIDATION_PUBLICID_113
protected static StringVALIDATION_SYSTEMID_11
protected static StringVALIDATION_SYSTEMID_113
Constructor Summary
StrutsValidationXmlSubTask()
Creates a new validation task instance.
Method Summary
voidexecute()
Describe what the method does
StringgetVersion()
Gets the Version attribute of the task tag.
voidsetVersion(String version)
Sets the validator version to use.

Field Detail

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

version

protected String version

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

Constructor Detail

StrutsValidationXmlSubTask

public StrutsValidationXmlSubTask()
Creates a new validation task instance.

Method Detail

execute

public void execute()
Describe what the method does

Throws: 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

UNKNOWN: No.Defaultis "1.1".