|
||||||||||
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.spring.SpringValidatorTagsHandler
public class SpringValidatorTagsHandler
Spring Validator tag handler tags
Field Summary |
---|
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 | |
---|---|
SpringValidatorTagsHandler()
|
Method Summary | |
---|---|
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 fields name. |
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 POJOs 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. |
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 |
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 |
validatorList(java.util.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 |
Constructor Detail |
---|
public SpringValidatorTagsHandler()
Method Detail |
---|
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 tag
XDocletException
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 tag
XDocletException
public java.lang.String argIndex(java.util.Properties props)
props
- The attributes of the template tag
public java.lang.String argName(java.util.Properties props)
props
- The attributes of the template tag
public java.lang.String argValue(java.util.Properties props)
props
- The attributes of the template tag
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 tag
XDocletException
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 tag
XDocletException
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 tag
XDocletException
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 tag
XDocletException
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 tag
XDocletException
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 tag
XDocletException
public java.lang.String fieldName(java.util.Properties props)
props
- The attributes of the template tag
public java.lang.String validatorList(java.util.Properties props)
props
- The attributes of the template tag
|
http://xdoclet.sourceforge.net/ | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |