public class DefaultVariableResolver extends java.util.HashMap implements VariableResolver
DefaultVariableResolver
is a HashMap
based
default implementation of the VariableResolver
interface. It may
be used by plugins to implement the interface for the request and is also
used by the
WebConsoleUtil#getVariableResolver(javax.servlet.ServletRequest)
as the variable resolver if none has yet been assigned to the request.Constructor and Description |
---|
DefaultVariableResolver()
Creates a new variable resolver with default capacity.
|
DefaultVariableResolver(int initialCapacity)
Creates a new variable resolver with specified initial capacity
|
DefaultVariableResolver(int initialCapacity,
float loadFactor)
Creates a new variable resolver and initializes both - capacity & load factor
|
DefaultVariableResolver(java.util.Map source)
Creates a new variable resolver copying the variables from the given map.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
resolve(java.lang.String variable)
Returns the string representation of the value stored under the variable
name in this map.
|
public DefaultVariableResolver()
public DefaultVariableResolver(int initialCapacity, float loadFactor)
initialCapacity
- the initial capacity of the variable containerloadFactor
- the load factor of the variable containerHashMap.HashMap(int, float)
public DefaultVariableResolver(int initialCapacity)
initialCapacity
- the initial capacity of the variable containerHashMap.HashMap(int)
public DefaultVariableResolver(java.util.Map source)
source
- the map whose variables are to be placed in this resolver.HashMap.HashMap(Map)
public java.lang.String resolve(java.lang.String variable)
null
is returned.resolve
in interface VariableResolver
variable
- The name of the variable whose value is to be returned.null
if there is no entry
with the given name in this map."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"