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

public Class VariableMapperWrapper

extends VariableMapper
Class Inheritance
Imports
java.util.HashMap, .Map, jakarta.el.ELException, .ValueExpression, .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.
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
VariableMapperWrapper(VariableMapper
the original variable mapper to be wrapped
orig
)

Method Summary

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

Implements abstract jakarta.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 jakarta.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)
Parameters
orig:VariableMapper

the original variable mapper to be wrapped

Method Detail

resolveVariableback to summary
public ValueExpression resolveVariable(String variable)

Implements abstract jakarta.el.VariableMapper.resolveVariable.

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

Parameters
variable:String

Doc from jakarta.el.VariableMapper.resolveVariable.

The variable name

Returns:ValueExpression

Doc from jakarta.el.VariableMapper.resolveVariable.

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

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

Implements abstract jakarta.el.VariableMapper.setVariable.

Set the ValueExpression on the inner Map instance.

Parameters
variable:String

Doc from jakarta.el.VariableMapper.setVariable.

The variable name

expression:ValueExpression

Doc from jakarta.el.VariableMapper.setVariable.

The ValueExpression to be assigned to the variable.

Returns:ValueExpression

Doc from jakarta.el.VariableMapper.setVariable.

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

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