Package org.apache.commons.jelly.impl
Class TextScript
- java.lang.Object
-
- org.apache.commons.jelly.impl.TextScript
-
- All Implemented Interfaces:
Script
public class TextScript extends Object implements Script
TextScript
outputs some static text.- Version:
- $Revision: 155420 $
- Author:
- James Strachan
-
-
Constructor Summary
Constructors Constructor Description TextScript()
TextScript(String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Script
compile()
Called by the parser to allow a more efficient representation of the script to be used.String
getText()
void
run(JellyContext context, XMLOutput output)
Evaluates the body of a tagvoid
setText(String text)
Sets the text output by this scriptString
toString()
void
trimWhitespace()
Trims whitespace if this is ignorable whitespace.
-
-
-
Constructor Detail
-
TextScript
public TextScript()
-
TextScript
public TextScript(String text)
-
-
Method Detail
-
trimWhitespace
public void trimWhitespace()
Trims whitespace if this is ignorable whitespace.
-
getText
public String getText()
- Returns:
- the text output by this script
-
setText
public void setText(String text)
Sets the text output by this script
-
compile
public Script compile()
Description copied from interface:Script
Called by the parser to allow a more efficient representation of the script to be used.
-
run
public void run(JellyContext context, XMLOutput output) throws JellyTagException
Evaluates the body of a tag- Specified by:
run
in interfaceScript
- Throws:
JellyTagException
-
-