public class SimpleResolver extends Object implements VariableResolver, Serializable
Note: since 5.0.8, it becomes serializable. Thus, the parent and
vars parameter
of SimpleResolver(VariableResolver, Map) have to serializable
in the clustering environment.
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,?> |
_vars
The variable maps.
|
| Constructor and Description |
|---|
SimpleResolver()
Constructs a resolver.
|
SimpleResolver(Map<String,?> vars)
Constructs a resolver with an object map.
|
SimpleResolver(VariableResolver parent)
Constructs a resolver with a parent.
|
SimpleResolver(VariableResolver parent,
Map<String,?> vars)
Constructs a resolver with a parent and an object map.
|
| Modifier and Type | Method and Description |
|---|---|
VariableResolver |
getParent()
Returns the parent, or null if no parent at all.
|
Object |
resolveVariable(String name)
Resolves the specified variable.
|
void |
setParent(VariableResolver parent)
Sets the parent.
|
public SimpleResolver()
public SimpleResolver(VariableResolver parent)
parent - the parent resolver (null means ignored).public SimpleResolver(VariableResolver parent, Map<String,?> vars)
parent - the parent resolver (null means ignored).vars - the object map (null means ignored)public VariableResolver getParent()
public void setParent(VariableResolver parent)
parent - the parent resolver, or null if no parent.public Object resolveVariable(String name) throws XelException
VariableResolverresolveVariable in interface VariableResolvername - the name of the variable to resolveXelExceptionCopyright © 2018. All rights reserved.