org.apache.commons.jelly.tags.core
Class InvokeTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by 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: 1807798 $
Author:
Rodney Waldhoff

Field Summary
private  java.lang.String exceptionVar
          the variable where the method's exception is exported
private  java.lang.String methodName
          the method to invoke
private  java.lang.Object onInstance
          the object to invoke the method on
private  java.util.List paramTypes
           
private  java.util.List paramValues
           
private  java.lang.String var
          the variable exported
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
InvokeTag()
           
 
Method Summary
 void addArgument(java.lang.Class type, java.lang.Object value)
           
 void doTag(XMLOutput output)
          Evaluates this tag after all the tags properties have been initialized.
 void setExceptionVar(java.lang.String var)
          Sets the name of a variable that exports the exception thrown by the method's invocation (if any)
 void setMethod(java.lang.String method)
           
 void setOn(java.lang.Object instance)
           
 void setVar(java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

var

private java.lang.String var
the variable exported


exceptionVar

private java.lang.String exceptionVar
the variable where the method's exception is exported


methodName

private java.lang.String methodName
the method to invoke


onInstance

private java.lang.Object onInstance
the object to invoke the method on


paramTypes

private java.util.List paramTypes

paramValues

private java.util.List paramValues
Constructor Detail

InvokeTag

public InvokeTag()
Method Detail

setVar

public void setVar(java.lang.String var)
Sets the name of the variable exported by this tag


setExceptionVar

public void setExceptionVar(java.lang.String var)
Sets the name of a variable that exports the exception thrown by the method's invocation (if any)


setMethod

public void setMethod(java.lang.String method)

setOn

public void setOn(java.lang.Object instance)

addArgument

public void addArgument(java.lang.Class type,
                        java.lang.Object value)
Specified by:
addArgument in interface ArgTagParent

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 interface Tag
Throws:
MissingAttributeException
JellyTagException