Uses of Interface
org.apache.commons.text.lookup.StringLookup
-
Packages that use StringLookup Package Description org.apache.commons.text Basic classes for text handling.org.apache.commons.text.lookup Provides algorithms for looking up strings for use with aStringSubstitutor
. -
-
Uses of StringLookup in org.apache.commons.text
Classes in org.apache.commons.text that implement StringLookup Modifier and Type Class Description class
StrLookup<V>
Deprecated.Deprecated as of 1.3, useStringLookupFactory
instead.(package private) static class
StrLookup.MapStrLookup<V>
Deprecated.Lookup implementation that uses a Map.private static class
StrLookup.ResourceBundleLookup
Deprecated.Lookup implementation based on a ResourceBundle.private static class
StrLookup.SystemPropertiesStrLookup
Deprecated.Lookup implementation based on system properties.Fields in org.apache.commons.text declared as StringLookup Modifier and Type Field Description private StringLookup
StringSubstitutor. variableResolver
Variable resolution is delegated to an implementor ofStringLookup
.Methods in org.apache.commons.text that return StringLookup Modifier and Type Method Description StringLookup
StringSubstitutor. getStringLookup()
Gets the StringLookup that is used to lookup variables.Methods in org.apache.commons.text with parameters of type StringLookup Modifier and Type Method Description StringSubstitutor
StringSubstitutor. setVariableResolver(StringLookup variableResolver)
Sets the VariableResolver that is used to lookup variables.Constructors in org.apache.commons.text with parameters of type StringLookup Constructor Description StringSubstitutor(StringLookup variableResolver)
Creates a new instance and initializes it.StringSubstitutor(StringLookup variableResolver, java.lang.String prefix, java.lang.String suffix, char escape)
Creates a new instance and initializes it.StringSubstitutor(StringLookup variableResolver, java.lang.String prefix, java.lang.String suffix, char escape, java.lang.String valueDelimiter)
Creates a new instance and initializes it.StringSubstitutor(StringLookup variableResolver, StringMatcher prefixMatcher, StringMatcher suffixMatcher, char escape)
Creates a new instance and initializes it.StringSubstitutor(StringLookup variableResolver, StringMatcher prefixMatcher, StringMatcher suffixMatcher, char escape, StringMatcher valueDelimiterMatcher)
Creates a new instance and initializes it. -
Uses of StringLookup in org.apache.commons.text.lookup
Subinterfaces of StringLookup in org.apache.commons.text.lookup Modifier and Type Interface Description interface
BiStringLookup<U>
Lookups a String key for a String value.Classes in org.apache.commons.text.lookup that implement StringLookup Modifier and Type Class Description (package private) class
AbstractStringLookup
A default lookup for others to extend in this package.(package private) class
BiFunctionStringLookup<P,R>
A function-based lookup where the request for a lookup is answered by applying that function with a key.(package private) class
ConstantStringLookup
Looks up the value of a fully-qualified static final value.(package private) class
DateStringLookup
Formats the current date with the format given in the key in a format compatible withSimpleDateFormat
.(package private) class
DnsStringLookup
Looks up keys related to DNS entries like host name, canonical host name, host address.(package private) class
FileStringLookup
Looks up keys from a file.(package private) class
FunctionStringLookup<V>
A function-based lookup where the request for a lookup is answered by applying that function with a key.(package private) class
InterpolatorStringLookup
Proxies otherStringLookup
s using a keys within ${} markers using the format "${StringLookup:Key}".(package private) class
JavaPlatformStringLookup
Looks up keys related to Java: Java version, JRE version, VM version, and so on.(package private) class
LocalHostStringLookup
Looks up keys related to the local host: host name, canonical host name, host address.(package private) class
PropertiesStringLookup
Looks up keys from a properties file.(package private) class
ResourceBundleStringLookup
Looks up keys from resource bundles.(package private) class
ScriptStringLookup
Executes the script with the given engine name.(package private) class
UrlDecoderStringLookup
Decodes URL Strings using the UTF-8 encoding.(package private) class
UrlEncoderStringLookup
Encodes URL Strings using the UTF-8 encoding.(package private) class
UrlStringLookup
Looks up keys from an XML document.(package private) class
XmlStringLookup
Looks up keys from an XML document.Fields in org.apache.commons.text.lookup declared as StringLookup Modifier and Type Field Description private StringLookup
InterpolatorStringLookup. defaultStringLookup
The default string lookup.private StringLookup
DefaultStringLookup. lookup
The associated lookup instance.Fields in org.apache.commons.text.lookup with type parameters of type StringLookup Modifier and Type Field Description private java.util.Map<java.lang.String,StringLookup>
StringLookupFactory.DefaultStringLookupsHolder. defaultStringLookups
Default string lookup map.private java.util.Map<java.lang.String,StringLookup>
InterpolatorStringLookup. stringLookupMap
The map of String lookups keyed by prefix.Methods in org.apache.commons.text.lookup that return StringLookup Modifier and Type Method Description StringLookup
StringLookupFactory. base64DecoderStringLookup()
Returns the Base64DecoderStringLookup singleton instance to decode Base64 strings.StringLookup
StringLookupFactory. base64EncoderStringLookup()
Returns the Base64EncoderStringLookup singleton instance to encode strings to Base64.StringLookup
StringLookupFactory. base64StringLookup()
Deprecated.StringLookup
StringLookupFactory. constantStringLookup()
Returns the ConstantStringLookup singleton instance to look up the value of a fully-qualified static final value.StringLookup
StringLookupFactory. dateStringLookup()
Returns the DateStringLookup singleton instance to format the current date with the format given in the key in a format compatible withSimpleDateFormat
.StringLookup
StringLookupFactory. dnsStringLookup()
Returns the DnsStringLookup singleton instance where the lookup key is one of: name: for the local host name, for exampleEXAMPLE
but alsoEXAMPLE.apache.org
. canonical-name: for the local canonical host name, for exampleEXAMPLE.apache.org
. address: for the local host address, for example192.168.56.1
.StringLookup
StringLookupFactory. environmentVariableStringLookup()
Returns the EnvironmentVariableStringLookup singleton instance where the lookup key is an environment variable name.StringLookup
StringLookupFactory. fileStringLookup()
Returns the FileStringLookup singleton instance.<R> StringLookup
StringLookupFactory. functionStringLookup(java.util.function.Function<java.lang.String,R> function)
Returns a new function-based lookup where the request for a lookup is answered by applying the function with a lookup key.StringLookup
DefaultStringLookup. getStringLookup()
Returns the standardStringLookup
instance of this kind.StringLookup
StringLookupFactory. interpolatorStringLookup()
Returns aInterpolatorStringLookup
containing the configureddefault lookups
.StringLookup
StringLookupFactory. interpolatorStringLookup(java.util.Map<java.lang.String,StringLookup> stringLookupMap, StringLookup defaultStringLookup, boolean addDefaultLookups)
Returns a new InterpolatorStringLookup.<V> StringLookup
StringLookupFactory. interpolatorStringLookup(java.util.Map<java.lang.String,V> map)
Returns a new InterpolatorStringLookup using the given key-value pairs and the configureddefault lookups
to resolve variables.StringLookup
StringLookupFactory. interpolatorStringLookup(StringLookup defaultStringLookup)
Returns a new InterpolatorStringLookup using the given lookup and the configureddefault lookups
to resolve variables.StringLookup
StringLookupFactory. javaPlatformStringLookup()
Returns the JavaPlatformStringLookup singleton instance.StringLookup
StringLookupFactory. localHostStringLookup()
Returns the LocalHostStringLookup singleton instance where the lookup key is one of: name: for the local host name, for exampleEXAMPLE
. canonical-name: for the local canonical host name, for exampleEXAMPLE.apache.org
. address: for the local host address, for example192.168.56.1
.<V> StringLookup
StringLookupFactory. mapStringLookup(java.util.Map<java.lang.String,V> map)
Returns a new map-based lookup where the request for a lookup is answered with the value for that key.StringLookup
StringLookupFactory. nullStringLookup()
Returns the NullStringLookup singleton instance which always returns null.StringLookup
StringLookupFactory. propertiesStringLookup()
Returns the PropertiesStringLookup singleton instance.StringLookup
StringLookupFactory. resourceBundleStringLookup()
Returns the ResourceBundleStringLookup singleton instance.StringLookup
StringLookupFactory. resourceBundleStringLookup(java.lang.String bundleName)
Returns a ResourceBundleStringLookup instance for the given bundle name.StringLookup
StringLookupFactory. scriptStringLookup()
Returns the ScriptStringLookup singleton instance.StringLookup
StringLookupFactory. systemPropertyStringLookup()
Returns the SystemPropertyStringLookup singleton instance where the lookup key is a system property name.StringLookup
StringLookupFactory. urlDecoderStringLookup()
Returns the UrlDecoderStringLookup singleton instance.StringLookup
StringLookupFactory. urlEncoderStringLookup()
Returns the UrlDecoderStringLookup singleton instance.StringLookup
StringLookupFactory. urlStringLookup()
Returns the UrlStringLookup singleton instance.StringLookup
StringLookupFactory. xmlStringLookup()
Returns the XmlStringLookup singleton instance.Methods in org.apache.commons.text.lookup that return types with arguments of type StringLookup Modifier and Type Method Description private static java.util.Map<java.lang.String,StringLookup>
StringLookupFactory.DefaultStringLookupsHolder. createDefaultStringLookups()
Create the lookup map used when the user has requested no customization.(package private) java.util.Map<java.lang.String,StringLookup>
StringLookupFactory.DefaultStringLookupsHolder. getDefaultStringLookups()
Get the default string lookups map.java.util.Map<java.lang.String,StringLookup>
InterpolatorStringLookup. getStringLookupMap()
Gets the lookup map.private static java.util.Map<java.lang.String,StringLookup>
StringLookupFactory.DefaultStringLookupsHolder. parseStringLookups(java.lang.String str)
Construct a lookup map by parsing the given string.Methods in org.apache.commons.text.lookup with parameters of type StringLookup Modifier and Type Method Description StringLookup
StringLookupFactory. interpolatorStringLookup(java.util.Map<java.lang.String,StringLookup> stringLookupMap, StringLookup defaultStringLookup, boolean addDefaultLookups)
Returns a new InterpolatorStringLookup.StringLookup
StringLookupFactory. interpolatorStringLookup(StringLookup defaultStringLookup)
Returns a new InterpolatorStringLookup using the given lookup and the configureddefault lookups
to resolve variables.Method parameters in org.apache.commons.text.lookup with type arguments of type StringLookup Modifier and Type Method Description void
StringLookupFactory. addDefaultStringLookups(java.util.Map<java.lang.String,StringLookup> stringLookupMap)
Adds the default string lookups for this class tostringLookupMap
.private static void
StringLookupFactory.DefaultStringLookupsHolder. addLookup(DefaultStringLookup lookup, java.util.Map<java.lang.String,StringLookup> map)
Add the key and string lookup fromlookup
tomap
, also adding any additional key aliases if needed.StringLookup
StringLookupFactory. interpolatorStringLookup(java.util.Map<java.lang.String,StringLookup> stringLookupMap, StringLookup defaultStringLookup, boolean addDefaultLookups)
Returns a new InterpolatorStringLookup.Constructors in org.apache.commons.text.lookup with parameters of type StringLookup Constructor Description DefaultStringLookup(java.lang.String prefix, StringLookup lookup)
Creates a new instance ofDefaultStringLookup
and sets the key and the associated lookup instance.InterpolatorStringLookup(java.util.Map<java.lang.String,StringLookup> stringLookupMap, StringLookup defaultStringLookup, boolean addDefaultLookups)
Constructs a fully customized instance.InterpolatorStringLookup(StringLookup defaultStringLookup)
Constructs an instance with the given lookup.Constructor parameters in org.apache.commons.text.lookup with type arguments of type StringLookup Constructor Description InterpolatorStringLookup(java.util.Map<java.lang.String,StringLookup> stringLookupMap, StringLookup defaultStringLookup, boolean addDefaultLookups)
Constructs a fully customized instance.
-