StringLookups using a keys within ${} markers using the format "${StringLookup:Key}".
Uses the default lookups.
Public access is through StringLookupFactory.
StringLookupFactory
| Modifier and Type | Field and Description |
|---|---|
| private final StringLookup | defaultStringLookup
The default string lookup. |
| pack-priv static final AbstractStringLookup | INSTANCE
Defines the singleton for this class. |
| private static final char | PREFIX_SEPARATOR
Constant for the prefix separator. |
| private final Map | stringLookupMap
The map of String lookups keyed by prefix. |
| Access | Constructor and Description |
|---|---|
| pack-priv | InterpolatorStringLookup()
Constructs an instance using only lookups that work without initial properties and are stateless. |
| pack-priv | InterpolatorStringLookup(final Map<String, StringLookup>
the map of string lookups. stringLookupMap, final StringLookup the default string lookup. defaultStringLookup, final boolean whether the default lookups should be used. addDefaultLookups)Constructs a fully customized instance. |
| pack-priv < the map's value type. V> | InterpolatorStringLookup(final Map<String, V>
the default map for string lookups. defaultMap)Constructs an instance using only lookups that work without initial properties and are stateless. |
| pack-priv | InterpolatorStringLookup(final StringLookup
the default lookup. defaultStringLookup)Constructs an instance with the given lookup. |
| Modifier and Type | Method and Description |
|---|---|
| public Map | |
| public String | Returns: The value of this variable or null if it cannot be resolved.the name of the variable whose value is to be looked up. key)Implements org. Resolves the specified variable. |
| public String |
| defaultStringLookup | back to summary |
|---|---|
| private final StringLookup defaultStringLookup The default string lookup. | |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final AbstractStringLookup INSTANCE Defines the singleton for this class.
| |
| PREFIX_SEPARATOR | back to summary |
|---|---|
| private static final char PREFIX_SEPARATOR Constant for the prefix separator. | |
| stringLookupMap | back to summary |
|---|---|
| private final Map<String, StringLookup> stringLookupMap The map of String lookups keyed by prefix. | |
| InterpolatorStringLookup | back to summary |
|---|---|
| pack-priv InterpolatorStringLookup() Constructs an instance using only lookups that work without initial properties and are stateless.
Uses the | |
| InterpolatorStringLookup | back to summary |
|---|---|
| pack-priv InterpolatorStringLookup(final Map<String, StringLookup> stringLookupMap, final StringLookup defaultStringLookup, final boolean addDefaultLookups) Constructs a fully customized instance.
| |
| InterpolatorStringLookup | back to summary |
|---|---|
| pack-priv <V> InterpolatorStringLookup(final Map<String, V> defaultMap) Constructs an instance using only lookups that work without initial properties and are stateless.
Uses the | |
| InterpolatorStringLookup | back to summary |
|---|---|
| pack-priv InterpolatorStringLookup(final StringLookup defaultStringLookup) Constructs an instance with the given lookup.
| |
| getStringLookupMap | back to summary |
|---|---|
| public Map Gets the lookup map.
| |
| lookup | back to summary |
|---|---|
| public String lookup(String key) Implements org. Resolves the specified variable. This implementation will try to extract a variable prefix from the given variable name (the first colon (':') is used as prefix separator). It then passes the name of the variable with the prefix stripped to the lookup object registered for this prefix. If no prefix can be found or if the associated lookup object cannot resolve this variable, the default lookup object will be used. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |