org.apache.commons.jelly.tags.dynabean
Class SetTag
java.lang.Object
|
+--org.apache.commons.jelly.TagSupport
|
+--org.apache.commons.jelly.tags.dynabean.SetTag
- All Implemented Interfaces:
- org.apache.commons.jelly.Tag
- public class SetTag
- extends org.apache.commons.jelly.TagSupport
A tag which sets a variable from the result of an expression
- Version:
- 1.0
- Author:
- Theo Niemeijer
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Method Summary |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
void |
setProperty(java.lang.String property)
Sets the name of the property to set on the target object. |
protected void |
setPropertyValue(java.lang.Object target,
java.lang.String property,
java.lang.Object value)
|
void |
setScope(java.lang.String scope)
Sets the variable scope for this variable. |
void |
setTarget(java.lang.Object target)
Sets the target object on which to set a property. |
void |
setValue(org.apache.commons.jelly.expression.Expression value)
Sets the expression to evaluate. |
void |
setVar(java.lang.String var)
Sets the variable name to define for this expression |
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 |
SetTag
public SetTag()
doTag
public void doTag(org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.JellyTagException
- Overrides:
doTag
in class org.apache.commons.jelly.TagSupport
setVar
public void setVar(java.lang.String var)
- Sets the variable name to define for this expression
setScope
public void setScope(java.lang.String scope)
- Sets the variable scope for this variable. For example setting this value to 'parent' will
set this value in the parent scope. When Jelly is run from inside a Servlet environment
then other scopes will be available such as 'request', 'session' or 'application'.
Other applications may implement their own custom scopes.
setValue
public void setValue(org.apache.commons.jelly.expression.Expression value)
- Sets the expression to evaluate.
setTarget
public void setTarget(java.lang.Object target)
- Sets the target object on which to set a property.
setProperty
public void setProperty(java.lang.String property)
- Sets the name of the property to set on the target object.
setPropertyValue
protected void setPropertyValue(java.lang.Object target,
java.lang.String property,
java.lang.Object value)
Copyright © 2002-2004 Apache Software Foundation. All Rights Reserved.