01: /*
02: * The contents of this file are subject to the terms
03: * of the Common Development and Distribution License
04: * (the "License"). You may not use this file except
05: * in compliance with the License.
06: *
07: * You can obtain a copy of the license at
08: * glassfish/bootstrap/legal/CDDLv1.0.txt or
09: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
10: * See the License for the specific language governing
11: * permissions and limitations under the License.
12: *
13: * When distributing Covered Code, include this CDDL
14: * HEADER in each file and include the License file at
15: * glassfish/bootstrap/legal/CDDLv1.0.txt. If applicable,
16: * add the following below this CDDL HEADER, with the
17: * fields enclosed by brackets "[]" replaced with your
18: * own identifying information: Portions Copyright [yyyy]
19: * [name of copyright owner]
20: *
21: * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
22: */
23:
24: package javax.el;
25:
26: /**
27: * The interface to a map between EL variables and the EL expressions
28: * they are associated with.
29: *
30: * @since JSP 2.1
31: */
32:
33: public abstract class VariableMapper {
34:
35: /**
36: * @param variable The variable name
37: * @return the ValueExpression assigned to the variable,
38: * null if there is no previous assignment to this variable.
39: */
40: public abstract ValueExpression resolveVariable(String variable);
41:
42: /**
43: * Assign a ValueExpression to an EL variable, replacing
44: * any previously assignment to the same variable.
45: * The assignment for the variable is removed if
46: * the expression is <code>null</code>.
47: *
48: * @param variable The variable name
49: * @param expression The ValueExpression to be assigned
50: * to the variable.
51: * @return The previous ValueExpression assigned to this variable,
52: * null if there is no previouse assignment to this variable.
53: */
54: public abstract ValueExpression setVariable(String variable,
55: ValueExpression expression);
56: }
|