Package org.apache.wiki.parser
Class VariableContent
- java.lang.Object
- 
- org.jdom2.Content
- 
- org.jdom2.Text
- 
- org.apache.wiki.parser.VariableContent
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable,- org.jdom2.NamespaceAware
 
 public class VariableContent extends org.jdom2.Text Stores the contents of a WikiVariable in a WikiDocument DOM tree.When the WikiDocument is rendered, if the Context.VAR_WYSIWYG_EDITOR_MODEis set toBoolean.TRUE, the variable declaration is rendered instead of the variable value.- Since:
- 2.4
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description VariableContent(java.lang.String varName)Create a VariableContent for the given variable.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetText()Returns exactly getValue().java.lang.StringgetValue()Evaluates the variable and returns the contents.java.lang.StringtoString()Returns a debug-suitable string.- 
Methods inherited from class org.jdom2.Textappend, append, clone, detach, getParent, getTextNormalize, getTextTrim, normalizeString, setParent, setText
 
- 
 
- 
- 
- 
Constructor Detail- 
VariableContentpublic VariableContent(java.lang.String varName) Create a VariableContent for the given variable.- Parameters:
- varName- The name of the variable.
 
 
- 
 - 
Method Detail- 
getValuepublic java.lang.String getValue() Evaluates the variable and returns the contents.- Overrides:
- getValuein class- org.jdom2.Text
- Returns:
- The rendered value of the variable.
 
 - 
getTextpublic java.lang.String getText() Returns exactly getValue().- Overrides:
- getTextin class- org.jdom2.Text
- Returns:
- Whatever getValue() returns.
 
 - 
toStringpublic java.lang.String toString() Returns a debug-suitable string.- Overrides:
- toStringin class- org.jdom2.Text
- Returns:
- Debug string
 
 
- 
 
-