public class ProfileVariableSubstitutor extends StrSubstitutor
StrSubstitutor
to clean up variables that have not been replaced.StrSubstitutor
DEFAULT_ESCAPE, DEFAULT_PREFIX, DEFAULT_SUFFIX
Constructor and Description |
---|
ProfileVariableSubstitutor(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, isEnableSubstitutionInVariables, replace, replace, replace, replace, replace, replace, replace, replace, replace, replace, replace, replace, replaceIn, replaceIn, replaceIn, replaceIn, replaceSystemProperties, setEnableSubstitutionInVariables, setEscapeChar, setVariablePrefix, setVariablePrefix, setVariablePrefixMatcher, setVariableResolver, setVariableSuffix, setVariableSuffix, setVariableSuffixMatcher
public ProfileVariableSubstitutor(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 upCopyright © 2010 - 2020 Adobe. All Rights Reserved