org.zkoss.el
Class ObjectResolver

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

public class ObjectResolver
extends java.lang.Object
implements VariableResolver

Resolves the specified object's members as variables.

Author:
tomyeh

Field Summary
protected  VariableResolver _parent
          The parent resolver.
protected  java.lang.Object _ref
          The variable.
 
Constructor Summary
ObjectResolver()
          Constructs a resolver.
ObjectResolver(java.lang.Object ref)
          Constructs a resolver with an object.
ObjectResolver(VariableResolver parent)
          Constructs a resolver with a parent.
ObjectResolver(VariableResolver parent, java.lang.Object ref)
          Constructs a resolver with a parent and an object.
 
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.


_ref

protected final java.lang.Object _ref
The variable.

Constructor Detail

ObjectResolver

public ObjectResolver()
Constructs a resolver.


ObjectResolver

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

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

ObjectResolver

public ObjectResolver(VariableResolver parent,
                      java.lang.Object ref)
Constructs a resolver with a parent and an object.

Parameters:
parent - the parent resolver (null means ignored).
ref - the object whose members are considered as variables (null means ignored)

ObjectResolver

public ObjectResolver(java.lang.Object ref)
Constructs a resolver with an object.

Parameters:
ref - the object whose members are considered as variables (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.