xdoclet.modules.apache.struts
public class StrutsFormTagsHandler extends EjbTagsHandler
ALL, LOCAL_SUFFIX, SERVICE_ENDPOINT, SERVICE_ENDPOINT_SUFFIX
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER
Constructor and Description |
---|
StrutsFormTagsHandler() |
Modifier and Type | Method and Description |
---|---|
void |
forAllFormFields(java.lang.String template)
Evaluates body for all fields included in form generation
|
static java.lang.String |
getStrutsFormClassFor(xjavadoc.XClass clazz)
Gets the StrutsFormClassFor attribute of the StrutsFormTagsHandler class.
|
static java.lang.String |
getStrutsFormClassName(xjavadoc.XClass clazz)
Gets the StrutsFormClassName attribute of the StrutsFormTagsHandler class
|
protected static java.lang.String |
getStrutsFormClassPattern()
Gets the StrutsFormClassPattern attribute of the StrutsFormTagsHandler 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.
|
java.lang.String |
strutsFormClass()
Return the class name for the current class.
|
java.lang.String |
strutsFormName() |
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".
|
beanType, choosePackage, concreteFullClassName, ejbExternalRefName, ejbName, ejbRefName, ejbRefName, extendsFromFor, forAllBeans, getDependentClassFor, getDependentClassTagName, getEjb, getEjbIdFor, getEjbNameFor, getEjbSpec, getShortEjbNameFor, hasTransaction, id, ifIsAConcreteEJBean, ifLocalEjb, ifNotLocalEjb, ifNotRemoteEjb, ifNotServiceEndpointEjb, ifRemoteEjb, ifServiceEndpointEjb, isAConcreteEJBean, isEjb, isLocalEjb, isOnlyLocalEjb, isOnlyRemoteEjb, isOnlyServiceEndpointEjb, isRemoteEjb, isServiceEndpointEjb, prefixWithEjbSlash, shortEjbName, shouldTraverseSuperclassForDependentClass, symbolicClassName
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 getStrutsFormClassFor(xjavadoc.XClass clazz) throws XDocletException
clazz
- Describe what the parameter doesXDocletException
- Describe the exceptionpublic static java.lang.String getStrutsFormClassName(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 getStrutsFormClassPattern()
public java.lang.String strutsFormClass() throws XDocletException
XDocletException
- Description of Exceptionpublic java.lang.String strutsFormName() 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