public class VariableContent extends org.jdom2.Text
When the WikiDocument is rendered, if the Context.VAR_WYSIWYG_EDITOR_MODE is set to Boolean.TRUE, the
variable declaration is rendered instead of the variable value.
| Constructor and Description |
|---|
VariableContent(java.lang.String varName)
Create a VariableContent for the given variable.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getText()
Returns exactly getValue().
|
java.lang.String |
getValue()
Evaluates the variable and returns the contents.
|
java.lang.String |
toString()
Returns a debug-suitable string.
|
append, append, clone, detach, getParent, getTextNormalize, getTextTrim, normalizeString, setParent, setTextpublic VariableContent(java.lang.String varName)
varName - The name of the variable.public java.lang.String getValue()
getValue in class org.jdom2.Textpublic java.lang.String getText()
getText in class org.jdom2.Textpublic java.lang.String toString()
toString in class org.jdom2.TextCopyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.