xdoclet.modules.apache.struts
public class StrutsValidatorTagsHandler extends AbstractProgramElementTagsHandler
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
args |
protected java.lang.String |
curFieldName |
protected java.lang.String |
currentArgKey |
protected static java.util.List |
supportedTypes |
currentToken, matchPattern, tagTokenizer
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER
Constructor and Description |
---|
StrutsValidatorTagsHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
argIndex(java.util.Properties props)
Current argument index number (0 to 3).
|
java.lang.String |
argName(java.util.Properties props)
Current argument name - only valid if argument is for a specific validator type.
|
java.lang.String |
argValue(java.util.Properties props)
Current argument value, which is either an inline value or resource key.
|
java.lang.String |
fieldName(java.util.Properties props)
Returns the current field's name, local to the indexed property if there is one.
|
void |
forAllFieldArgs(java.lang.String template,
java.util.Properties attributes)
Iterates over all arguments for the current field.
|
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 Struts Form beans 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.
|
protected java.util.Map |
getFields(xjavadoc.XClass clazz) |
protected java.util.Map |
getFields(xjavadoc.XClass clazz,
java.lang.String prefix) |
void |
ifArgIsForType(java.lang.String template,
java.util.Properties attributes)
Evaluates the body if the current argument is a validator-specific argument.
|
void |
ifArgIsResource(java.lang.String template,
java.util.Properties attributes)
Evaluates body if current argument is a resource key.
|
void |
ifArgIsValue(java.lang.String template,
java.util.Properties attributes)
Evaluates the body if the current argument is an inline value rather than a resource key.
|
void |
ifFieldIsIndexed(java.lang.String template,
java.util.Properties attributes)
Evaluates the body if the current field has an indexed component.
|
void |
ifFormHasFields(java.lang.String template,
java.util.Properties attributes)
Evaluates the body if form has fields requiring validation.
|
void |
ifNoArg0(java.lang.String template,
java.util.Properties attributes)
Evaluates the body if there is no arg0 specified.
|
java.lang.String |
indexedListProperty(java.util.Properties props)
Returns the current field's indexedListProperty attribute, if any.
|
protected void |
loadFieldArguments() |
java.lang.String |
validatorList(java.util.Properties props)
Returns a comma-separated list of the specified validator types.
|
checkForWrap, currentToken, exceptionList, firstSentenceDescriptionOfCurrentMember, forAllMembers, forAllMemberTags, forAllMemberTagTokens, getAllClasses, getClassNameFor, getFullClassNameFor, getFullSuperclassNameFor, getIndentChars, getXExecutableMemberForMemberName, getXExecutableMemberForMemberName, hasExecutableMember_OLD, hasExecutableMember, makeCopyOfArray, matchValue, memberComment, setMatchValue, skipToken
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
getXJavaDoc, setXJavaDoc
protected static final java.util.List supportedTypes
protected java.lang.String curFieldName
protected java.lang.String currentArgKey
protected java.util.Map args
public void forAllForms(java.lang.String template, java.util.Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tagXDocletException
public java.lang.String formName(java.util.Properties attributes) throws XDocletException
attributes
- The content tag attributes.XDocletException
- if anything goes awry.public void forAllFieldArgs(java.lang.String template, java.util.Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tagXDocletException
public java.lang.String argIndex(java.util.Properties props)
props
- The content tag attributes.public java.lang.String argName(java.util.Properties props)
props
- The content tag attributes.public java.lang.String argValue(java.util.Properties props)
props
- The content tag attributes.public void ifArgIsResource(java.lang.String template, java.util.Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tagXDocletException
public void ifArgIsValue(java.lang.String template, java.util.Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tagXDocletException
public void ifArgIsForType(java.lang.String template, java.util.Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tagXDocletException
public void ifNoArg0(java.lang.String template, java.util.Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tagXDocletException
public void ifFormHasFields(java.lang.String template, java.util.Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tagXDocletException
public void ifFieldIsIndexed(java.lang.String template, java.util.Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tagXDocletException
public void forAllFields(java.lang.String template, java.util.Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tagXDocletException
public java.lang.String fieldName(java.util.Properties props)
props
- The content tag attributes.public java.lang.String indexedListProperty(java.util.Properties props)
props
- The content tag attributes.public java.lang.String validatorList(java.util.Properties props)
props
- The content tag attributes.protected java.util.Map getFields(xjavadoc.XClass clazz) throws XDocletException
XDocletException
protected java.util.Map getFields(xjavadoc.XClass clazz, java.lang.String prefix) throws XDocletException
XDocletException
protected void loadFieldArguments()