public class SimpleResolver extends java.lang.Object implements VariableResolver, java.io.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 java.util.Map<java.lang.String,?> |
_vars
The variable maps.
|
Constructor and Description |
---|
SimpleResolver()
Constructs a resolver.
|
SimpleResolver(java.util.Map<java.lang.String,?> vars)
Constructs a resolver with an object map.
|
SimpleResolver(VariableResolver parent)
Constructs a resolver with a parent.
|
SimpleResolver(VariableResolver parent,
java.util.Map<java.lang.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.
|
java.lang.Object |
resolveVariable(java.lang.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, java.util.Map<java.lang.String,?> vars)
parent
- the parent resolver (null means ignored).vars
- the object map (null means ignored)public SimpleResolver(java.util.Map<java.lang.String,?> vars)
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 java.lang.Object resolveVariable(java.lang.String name) throws XelException
VariableResolver
resolveVariable
in interface VariableResolver
name
- the name of the variable to resolveXelException
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.