Class SetTag
java.lang.Object
org.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.core.SetTag
- All Implemented Interfaces:
Tag
Deprecated.
A tag which sets a variable from the result of an expression
- Version:
- $Revision: 155420 $
- Author:
- James Strachan
-
Field Summary
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Evaluates this tag after all the tags properties have been initialized.protected booleanDeprecated.booleanisEncode()Deprecated.Returns whether the body of this tag will be XML encoded or not.voidsetDefaultValue(Expression defaultValue) Deprecated.Sets the default value to be used if the value exprsesion results in a null value or blank StringvoidsetEncode(boolean encode) Deprecated.Sets whether the body of the tag should be XML encoded as text (so that < and > are encoded as < and >) or leave the text as XML which is the default.voidsetProperty(String property) Deprecated.Sets the name of the property to set on the target object.protected voidsetPropertyValue(Object target, String property, Object value) Deprecated.voidDeprecated.Sets the variable scope for this variable.voidDeprecated.Sets the target object on which to set a property.voidsetValue(Expression value) Deprecated.Sets the expression to evaluate.voidDeprecated.Sets the variable name to define for this expressionMethods 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
-
Constructor Details
-
SetTag
public SetTag()Deprecated.
-
-
Method Details
-
doTag
Deprecated.Description copied from interface:TagEvaluates this tag after all the tags properties have been initialized.- Throws:
JellyTagException
-
setVar
Deprecated.Sets the variable name to define for this expression -
setScope
Deprecated.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
Deprecated.Sets the expression to evaluate. -
setDefaultValue
Deprecated.Sets the default value to be used if the value exprsesion results in a null value or blank String -
setTarget
Deprecated.Sets the target object on which to set a property. -
setProperty
Deprecated.Sets the name of the property to set on the target object. -
isEncode
public boolean isEncode()Deprecated.Returns whether the body of this tag will be XML encoded or not. -
setEncode
public void setEncode(boolean encode) Deprecated.Sets whether the body of the tag should be XML encoded as text (so that < and > are encoded as < and >) or leave the text as XML which is the default. This is only used if this tag is specified with no value so that the text body of this tag is used as the body. -
setPropertyValue
Deprecated. -
isEmpty
Deprecated.- Parameters:
value-- Returns:
- true if the given value is null or an empty String
-
TagScriptinCoreTagLibrary