|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.xel.util.SimpleResolver
public class SimpleResolver
A simple resolver that retrieve variable from a map.
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.
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,?> |
_vars
The variable maps. |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map<java.lang.String,?> _vars
| Constructor Detail |
|---|
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)| Method Detail |
|---|
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 VariableResolvername - the name of the variable to resolve
XelException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||