Package org.apache.commons.text.lookup
Enum DefaultStringLookup
- java.lang.Object
-
- java.lang.Enum<DefaultStringLookup>
-
- org.apache.commons.text.lookup.DefaultStringLookup
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DefaultStringLookup>
public enum DefaultStringLookup extends java.lang.Enum<DefaultStringLookup>
An enumeration definingStringLookupobjects available throughStringLookupFactory.This enum was adapted and expanded from Apache Commons Configuration 2.4.
- Since:
- 1.7
- See Also:
StringLookupFactory,StringLookup
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASE64_DECODERThe lookup for Base64 decoding using the key "base64Decoder".BASE64_ENCODERThe lookup for Base64 decoding using the key "base64Encoder".CONSTThe lookup for constants using the key "const".DATEThe lookup for dates using the key "date".DNSThe lookup for DNS using the key "dns".ENVIRONMENTThe lookup for environment properties using the key "env".FILEThe lookup for files using the key "file".JAVAThe lookup for Java platform information using the key "java".LOCAL_HOSTThe lookup for localhost information using the key "localhost".PROPERTIESThe lookup for properties using the key "properties".RESOURCE_BUNDLEThe lookup for resource bundles using the key "resourceBundle".SCRIPTThe lookup for scripts using the key "script".SYSTEM_PROPERTIESThe lookup for system properties using the key "sys".URLThe lookup for URLs using the key "url".URL_DECODERThe lookup for URL decoding using the key "urlDecoder".URL_ENCODERThe lookup for URL decoding using the key "urlEncoder".XMLThe lookup for URL decoding using the key "xml".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetKey()Returns the standard prefix for the lookup object of this kind.StringLookupgetStringLookup()Returns the standardStringLookupinstance of this kind.static DefaultStringLookupvalueOf(java.lang.String name)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 Detail
-
BASE64_DECODER
public static final DefaultStringLookup BASE64_DECODER
The lookup for Base64 decoding using the key "base64Decoder".
-
BASE64_ENCODER
public static final DefaultStringLookup BASE64_ENCODER
The lookup for Base64 decoding using the key "base64Encoder".
-
CONST
public static final DefaultStringLookup CONST
The lookup for constants using the key "const".
-
DATE
public static final DefaultStringLookup DATE
The lookup for dates using the key "date".
-
DNS
public static final DefaultStringLookup DNS
The lookup for DNS using the key "dns".- Since:
- 1.8
-
ENVIRONMENT
public static final DefaultStringLookup ENVIRONMENT
The lookup for environment properties using the key "env".
-
FILE
public static final DefaultStringLookup FILE
The lookup for files using the key "file".
-
JAVA
public static final DefaultStringLookup JAVA
The lookup for Java platform information using the key "java".
-
LOCAL_HOST
public static final DefaultStringLookup LOCAL_HOST
The lookup for localhost information using the key "localhost".
-
PROPERTIES
public static final DefaultStringLookup PROPERTIES
The lookup for properties using the key "properties".
-
RESOURCE_BUNDLE
public static final DefaultStringLookup RESOURCE_BUNDLE
The lookup for resource bundles using the key "resourceBundle".
-
SCRIPT
public static final DefaultStringLookup SCRIPT
The lookup for scripts using the key "script".
-
SYSTEM_PROPERTIES
public static final DefaultStringLookup SYSTEM_PROPERTIES
The lookup for system properties using the key "sys".
-
URL
public static final DefaultStringLookup URL
The lookup for URLs using the key "url".
-
URL_DECODER
public static final DefaultStringLookup URL_DECODER
The lookup for URL decoding using the key "urlDecoder".
-
URL_ENCODER
public static final DefaultStringLookup URL_ENCODER
The lookup for URL decoding using the key "urlEncoder".
-
XML
public static final DefaultStringLookup XML
The lookup for URL decoding using the key "xml".
-
-
Method Detail
-
values
public static DefaultStringLookup[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DefaultStringLookup c : DefaultStringLookup.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultStringLookup valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getKey
public java.lang.String getKey()
Returns the standard prefix for the lookup object of this kind.- Returns:
- the prefix
-
getStringLookup
public StringLookup getStringLookup()
Returns the standardStringLookupinstance of this kind.- Returns:
- the associated
StringLookupobject
-
-