xdoclet.modules.apache.struts
public class ActionFormTagsHandler extends XDocletTagSupport
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER
Constructor and Description |
---|
ActionFormTagsHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
actionFormClass()
Return the class name for the current class.
|
java.lang.String |
actionFormName() |
void |
forAllFormFields(java.lang.String template)
Evaluates body for all fields included in form generation
|
static java.lang.String |
getActionFormClassFor(xjavadoc.XClass clazz)
Gets the ActionFormClassFor attribute of the ActionFormTagsHandler class.
|
static java.lang.String |
getActionFormClassName(xjavadoc.XClass clazz)
Gets the ActionFormClassName attribute of the ActionFormTagsHandler class
|
protected static java.lang.String |
getActionFormClassPattern()
Gets the ActionFormClassPattern attribute of the ActionFormTagsHandler class
|
static boolean |
hasFormDefinition(xjavadoc.XClass clazz)
Return true if at least one struts:form tag is defined.
|
void |
ifUseMethodInForm(java.lang.String template)
Evaluates the body if the method belongs in a given form.
|
protected boolean |
useMethodInForm(xjavadoc.XMethod method)
Check that method has struts:form-field tag with valid name, or is pk field (and pk fields are included) or
include-all="true".
|
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
public static java.lang.String getActionFormClassFor(xjavadoc.XClass clazz) throws XDocletException
clazz
- Describe what the parameter doesXDocletException
- Describe the exceptionpublic static java.lang.String getActionFormClassName(xjavadoc.XClass clazz) throws XDocletException
clazz
- Describe what the parameter doesXDocletException
- Describe the exceptionpublic static boolean hasFormDefinition(xjavadoc.XClass clazz) throws XDocletException
clazz
- Class to checkXDocletException
- Description of Exceptionprotected static java.lang.String getActionFormClassPattern()
public java.lang.String actionFormClass() throws XDocletException
XDocletException
- Description of Exceptionpublic java.lang.String actionFormName() throws XDocletException
XDocletException
- Description of Exceptionpublic void forAllFormFields(java.lang.String template) throws XDocletException
template
- The body of the block tagXDocletException
- Description of Exceptionpublic void ifUseMethodInForm(java.lang.String template) throws XDocletException
template
- The body of the block tagXDocletException
protected boolean useMethodInForm(xjavadoc.XMethod method) throws XDocletException
method
- Description of ParameterXDocletException
- Description of Exception