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 |
---|---|
String |
replace(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, setVariableSuffixMatcher
public ProfileVariableSubstitutor(org.apache.commons.lang.text.StrLookup lookup)
public String replace(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 © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"