Uses of Interface
org.apache.commons.text.lookup.StringLookup
Package
Description
Basic classes for text handling.
Provides algorithms for looking up strings for use with a
StringSubstitutor
.-
Uses of StringLookup in org.apache.commons.text
Modifier and TypeMethodDescriptionStringSubstitutor.getStringLookup()
Gets the StringLookup that is used to lookup variables.Modifier and TypeMethodDescriptionStringSubstitutor.setVariableResolver
(StringLookup variableResolver) Sets the VariableResolver that is used to lookup variables.ModifierConstructorDescriptionStringSubstitutor
(StringLookup variableResolver) Constructs a new initialized instance.StringSubstitutor
(StringLookup variableResolver, String prefix, String suffix, char escape) Constructs a new initialized instance.StringSubstitutor
(StringLookup variableResolver, String prefix, String suffix, char escape, String valueDelimiter) Constructs a new initialized instance.StringSubstitutor
(StringLookup variableResolver, StringMatcher prefixMatcher, StringMatcher suffixMatcher, char escape) Constructs a new initialized instance.StringSubstitutor
(StringLookup variableResolver, StringMatcher prefixMatcher, StringMatcher suffixMatcher, char escape, StringMatcher valueDelimiterMatcher) Constructs a new initialized instance. -
Uses of StringLookup in org.apache.commons.text.lookup
Modifier and TypeInterfaceDescriptioninterface
Lookups a String key for a String value.Modifier and TypeMethodDescriptionStringLookupFactory.base64DecoderStringLookup()
Returns the Base64DecoderStringLookup singleton instance to decode Base64 strings.StringLookupFactory.base64EncoderStringLookup()
Returns the Base64EncoderStringLookup singleton instance to encode strings to Base64.StringLookupFactory.base64StringLookup()
Deprecated.StringLookupFactory.constantStringLookup()
Returns the ConstantStringLookup singleton instance to look up the value of a fully-qualified static final value.StringLookupFactory.dateStringLookup()
Returns the DateStringLookup singleton instance to format the current date with the format given in the key in a format compatible withSimpleDateFormat
.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
.StringLookupFactory.environmentVariableStringLookup()
Returns the EnvironmentVariableStringLookup singleton instance where the lookup key is an environment variable name.StringLookupFactory.fileStringLookup()
Returns a file StringLookup instance.StringLookupFactory.fileStringLookup
(Path... fences) Returns a fenced file StringLookup instance.<R> StringLookup
StringLookupFactory.functionStringLookup
(Function<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.DefaultStringLookup.getStringLookup()
Gets the standardStringLookup
instance of this kind.StringLookupFactory.interpolatorStringLookup()
Returns aInterpolatorStringLookup
containing the configureddefault lookups
.StringLookupFactory.interpolatorStringLookup
(Map<String, StringLookup> stringLookupMap, StringLookup defaultStringLookup, boolean addDefaultLookups) Returns a new InterpolatorStringLookup.<V> StringLookup
StringLookupFactory.interpolatorStringLookup
(Map<String, V> map) Returns a new InterpolatorStringLookup using the given key-value pairs and the configureddefault lookups
to resolve variables.StringLookupFactory.interpolatorStringLookup
(StringLookup defaultStringLookup) Returns a new InterpolatorStringLookup using the given lookup and the configureddefault lookups
to resolve variables.StringLookupFactory.javaPlatformStringLookup()
Returns the JavaPlatformStringLookup singleton instance.StringLookupFactory.localHostStringLookup()
Returns the InetAddressStringLookup instance where the lookup key forInetAddress.getLocalHost()
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
.StringLookupFactory.loopbackAddressStringLookup()
Returns the InetAddressStringLookup instance where the lookup key forInetAddress.getLoopbackAddress()
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
(Map<String, V> map) Returns a new map-based lookup where the request for a lookup is answered with the value for that key.StringLookupFactory.nullStringLookup()
Returns the NullStringLookup singleton instance which always returns null.StringLookupFactory.propertiesStringLookup()
Returns a Properties StringLookup instance.StringLookupFactory.propertiesStringLookup
(Path... fences) Returns a fenced Properties StringLookup instance.StringLookupFactory.resourceBundleStringLookup()
Returns the ResourceBundleStringLookup singleton instance.StringLookupFactory.resourceBundleStringLookup
(String bundleName) Returns a ResourceBundleStringLookup instance for the given bundle name.StringLookupFactory.scriptStringLookup()
Returns the ScriptStringLookup singleton instance.StringLookupFactory.systemPropertyStringLookup()
Returns the SystemPropertyStringLookup singleton instance where the lookup key is a system property name.StringLookupFactory.urlDecoderStringLookup()
Returns the UrlDecoderStringLookup singleton instance.StringLookupFactory.urlEncoderStringLookup()
Returns the UrlDecoderStringLookup singleton instance.StringLookupFactory.urlStringLookup()
Returns the UrlStringLookup singleton instance.StringLookupFactory.xmlDecoderStringLookup()
Returns the XmlDecoderStringLookup singleton instance.StringLookupFactory.xmlEncoderStringLookup()
Returns the XmlEncoderStringLookup singleton instance.StringLookupFactory.xmlStringLookup()
Returns an XML StringLookup instance.StringLookupFactory.xmlStringLookup
(Map<String, Boolean> xPathFactoryFeatures) Returns an XML StringLookup instance.StringLookupFactory.xmlStringLookup
(Map<String, Boolean> xPathFactoryFeatures, Path... fences) Returns a fenced XML StringLookup instance.Modifier and TypeMethodDescriptionStringLookupFactory.interpolatorStringLookup
(Map<String, StringLookup> stringLookupMap, StringLookup defaultStringLookup, boolean addDefaultLookups) Returns a new InterpolatorStringLookup.StringLookupFactory.interpolatorStringLookup
(StringLookup defaultStringLookup) Returns a new InterpolatorStringLookup using the given lookup and the configureddefault lookups
to resolve variables.Modifier and TypeMethodDescriptionvoid
StringLookupFactory.addDefaultStringLookups
(Map<String, StringLookup> stringLookupMap) Adds the default string lookups for this class tostringLookupMap
.StringLookupFactory.interpolatorStringLookup
(Map<String, StringLookup> stringLookupMap, StringLookup defaultStringLookup, boolean addDefaultLookups) Returns a new InterpolatorStringLookup.
StringLookupFactory
instead.