Package org.apache.commons.text.lookup
Enum DefaultStringLookup
- All Implemented Interfaces:
Serializable
,Comparable<DefaultStringLookup>
An enumeration defining
StringLookup
objects available through StringLookupFactory
.
This enum was adapted and expanded from Apache Commons Configuration 2.4.
NOTE: Starting in version 1.10.0, not all lookups defined in this class are
included by default in the
StringLookupFactory.addDefaultStringLookups
method. See the StringLookupFactory
class documentation for details.
- Since:
- 1.7
- See Also:
-
Enum Constant Summary
Enum ConstantDescriptionThe lookup for Base64 decoding using the key"base64Decoder"
.The lookup for Base64 encoding using the key"base64Encoder"
.The lookup for Java static class member constants using the key"const"
.The lookup for formatting the current date using the key"date"
.The lookup for DNS using the key"dns"
.The lookup for environment properties using the key"env"
.The lookup for files using the key"file"
.The lookup for Java platform information using the key"java"
.The lookup for local host information using the key"localhost"
.The lookup for local host information using the key"loopbackAddress"
.The lookup for properties using the key"properties"
.The lookup for resource bundles using the key"resourceBundle"
.The lookup for scripts using the key"script"
.The lookup for system properties using the key"sys"
.The lookup for URLs using the key"url"
.The lookup for URL decoding using the key"urlDecoder"
.The lookup for URL encoding using the key"urlEncoder"
.The lookup for XML decoding using the key"xml"
.The lookup for XML decoding using the key"xmlDecoder"
.The lookup for XML encoding using the key"xmlEncoder"
. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Gets the standard prefix for the lookup object of this kind.Gets the standardStringLookup
instance of this kind.static DefaultStringLookup
Returns the enum constant of this type with the specified name.static DefaultStringLookup[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BASE64_DECODER
The lookup for Base64 decoding using the key"base64Decoder"
. -
BASE64_ENCODER
The lookup for Base64 encoding using the key"base64Encoder"
. -
CONST
The lookup for Java static class member constants using the key"const"
. -
DATE
The lookup for formatting the current date using the key"date"
. -
DNS
The lookup for DNS using the key"dns"
.- Since:
- 1.8
- See Also:
-
ENVIRONMENT
The lookup for environment properties using the key"env"
. -
FILE
The lookup for files using the key"file"
. -
JAVA
The lookup for Java platform information using the key"java"
. -
LOCAL_HOST
The lookup for local host information using the key"localhost"
. -
LOOPBACK_ADDRESS
The lookup for local host information using the key"loopbackAddress"
. -
PROPERTIES
The lookup for properties using the key"properties"
. -
RESOURCE_BUNDLE
The lookup for resource bundles using the key"resourceBundle"
. -
SCRIPT
The lookup for scripts using the key"script"
. -
SYSTEM_PROPERTIES
The lookup for system properties using the key"sys"
. -
URL
The lookup for URLs using the key"url"
. -
URL_DECODER
The lookup for URL decoding using the key"urlDecoder"
. -
URL_ENCODER
The lookup for URL encoding using the key"urlEncoder"
. -
XML
The lookup for XML decoding using the key"xml"
. -
XML_DECODER
The lookup for XML decoding using the key"xmlDecoder"
.- Since:
- 1.11.0
- See Also:
-
XML_ENCODER
The lookup for XML encoding using the key"xmlEncoder"
.- Since:
- 1.11.0
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getKey
Gets the standard prefix for the lookup object of this kind.- Returns:
- the prefix
-
getStringLookup
Gets the standardStringLookup
instance of this kind.- Returns:
- the associated
StringLookup
object
-