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

public final Class DefaultVariableMapper

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

Default instance of a VariableMapper backed by a Map
Author
Jacob Hookom
Version
$Id$
See Also
javax.el.VariableMapper, javax.el.ValueExpression, java.util.Map

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Implements abstract javax.el.VariableMapper.resolveVariable.

public ValueExpression
setVariable(String
The variable name
name
,
ValueExpression
The ValueExpression to be assigned to the variable.
expression
)

Implements abstract javax.el.VariableMapper.setVariable.

Assign a ValueExpression to an EL variable, replacing any previously assignment to the same variable.

Field Detail

varsback to summary
private Map<K, V> vars

Constructor Detail

DefaultVariableMapperback to summary
public DefaultVariableMapper()

Method Detail

resolveVariableback to summary
public ValueExpression resolveVariable(String name)

Implements abstract javax.el.VariableMapper.resolveVariable.

Parameters
name: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 name, ValueExpression expression)

Implements abstract javax.el.VariableMapper.setVariable.

Doc from javax.el.VariableMapper.setVariable.

Assign a ValueExpression to an EL variable, replacing any previously assignment to the same variable. The assignment for the variable is removed if the expression is null.

Parameters
name:String

The variable name

expression:ValueExpression

The ValueExpression to be assigned to the variable.

Returns:ValueExpression

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)