public class VariablePool
extends org.pfsw.textx.GlobalLocalPlaceholderReplacement
| Constructor and Description |
|---|
VariablePool()
Initialize the new instance with default values.
|
| Modifier and Type | Method and Description |
|---|---|
VariablePool |
copy()
Returns a copy of the local variables which ensures that changes to
it won't effect the original variables.
|
java.lang.String |
fillInVariables(java.lang.String text)
Replaces all text fragments by variable definitions as they can be
found in this variable pool.
|
Variables |
getGlobalVariables()
Returns the globally defined key/value pairs
|
Variables |
getLocalVariables()
Returns the locally defined key/value pairs
|
protected int |
getReplacements() |
boolean |
isEqual(VariablePool varPool)
Returns true if the given variable pool contains the same variables
as this one.
|
java.lang.String |
replace(java.lang.String text)
Replace all variables in the given text
|
getFunctionResolver, getTextEngine, setFunctionResolver, setTextEnginegetGlobalVars, getLocalVars, getValue, globalVariables, isKnownVariable, knownVariableNames, localVariables, newGlobalContext, newLocalContext, removeVariable, set, setGlobal, setGlobalFrom, setGlobalObject, setGlobalVars, setLocal, setLocalFrom, setLocalObject, setLocalVars, setValue, setValueFor, setVariablesFrompublic VariablePool()
public java.lang.String replace(java.lang.String text)
throws org.pfsw.textx.TextReplacementException
replace in class org.pfsw.textx.GlobalLocalPlaceholderReplacementorg.pfsw.textx.TextReplacementExceptionpublic Variables getLocalVariables()
public Variables getGlobalVariables()
public VariablePool copy()
public boolean isEqual(VariablePool varPool)
public java.lang.String fillInVariables(java.lang.String text)
protected int getReplacements()