Example usage for Java org.apache.commons.lang.text StrSubstitutor fields, constructors, methods, implement or subclass
The text is from its open source code.
char | DEFAULT_ESCAPE Constant for the default escape character. |
StrSubstitutor(Map valueMap) Creates a new instance and initializes it. | |
StrSubstitutor(StrLookup variableResolver) Creates a new instance and initializes it. | |
StrSubstitutor(Map valueMap, String prefix, String suffix) Creates a new instance and initializes it. | |
StrSubstitutor(Map valueMap, String prefix, String suffix, char escape) Creates a new instance and initializes it. | |
StrSubstitutor(StrLookup variableResolver, String prefix, String suffix, char escape) Creates a new instance and initializes it. | |
StrSubstitutor(StrLookup variableResolver, StrMatcher prefixMatcher, StrMatcher suffixMatcher, char escape) Creates a new instance and initializes it. |
StrLookup | getVariableResolver() Gets the VariableResolver that is used to lookup variables. |
String | replace(String source) Replaces all the occurrences of variables with their matching values from the resolver using the given source string as a template. |
String | replace(char[] source) Replaces all the occurrences of variables with their matching values from the resolver using the given source array as a template. |
String | replace(StringBuffer source) Replaces all the occurrences of variables with their matching values from the resolver using the given source buffer as a template. |
String | replace(StrBuilder source) Replaces all the occurrences of variables with their matching values from the resolver using the given source builder as a template. |
String | replace(Object source) Replaces all the occurrences of variables in the given source object with their matching values from the resolver. |
String | replace(Object source, Map valueMap) Replaces all the occurrences of variables in the given source object with their matching values from the map. |
String | replace(Object source, Map valueMap, String prefix, String suffix) Replaces all the occurrences of variables in the given source object with their matching values from the map. |
String | replaceSystemProperties(Object source) Replaces all the occurrences of variables in the given source object with their matching values from the system properties. |
StrSubstitutor | setVariablePrefix(char prefix) Sets the variable prefix to use. |
StrSubstitutor | setVariablePrefix(String prefix) Sets the variable prefix to use. |
void | setVariableResolver(StrLookup variableResolver) Sets the VariableResolver that is used to lookup variables. |
StrSubstitutor | setVariableSuffix(char suffix) Sets the variable suffix to use. |
StrSubstitutor | setVariableSuffix(String suffix) Sets the variable suffix to use. |