public class ProfileVariableSubstitutor
extends org.apache.commons.lang.text.StrSubstitutor
StrSubstitutor
to clean up variables that have not been replaced.StrSubstitutor| Constructor and Description |
|---|
ProfileVariableSubstitutor(org.apache.commons.lang.text.StrLookup lookup) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
replace(java.lang.String source,
boolean doCleanup)
Replaces all the occurrences of variables with their matching values from the resolver using the given source string as a template.
|
getEscapeChar, getVariablePrefixMatcher, getVariableResolver, getVariableSuffixMatcher, replace, replace, replace, replace, replace, replace, replace, replace, replace, replace, replace, replaceIn, replaceIn, replaceIn, replaceIn, replaceSystemProperties, setEscapeChar, setVariablePrefix, setVariablePrefix, setVariablePrefixMatcher, setVariableResolver, setVariableSuffix, setVariableSuffix, setVariableSuffixMatcherpublic ProfileVariableSubstitutor(org.apache.commons.lang.text.StrLookup lookup)
public java.lang.String replace(java.lang.String source,
boolean doCleanup)
doCleanup non replaced variables are removed (i.e. replaced by "").source - - the string to replace in, null returns nulldoCleanup - - True to do the clean up"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"