Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.facelets.el
Class VariableMapperWrapper  view VariableMapperWrapper download VariableMapperWrapper.java

java.lang.Object
  extended byVariableMapper
      extended bycom.sun.facelets.el.VariableMapperWrapper

public final class VariableMapperWrapper
extends VariableMapper

Utility class for wrapping another VariableMapper with a new context, represented by a Map. Modifications occur to the Map instance, but resolve against the wrapped VariableMapper if the Map doesn't contain the ValueExpression requested.

Version:
$Id: VariableMapperWrapper.java,v 1.2 2005/08/24 04:38:57 jhook Exp $

Field Summary
private  VariableMapper target
           
private  java.util.Map vars
           
 
Constructor Summary
VariableMapperWrapper(VariableMapper orig)
           
 
Method Summary
 ValueExpression resolveVariable(java.lang.String variable)
          First tries to resolve agains the inner Map, then the wrapped ValueExpression.
 ValueExpression setVariable(java.lang.String variable, ValueExpression expression)
          Set the ValueExpression on the inner Map instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

private final VariableMapper target

vars

private java.util.Map vars
Constructor Detail

VariableMapperWrapper

public VariableMapperWrapper(VariableMapper orig)
Method Detail

resolveVariable

public ValueExpression resolveVariable(java.lang.String variable)
First tries to resolve agains the inner Map, then the wrapped ValueExpression.


setVariable

public ValueExpression setVariable(java.lang.String variable,
                                   ValueExpression expression)
Set the ValueExpression on the inner Map instance.