public enum DefaultLookups extends Enum<DefaultLookups>
An enumeration class defining constants for the Lookup
objects available for each Configuration
object per default.
When a new configuration object derived from AbstractConfiguration
is created it installs a
ConfigurationInterpolator
with a default set of Lookup
objects. These lookups are defined by this
enumeration class.
All the default Lookup
classes are state-less, thus their instances can be shared between multiple
configuration objects. Therefore, it makes sense to keep shared instances in this enumeration class.
Base64DecoderStringLookup
since Apache Commons Text 1.6.Base64EncoderStringLookup
since Apache Commons Text 1.6.ConstantStringLookup
since Apache Commons Text 1.5.DateStringLookup
.EnvironmentVariableStringLookup
.FileStringLookup
since Apache Commons Text 1.5.JavaPlatformStringLookup
.LocalHostStringLookup
, see #localHostStringLookup()
for key names; since
Apache Commons Text 1.3.PropertiesStringLookup
since Apache Commons Text 1.5.ResourceBundleStringLookup
since Apache Commons Text 1.5.ScriptStringLookup
since Apache Commons Text 1.5.SystemPropertyStringLookup
.UrlStringLookup
since Apache Commons Text 1.5.UrlDecoderStringLookup
since Apache Commons Text 1.6.UrlEncoderStringLookup
since Apache Commons Text 1.6.XmlStringLookup
since Apache Commons Text 1.5.Enum Constant and Description |
---|
BASE64_DECODER
The lookup for Base64 decoding.
|
BASE64_ENCODER
The lookup for Base64 decoding.
|
CONST
The lookup for constants.
|
DATE
The lookup for dates.
|
DNS
The lookup for DNS.
|
ENVIRONMENT
The lookup for environment properties.
|
FILE
The lookup for files.
|
JAVA
The lookup for Java platform information.
|
LOCAL_HOST
The lookup for localhost information.
|
PROPERTIES
The lookup for properties.
|
RESOURCE_BUNDLE
The lookup for resource bundles.
|
SCRIPT
The lookup for scripts.
|
SYSTEM_PROPERTIES
The lookup for system properties.
|
URL
The lookup for URLs.
|
URL_DECODER
The lookup for URL decoding.
|
URL_ENCODER
The lookup for URL decoding.
|
XML
The lookup for URL decoding.
|
Modifier and Type | Method and Description |
---|---|
Lookup |
getLookup()
Returns the standard
Lookup instance of this kind. |
String |
getPrefix()
Returns the standard prefix for the lookup object of this kind.
|
static DefaultLookups |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultLookups[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultLookups BASE64_DECODER
public static final DefaultLookups BASE64_ENCODER
public static final DefaultLookups CONST
public static final DefaultLookups DATE
public static final DefaultLookups DNS
public static final DefaultLookups ENVIRONMENT
public static final DefaultLookups FILE
public static final DefaultLookups JAVA
public static final DefaultLookups LOCAL_HOST
public static final DefaultLookups PROPERTIES
public static final DefaultLookups RESOURCE_BUNDLE
public static final DefaultLookups SCRIPT
public static final DefaultLookups SYSTEM_PROPERTIES
public static final DefaultLookups URL
public static final DefaultLookups URL_DECODER
public static final DefaultLookups URL_ENCODER
public static final DefaultLookups XML
public static DefaultLookups[] values()
for (DefaultLookups c : DefaultLookups.values()) System.out.println(c);
public static DefaultLookups valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Lookup getLookup()
Lookup
instance of this kind.Lookup
objectpublic String getPrefix()
Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.