## Validator

Implemented in class xdoclet.modules.apache.struts.StrutsValidatorTagsHandler.

- Block Tags
- Content Tags

### Block Tags:

#### forAllForms (block template)

Iterates over all Struts Form beans and evaluates the body of the tag for each class.

#### forAllFieldArgs (block template)

Iterates over all arguments for the current field.

#### ifArgIsResource (block template)

Evaluates body if current argument is a resource key.

#### ifArgIsValue (block template)

Evaluates the body if the current argument is an inline value rather than a resource key.

#### ifArgIsForType (block template)

Evaluates the body if the current argument is a validator-specific argument.

#### ifNoArg0 (block template)

Evaluates the body if there is no arg0 specified.

#### ifFormHasFields (block template)

Evaluates the body if form has fields requiring validation.

#### forAllFields (block template)

Iterates the body for each field of the current form requiring validation.

### Content templates:

#### formName (content template)

Gets the "name" attribute for the <form> element in the xml descriptor. This should be the "path" form attribute if this is a ValidatorActiorForm or the "name" attribute otherwise.

#### argIndex (content template)

Current argument index number (0 to 3).

#### argName (content template)

Current argument name - only valid if argument is for a specific validator type.

#### argValue (content template)

Current argument value, which is either an inline value or resource key.

#### fieldName (content template)

Returns the current fields name.

#### validatorList (content template)

Returns a comma-separated list of the specified validator types.

#### getClassNameFor (content template)

Returns the not-full-qualified name of the current class without the package name.

#### getFullClassNameFor (content template)

Returns the full-qualified name of the current class with the package name.

#### getFullSuperclassNameFor (content template)

Returns the full-qualified name of the superclass of the current class.

#### setMatchValue (content template)

Sets the vaSoulue of match variable.

value | The new value for matchPattern.

#### matchValue (content template)

Returns the value of match variable. Match variable serves as a variable for templates, you set it somewhere in template and look it up somewhere else in template.

#### currentToken (content template)

Returns current token inside forAllClassTagTokens.

#### skipToken (content template)

Skips current token. Returns empty string.