public class EnvironmentVariableSubstitutor
extends org.apache.commons.text.StringSubstitutor
StringSubstitutor
using environment variables as lookup source.Constructor and Description |
---|
EnvironmentVariableSubstitutor() |
EnvironmentVariableSubstitutor(boolean strict) |
EnvironmentVariableSubstitutor(boolean strict,
boolean substitutionInVariables) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
substitute(org.apache.commons.text.TextStringBuilder buf,
int offset,
int length) |
createInterpolator, getEscapeChar, getStringLookup, getValueDelimiterMatcher, getVariablePrefixMatcher, getVariableSuffixMatcher, isDisableSubstitutionInValues, isEnableSubstitutionInVariables, isEnableUndefinedVariableException, isPreserveEscapes, replace, replace, replace, replace, replace, replace, replace, replace, replace, replace, replace, replace, replace, replace, replaceIn, replaceIn, replaceIn, replaceIn, replaceIn, replaceIn, replaceSystemProperties, resolveVariable, setDisableSubstitutionInValues, setEnableSubstitutionInVariables, setEnableUndefinedVariableException, setEscapeChar, setPreserveEscapes, setValueDelimiter, setValueDelimiter, setValueDelimiterMatcher, setVariablePrefix, setVariablePrefix, setVariablePrefixMatcher, setVariableResolver, setVariableSuffix, setVariableSuffix, setVariableSuffixMatcher
public EnvironmentVariableSubstitutor()
public EnvironmentVariableSubstitutor(boolean strict)
public EnvironmentVariableSubstitutor(boolean strict, boolean substitutionInVariables)
strict
- true
if looking up undefined environment variables should throw a
UndefinedEnvironmentVariableException
, false
otherwise.substitutionInVariables
- a flag whether substitution is done in variable names.StringSubstitutor.setEnableSubstitutionInVariables(boolean)
Copyright © 2011. All rights reserved.