Uses of Interface
org.apache.commons.text.lookup.StringLookup
Packages that use 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
Classes in org.apache.commons.text that implement StringLookupModifier and TypeClassDescriptionclassStrLookup<V>Deprecated.(package private) static classDeprecated.Lookup implementation that uses a Map.private static final classDeprecated.Lookup implementation based on a ResourceBundle.private static final classDeprecated.Lookup implementation based on system properties.Fields in org.apache.commons.text declared as StringLookupModifier and TypeFieldDescriptionprivate StringLookupStringSubstitutor.variableResolverVariable resolution is delegated to an implementor ofStringLookup.Methods in org.apache.commons.text that return StringLookupModifier and TypeMethodDescriptionStringSubstitutor.getStringLookup()Gets the StringLookup that is used to lookup variables.Methods in org.apache.commons.text with parameters of type StringLookupModifier and TypeMethodDescriptionStringSubstitutor.setVariableResolver(StringLookup variableResolver) Sets the VariableResolver that is used to lookup variables.Constructors in org.apache.commons.text with parameters of type StringLookupModifierConstructorDescriptionStringSubstitutor(StringLookup variableResolver) Creates a new instance and initializes it.StringSubstitutor(StringLookup variableResolver, String prefix, String suffix, char escape) Creates a new instance and initializes it.StringSubstitutor(StringLookup variableResolver, String prefix, String suffix, char escape, 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.lookupModifier and TypeInterfaceDescriptioninterfaceLookups a String key for a String value.Classes in org.apache.commons.text.lookup that implement StringLookupModifier and TypeClassDescription(package private) classA default lookup for others to extend in this package.(package private) final classA function-based lookup where the request for a lookup is answered by applying that function with a key.(package private) classLooks up the value of a fully-qualified static final value.(package private) final classFormats the current date with the format given in the key in a format compatible withSimpleDateFormat.(package private) final classLooks up keys related to DNS entries like host name, canonical host name, host address.(package private) final classLooks up keys from an XML document.(package private) final classA function-based lookup where the request for a lookup is answered by applying that function with a key.(package private) classProxies otherStringLookups using a keys within ${} markers using the format "${StringLookup:Key}".(package private) final classLooks up keys related to Java: Java version, JRE version, VM version, and so on.(package private) final classLooks up keys related to the local host: host name, canonical host name, host address.(package private) final classLooks up keys from an XML document.(package private) final classLooks up keys from resource bundles.(package private) final classExecutes the script with the given engine name.(package private) final classDecodes URL Strings using the UTF-8 encoding.(package private) final classEncodes URL Strings using the UTF-8 encoding.(package private) final classLooks up keys from an XML document.(package private) final classLooks up keys from an XML document.Fields in org.apache.commons.text.lookup declared as StringLookupModifier and TypeFieldDescriptionprivate final StringLookupInterpolatorStringLookup.defaultStringLookupThe default string lookup.private final StringLookupDefaultStringLookup.lookupThe associated lookup instance.Fields in org.apache.commons.text.lookup with type parameters of type StringLookupModifier and TypeFieldDescriptionprivate final Map<String,StringLookup> InterpolatorStringLookup.stringLookupMapThe map of String lookups keyed by prefix.Methods in org.apache.commons.text.lookup that return StringLookupModifier 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 exampleEXAMPLEbut 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 the FileStringLookup singleton instance.<R> StringLookupStringLookupFactory.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()Returns the standardStringLookupinstance of this kind.StringLookupFactory.interpolatorStringLookup()Returns a new InterpolatorStringLookup using thedefault lookups.StringLookupFactory.interpolatorStringLookup(Map<String, StringLookup> stringLookupMap, StringLookup defaultStringLookup, boolean addDefaultLookups) Returns a new InterpolatorStringLookup using thedefault lookups.<V> StringLookupStringLookupFactory.interpolatorStringLookup(Map<String, V> map) Returns a new InterpolatorStringLookup using thedefault lookups.StringLookupFactory.interpolatorStringLookup(StringLookup defaultStringLookup) Returns a new InterpolatorStringLookup using thedefault lookups.StringLookupFactory.javaPlatformStringLookup()Returns the JavaPlatformStringLookup singleton instance.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> StringLookupStringLookupFactory.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 the PropertiesStringLookup singleton 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.xmlStringLookup()Returns the XmlStringLookup singleton instance.Methods in org.apache.commons.text.lookup that return types with arguments of type StringLookupModifier and TypeMethodDescriptionInterpolatorStringLookup.getStringLookupMap()Gets the lookup map.Methods in org.apache.commons.text.lookup with parameters of type StringLookupModifier and TypeMethodDescriptionStringLookupFactory.interpolatorStringLookup(Map<String, StringLookup> stringLookupMap, StringLookup defaultStringLookup, boolean addDefaultLookups) Returns a new InterpolatorStringLookup using thedefault lookups.StringLookupFactory.interpolatorStringLookup(StringLookup defaultStringLookup) Returns a new InterpolatorStringLookup using thedefault lookups.Method parameters in org.apache.commons.text.lookup with type arguments of type StringLookupModifier and TypeMethodDescriptionvoidStringLookupFactory.addDefaultStringLookups(Map<String, StringLookup> stringLookupMap) Adds thedefault lookups.StringLookupFactory.interpolatorStringLookup(Map<String, StringLookup> stringLookupMap, StringLookup defaultStringLookup, boolean addDefaultLookups) Returns a new InterpolatorStringLookup using thedefault lookups.Constructors in org.apache.commons.text.lookup with parameters of type StringLookupModifierConstructorDescriptionprivateDefaultStringLookup(String prefix, StringLookup lookup) Creates a new instance ofDefaultStringLookupand sets the key and the associated lookup instance.(package private)InterpolatorStringLookup(Map<String, StringLookup> stringLookupMap, StringLookup defaultStringLookup, boolean addDefaultLookups) Creates a fully customized instance.(package private)InterpolatorStringLookup(StringLookup defaultStringLookup) Creates an instance with the given lookup.Constructor parameters in org.apache.commons.text.lookup with type arguments of type StringLookupModifierConstructorDescription(package private)InterpolatorStringLookup(Map<String, StringLookup> stringLookupMap, StringLookup defaultStringLookup, boolean addDefaultLookups) Creates a fully customized instance.
StringLookupFactoryinstead.