|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxdoclet.template.TemplateTagHandler
xdoclet.XDocletTagSupport
xdoclet.tagshandler.AbstractProgramElementTagsHandler
xdoclet.modules.apache.struts.StrutsValidatorTagsHandler
Struts Validator tag handler tags
Field Summary | |
protected Map |
args
|
protected String |
curFieldName
|
protected String |
currentArgKey
|
protected static List |
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 | |
StrutsValidatorTagsHandler()
|
Method Summary | |
String |
argIndex(Properties props)
Current argument index number (0 to 3). |
String |
argName(Properties props)
Current argument name - only valid if argument is for a specific validator type. |
String |
argValue(Properties props)
Current argument value, which is either an inline value or resource key. |
String |
fieldName(Properties props)
Returns the current field's name, local to the indexed property if there is one. |
void |
forAllFieldArgs(String template,
Properties attributes)
Iterates over all arguments for the current field. |
void |
forAllFields(String template,
Properties attributes)
Iterates the body for each field of the current form requiring validation. |
void |
forAllForms(String template,
Properties attributes)
Iterates over all Struts Form beans and evaluates the body of the tag for each class. |
String |
formName(Properties attributes)
Gets the "name" attribute for the <form> element in the xml descriptor. |
protected Map |
getFields(xjavadoc.XClass clazz)
|
protected Map |
getFields(xjavadoc.XClass clazz,
String prefix)
|
void |
ifArgIsForType(String template,
Properties attributes)
Evaluates the body if the current argument is a validator-specific argument. |
void |
ifArgIsResource(String template,
Properties attributes)
Evaluates body if current argument is a resource key. |
void |
ifArgIsValue(String template,
Properties attributes)
Evaluates the body if the current argument is an inline value rather than a resource key. |
void |
ifFieldIsIndexed(String template,
Properties attributes)
Evaluates the body if the current field has an indexed component. |
void |
ifFormHasFields(String template,
Properties attributes)
Evaluates the body if form has fields requiring validation. |
void |
ifNoArg0(String template,
Properties attributes)
Evaluates the body if there is no arg0 specified. |
String |
indexedListProperty(Properties props)
Returns the current field's indexedListProperty attribute, if any. |
protected void |
loadFieldArguments()
|
String |
validatorList(Properties props)
Returns a comma-separated list of the specified validator types. |
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 |
Field Detail |
protected static final List supportedTypes
protected String curFieldName
protected String currentArgKey
protected Map args
Constructor Detail |
public StrutsValidatorTagsHandler()
Method Detail |
public void forAllForms(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
public String formName(Properties attributes) throws XDocletException
attributes
- The content tag attributes.
XDocletException
- if anything goes awry.public void forAllFieldArgs(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
public String argIndex(Properties props)
props
- The content tag attributes.
public String argName(Properties props)
props
- The content tag attributes.
public String argValue(Properties props)
props
- The content tag attributes.
public void ifArgIsResource(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
public void ifArgIsValue(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
public void ifArgIsForType(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
public void ifNoArg0(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
public void ifFormHasFields(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
public void ifFieldIsIndexed(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
public void forAllFields(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
public String fieldName(Properties props)
props
- The content tag attributes.
public String indexedListProperty(Properties props)
props
- The content tag attributes.
public String validatorList(Properties props)
props
- The content tag attributes.
protected Map getFields(xjavadoc.XClass clazz) throws XDocletException
XDocletException
protected Map getFields(xjavadoc.XClass clazz, String prefix) throws XDocletException
XDocletException
protected void loadFieldArguments()
|
http://xdoclet.sourceforge.net/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |