com.ecyrd.jspwiki.parser
Class VariableContent
java.lang.Object
org.jdom.Content
org.jdom.Text
com.ecyrd.jspwiki.parser.VariableContent
- All Implemented Interfaces:
- Serializable, Cloneable
public class VariableContent
- extends Text
Stores the contents of a WikiVariable in a WikiDocument DOM tree.
When the WikiDocument is rendered, if the RenderingManager.WYSIWYG_EDITOR_MODE
is set to Boolean.TRUE
, the variable declaration is rendered instead
of the variable value.
- Since:
- 2.4
- See Also:
- Serialized Form
Fields inherited from class org.jdom.Text |
value |
VariableContent
public VariableContent(String varName)
- Create a VariableContent for the given variable.
- Parameters:
varName
- The name of the variable.
getValue
public String getValue()
- Evaluates the variable and returns the contents.
- Overrides:
getValue
in class Text
- Returns:
- The rendered value of the variable.
getText
public String getText()
- Returns exactly getValue().
- Overrides:
getText
in class Text
- Returns:
- Whatever getValue() returns.
toString
public String toString()
- Returns a debug-suitable string.
- Overrides:
toString
in class Text
- Returns:
- Debug string