VariableMapper (Java EE 5)

Java EE API


javax.el Class VariableMapper

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

public abstract class VariableMapper
extends Object


在 EL 变量及其关联的 EL 表达式之间进行映射的接口。
英文文档:

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

Since:
JSP 2.1

Constructor Summary
 
Method Summary
abstract  ValueExpression
abstract  ValueExpression
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public VariableMapper()
英文文档:

VariableMapper

public VariableMapper()
Method Detail

abstract public ValueExpression resolveVariable(String variable)
variable 变量名称
return 分配给变量的 ValueExpression;如果此变量以前没有分配值,则返回 null。
英文文档:

resolveVariable

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

abstract public ValueExpression setVariable(String variable, ValueExpression expression)
将 ValueExpression 分配给 EL 变量,替换以前分配给该变量的任何值。如果表达式为 null,则删除分配给该变量的值。
variable 变量名称
expression 将分配给变量的 ValueExpression。
return 以前分配给此变量的 ValueExpression;如果此变量以前没有分配值,则返回 null。
英文文档:

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.

Parameters:
variable - The variable name
expression - The ValueExpression to be assigned to the variable.
Returns:
The previous ValueExpression assigned to this variable, null if there is no previouse assignment to this variable.


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!