VariableMapper (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.el Class VariableMapper

java.lang.Object
  extended by javax.el.VariableMapper

public abstract class VariableMapper
extends Object

The interface to a map between EL variables and the EL expressions they are associated with.

从以下版本开始:
JSP 2.1

构造器摘要
VariableMapper()
           
 
方法摘要
abstract  ValueExpression resolveVariable(String variable)
           
abstract  ValueExpression setVariable(String variable, ValueExpression expression)
          Assign a ValueExpression to an EL variable, replacing any previously assignment to the same variable.
 
类方法继承 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造器详细信息

VariableMapper

public VariableMapper()
方法详细信息

resolveVariable

public abstract ValueExpression resolveVariable(String variable)
参数:
variable - The variable name
返回:
the ValueExpression assigned to the variable, null if there is no previous assignment to this variable.

setVariable

public abstract ValueExpression setVariable(String variable,
                                            ValueExpression expression)
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.

参数:
variable - The variable name
expression - The ValueExpression to be assigned to the variable.
返回:
The previous ValueExpression assigned to this variable, null if there is no previouse assignment to this variable.

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.