org.zkoss.el
Class SimpleResolver

java.lang.Object
  extended by org.zkoss.el.SimpleResolver
All Implemented Interfaces:
VariableResolver

public class SimpleResolver
extends java.lang.Object
implements VariableResolver

A simple resolver that retrieve variable from a map.

Author:
tomyeh

Field Summary
protected  VariableResolver _parent
          The parent resolver.
protected  java.util.Map _vars
          The variable maps.
 
Constructor Summary
SimpleResolver()
          Constructs a resolver.
SimpleResolver(java.util.Map vars)
          Constructs a resolver with an object map.
SimpleResolver(VariableResolver parent)
          Constructs a resolver with a parent.
SimpleResolver(VariableResolver parent, java.util.Map vars)
          Constructs a resolver with a parent and an object map.
 
Method Summary
 java.lang.Object resolveVariable(java.lang.String name)
          Resolves the specified variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_parent

protected final VariableResolver _parent
The parent resolver.


_vars

protected final java.util.Map _vars
The variable maps.

Constructor Detail

SimpleResolver

public SimpleResolver()
Constructs a resolver.


SimpleResolver

public SimpleResolver(VariableResolver parent)
Constructs a resolver with a parent.

Parameters:
parent - the parent resolver (null means ignored).

SimpleResolver

public SimpleResolver(VariableResolver parent,
                      java.util.Map vars)
Constructs a resolver with a parent and an object map.

Parameters:
parent - the parent resolver (null means ignored).
vars - the object map (null means ignored)

SimpleResolver

public SimpleResolver(java.util.Map vars)
Constructs a resolver with an object map.

Parameters:
vars - the object map (null means ignored)
Method Detail

resolveVariable

public java.lang.Object resolveVariable(java.lang.String name)
                                 throws XelException
Description copied from interface: VariableResolver
Resolves the specified variable.

Specified by:
resolveVariable in interface VariableResolver
Parameters:
name - the name of the variable to resolve
Throws:
XelException


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.