Top Description Fields Constructors Methods
com.sun.faces.facelets.el

public Class VariableMapperWrapper

extends VariableMapper
Class Inheritance
Imports
javax.el.ELException, .ValueExpression, .VariableMapper, java.util.HashMap, .Map

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.
Author
Jacob Hookom
Version
$Id$

Field Summary

Modifier and TypeField and Description
private final VariableMapper
private Map<K, V>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ValueExpression
resolveVariable(String
The variable name
variable
)

Implements abstract javax.el.VariableMapper.resolveVariable.

First tries to resolve agains the inner Map, then the wrapped ValueExpression.
public ValueExpression
setVariable(String
The variable name
variable
,
ValueExpression
The ValueExpression to be assigned to the variable.
expression
)

Implements abstract javax.el.VariableMapper.setVariable.

Set the ValueExpression on the inner Map instance.

Field Detail

targetback to summary
private final VariableMapper target
varsback to summary
private Map<K, V> vars

Constructor Detail

VariableMapperWrapperback to summary
public VariableMapperWrapper(VariableMapper orig)

Method Detail

resolveVariableback to summary
public ValueExpression resolveVariable(String variable)

Implements abstract javax.el.VariableMapper.resolveVariable.

First tries to resolve agains the inner Map, then the wrapped ValueExpression.

Parameters
variable:String

Doc from javax.el.VariableMapper.resolveVariable.

The variable name

Returns:ValueExpression

Doc from javax.el.VariableMapper.resolveVariable.

the ValueExpression assigned to the variable, null if there is no previous assignment to this variable.

Annotations
@Override
See Also
javax.el.VariableMapper#resolveVariable(java.lang.String)
setVariableback to summary
public ValueExpression setVariable(String variable, ValueExpression expression)

Implements abstract javax.el.VariableMapper.setVariable.

Set the ValueExpression on the inner Map instance.

Parameters
variable:String

Doc from javax.el.VariableMapper.setVariable.

The variable name

expression:ValueExpression

Doc from javax.el.VariableMapper.setVariable.

The ValueExpression to be assigned to the variable.

Returns:ValueExpression

Doc from javax.el.VariableMapper.setVariable.

The previous ValueExpression assigned to this variable, null if there is no previous assignment to this variable.

Annotations
@Override
See Also
javax.el.VariableMapper#setVariable(java.lang.String, javax.el.ValueExpression)