Class InvokeTag
- java.lang.Object
-
- org.apache.commons.jelly.TagSupport
-
- org.apache.commons.jelly.tags.core.InvokeTag
-
- All Implemented Interfaces:
Tag
,ArgTagParent
public class InvokeTag extends TagSupport implements ArgTagParent
A tag which calls a method in an object instantied by core:new- Version:
- $Revision: 155420 $
- Author:
- Rodney Waldhoff
-
-
Field Summary
-
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, parent
-
-
Constructor Summary
Constructors Constructor Description InvokeTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArgument(Class type, Object value)
void
doTag(XMLOutput output)
Evaluates this tag after all the tags properties have been initialized.void
setExceptionVar(String var)
Sets the name of a variable that exports the exception thrown by the method's invocation (if any)void
setMethod(String method)
void
setOn(Object instance)
void
setVar(String var)
Sets the name of the variable exported by this tag-
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
-
-
-
-
Method Detail
-
setVar
public void setVar(String var)
Sets the name of the variable exported by this tag
-
setExceptionVar
public void setExceptionVar(String var)
Sets the name of a variable that exports the exception thrown by the method's invocation (if any)
-
setMethod
public void setMethod(String method)
-
setOn
public void setOn(Object instance)
-
addArgument
public void addArgument(Class type, Object value)
- Specified by:
addArgument
in interfaceArgTagParent
-
doTag
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException
Description copied from interface:Tag
Evaluates this tag after all the tags properties have been initialized.- Specified by:
doTag
in interfaceTag
- Throws:
MissingAttributeException
JellyTagException
-
-