xdoclet.modules.apache.bsf
Class BsfEngineTagHandler
java.lang.Object
xdoclet.template.TemplateTagHandler
xdoclet.XDocletTagSupport
xdoclet.tagshandler.AbstractProgramElementTagsHandler
xdoclet.modules.apache.ScriptEngineTagHandler
xdoclet.modules.apache.bsf.BsfEngineTagHandler
- public class BsfEngineTagHandler
- extends ScriptEngineTagHandler
This is a tag handler able to execute BSF engine on a block!
- Author:
- zluspai
- xdoclet.taghandler
- namespace="Bsf"
- created
- July 16, 2003
Method Summary |
void |
clearVariables()
Clear all BSF variables |
void |
generator(String template,
Properties attributes)
Evaluates the body block with the BSF script If the silent="yes" attribute is set then the Generator will not
produce any output, but the template will run. |
String |
getVariable(Properties attributes)
Get a value of a BSF variable |
Methods inherited from class xdoclet.tagshandler.AbstractProgramElementTagsHandler |
checkForWrap, currentToken, exceptionList, firstSentenceDescriptionOfCurrentMember, forAllMembers, forAllMemberTags, forAllMemberTagTokens, getAllClasses, getClassNameFor, getFullClassNameFor, getFullSuperclassNameFor, getIndentChars, getXExecutableMemberForMemberName, getXExecutableMemberForMemberName, hasExecutableMember_OLD, hasExecutableMember, makeCopyOfArray, matchValue, memberComment, setMatchValue, skipToken |
Methods inherited from class xdoclet.XDocletTagSupport |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BsfEngineTagHandler
public BsfEngineTagHandler()
getVariable
public String getVariable(Properties attributes)
throws XDocletException
- Get a value of a BSF variable
- Parameters:
attributes
-
- Returns:
-
- Throws:
XDocletException
- doc.tag
- type="content"
generator
public void generator(String template,
Properties attributes)
throws TemplateException
- Evaluates the body block with the BSF script If the silent="yes" attribute is set then the Generator will not
produce any output, but the template will run. If the disable="yes" attribute is set then the Velocity template
will not run at all.
- Parameters:
template
- The body of the block tagattributes
- The attributes of the template tag
- Throws:
TemplateException
- doc.tag
- type="block"
clearVariables
public void clearVariables()
throws XDocletException
- Clear all BSF variables
- Throws:
XDocletException
- doc.tag
- type="content"