xdoclet.modules.apache.struts
Class StrutsFormTagsHandler
EjbTagsHandlerxdoclet.modules.apache.struts.StrutsFormTagsHandler
public class StrutsFormTagsHandler
extends EjbTagsHandler
- Dmitri Colebatch (dim@bigpond.net.au)
void | forAllFormFields(String template)- Evaluates body for all fields included in form generation
|
static String | getStrutsFormClassFor(XClass clazz)- Gets the StrutsFormClassFor attribute of the StrutsFormTagsHandler class.
|
static String | getStrutsFormClassName(XClass clazz)- Gets the StrutsFormClassName attribute of the StrutsFormTagsHandler class
|
protected static String | getStrutsFormClassPattern()- Gets the StrutsFormClassPattern attribute of the StrutsFormTagsHandler class
|
static boolean | hasFormDefinition(XClass clazz)- Return true if at least one struts:form tag is defined.
|
void | ifUseMethodInForm(String template)- Evaluates the body if the method belongs in a given form.
|
String | strutsFormClass()- Return the class name for the current class.
|
String | strutsFormName()
|
protected boolean | useMethodInForm(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".
|
forAllFormFields
public void forAllFormFields(String template)
throws xdoclet.XDocletException Evaluates body for all fields included in form generation
template - The body of the block tag
xdoclet.XDocletException - Description of Exception
getStrutsFormClassFor
public static String getStrutsFormClassFor(XClass clazz)
throws xdoclet.XDocletException Gets the StrutsFormClassFor attribute of the StrutsFormTagsHandler class.
clazz - Describe what the parameter does
- The StrutsFormClassFor value
xdoclet.XDocletException - Describe the exception
getStrutsFormClassName
public static String getStrutsFormClassName(XClass clazz)
throws xdoclet.XDocletException Gets the StrutsFormClassName attribute of the StrutsFormTagsHandler class
clazz - Describe what the parameter does
- The StrutsFormClassName value
xdoclet.XDocletException - Describe the exception
getStrutsFormClassPattern
protected static String getStrutsFormClassPattern()
Gets the StrutsFormClassPattern attribute of the StrutsFormTagsHandler class
- The StrutsFormClassPattern value
hasFormDefinition
public static boolean hasFormDefinition(XClass clazz)
throws xdoclet.XDocletException Return true if at least one struts:form tag is defined.
- whether class has struts:form tag defined
xdoclet.XDocletException - Description of Exception
ifUseMethodInForm
public void ifUseMethodInForm(String template)
throws xdoclet.XDocletException Evaluates the body if the method belongs in a given form.
template - The body of the block tag
xdoclet.XDocletException -
strutsFormClass
public String strutsFormClass()
throws xdoclet.XDocletException Return the class name for the current class.
- Description of the Returned Value
xdoclet.XDocletException - Description of Exception
strutsFormName
public String strutsFormName()
throws xdoclet.XDocletException- Description of the Returned Value
xdoclet.XDocletException - Description of Exception
useMethodInForm
protected boolean useMethodInForm(XMethod method)
throws xdoclet.XDocletException Check that method has struts:form-field tag with valid name, or is pk field (and pk fields are included) or
include-all="true".
method - Description of Parameter
- Description of the Returned Value
xdoclet.XDocletException - Description of Exception