xdoclet.modules.apache.struts
Class StrutsDynaFormValidatorTagsHandler

java.lang.Object
  extended by xdoclet.template.TemplateTagHandler
      extended by xdoclet.XDocletTagSupport
          extended by xdoclet.tagshandler.AbstractProgramElementTagsHandler
              extended by xdoclet.modules.apache.struts.StrutsValidatorTagsHandler
                  extended by xdoclet.modules.apache.struts.StrutsDynaFormValidatorTagsHandler

public class StrutsDynaFormValidatorTagsHandler
extends StrutsValidatorTagsHandler

Struts dynamic form validator tag handler.

Version:
$Revision: 1.2 $
Author:
Nick Heudecker (nick at systemmobile dot com)
xdoclet.taghandler
namespace = "DFValidator"
created
September 27, 2004

Field Summary
 
Fields inherited from class xdoclet.modules.apache.struts.StrutsValidatorTagsHandler
args, curFieldName, currentArgKey, supportedTypes
 
Fields inherited from class xdoclet.tagshandler.AbstractProgramElementTagsHandler
currentToken, matchPattern, tagTokenizer
 
Fields inherited from class xdoclet.XDocletTagSupport
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER
 
Constructor Summary
StrutsDynaFormValidatorTagsHandler()
           
 
Method Summary
 void forAllFields(java.lang.String template, java.util.Properties attributes)
          Iterates the body for each field of the current form requiring validation.
 void forAllForms(java.lang.String template, java.util.Properties attributes)
          Iterates over all POJOs with dynaform tags and evaluates the body of the tag for each class.
 java.lang.String formName(java.util.Properties attributes)
          Gets the "name" attribute for the <form> element in the xml descriptor.
 
Methods inherited from class xdoclet.modules.apache.struts.StrutsValidatorTagsHandler
argIndex, argName, argValue, fieldName, forAllFieldArgs, getFields, getFields, ifArgIsForType, ifArgIsResource, ifArgIsValue, ifFieldIsIndexed, ifFormHasFields, ifNoArg0, indexedListProperty, loadFieldArguments, validatorList
 
Methods inherited from class xdoclet.tagshandler.AbstractProgramElementTagsHandler
checkForWrap, currentToken, exceptionList, firstSentenceDescriptionOfCurrentMember, forAllMembers, forAllMemberTags, forAllMemberTagTokens, getAllClasses, getClassNameFor, getFullClassNameFor, getFullSuperclassNameFor, getIndentChars, getXExecutableMemberForMemberName, getXExecutableMemberForMemberName, hasExecutableMember_OLD, hasExecutableMember, makeCopyOfArray, matchValue, memberComment, setMatchValue, skipToken
 
Methods inherited from class xdoclet.XDocletTagSupport
delimit, expandClassName, generate, getCurrentClass, getCurrentClassTag, getCurrentConstructor, getCurrentField, getCurrentFieldTag, getCurrentMethod, getCurrentMethodTag, getCurrentPackage, getDocletContext, getEngine, getExpandedDelimitedTagValue, getTagValue, getTagValue, getTagValue, hasHavingClassTag, hasTag, isTagValueEqual, mandatoryParamNotFound, mandatoryTemplateTagParamNotFound, modifiers, popCurrentClass, pushCurrentClass, setCurrentClass, setCurrentClassTag, setCurrentConstructor, setCurrentField, setCurrentFieldTag, setCurrentMethod, setCurrentMethodTag, setCurrentPackage
 
Methods inherited from class xdoclet.template.TemplateTagHandler
getXJavaDoc, setXJavaDoc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrutsDynaFormValidatorTagsHandler

public StrutsDynaFormValidatorTagsHandler()
Method Detail

forAllForms

public void forAllForms(java.lang.String template,
                        java.util.Properties attributes)
                 throws XDocletException
Iterates over all POJOs with dynaform tags and evaluates the body of the tag for each class.

Overrides:
forAllForms in class StrutsValidatorTagsHandler
Parameters:
template - The body of the block tag
attributes - The attributes of the template tag
Throws:
XDocletException
doc.tag
type = "block"

formName

public java.lang.String formName(java.util.Properties attributes)
                          throws XDocletException
Gets the "name" attribute for the <form> element in the xml descriptor.

Overrides:
formName in class StrutsValidatorTagsHandler
Parameters:
attributes - The content tag attributes.
Returns:
form name
Throws:
XDocletException - if anything goes awry.
doc.tag
type = "content"

forAllFields

public void forAllFields(java.lang.String template,
                         java.util.Properties attributes)
                  throws XDocletException
Iterates the body for each field of the current form requiring validation.

Overrides:
forAllFields in class StrutsValidatorTagsHandler
Parameters:
template - The body of the block tag
attributes - The attributes of the template tag
Throws:
XDocletException
doc.tag
type = "block"

http://xdoclet.sourceforge.net/