Package | Description |
---|---|
org.apache.commons.lang3.text |
Provides classes for handling and manipulating text, partly as an extension to
java.text . |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
StrLookup.MapStrLookup<V>
Lookup implementation that uses a Map.
|
private static class |
StrLookup.SystemPropertiesStrLookup
Lookup implementation based on system properties.
|
Modifier and Type | Field and Description |
---|---|
private static StrLookup<java.lang.String> |
StrLookup.NONE_LOOKUP
Lookup that always returns null.
|
private static StrLookup<java.lang.String> |
StrLookup.SYSTEM_PROPERTIES_LOOKUP
Lookup based on system properties.
|
private StrLookup<?> |
StrSubstitutor.variableResolver
Variable resolution is delegated to an implementor of VariableResolver.
|
Modifier and Type | Method and Description |
---|---|
StrLookup<?> |
StrSubstitutor.getVariableResolver()
Gets the VariableResolver that is used to lookup variables.
|
static <V> StrLookup<V> |
StrLookup.mapLookup(java.util.Map<java.lang.String,V> map)
Returns a lookup which looks up values using a map.
|
static StrLookup<?> |
StrLookup.noneLookup()
Returns a lookup which always returns null.
|
static StrLookup<java.lang.String> |
StrLookup.systemPropertiesLookup()
Returns a new lookup which uses a copy of the current
System properties . |
Modifier and Type | Method and Description |
---|---|
void |
StrSubstitutor.setVariableResolver(StrLookup<?> variableResolver)
Sets the VariableResolver that is used to lookup variables.
|
Constructor and Description |
---|
StrSubstitutor(StrLookup<?> variableResolver)
Creates a new instance and initializes it.
|
StrSubstitutor(StrLookup<?> variableResolver,
java.lang.String prefix,
java.lang.String suffix,
char escape)
Creates a new instance and initializes it.
|
StrSubstitutor(StrLookup<?> variableResolver,
java.lang.String prefix,
java.lang.String suffix,
char escape,
java.lang.String valueDelimiter)
Creates a new instance and initializes it.
|
StrSubstitutor(StrLookup<?> variableResolver,
StrMatcher prefixMatcher,
StrMatcher suffixMatcher,
char escape)
Creates a new instance and initializes it.
|
StrSubstitutor(StrLookup<?> variableResolver,
StrMatcher prefixMatcher,
StrMatcher suffixMatcher,
char escape,
StrMatcher valueDelimiterMatcher)
Creates a new instance and initializes it.
|