1 14 15 package com.sun.facelets.el; 16 17 import javax.el.ValueExpression; 18 import javax.el.VariableMapper; 19 20 30 public final class CompositeVariableMapper extends VariableMapper { 31 32 private final VariableMapper var0; 33 34 private final VariableMapper var1; 35 36 public CompositeVariableMapper(VariableMapper var0, VariableMapper var1) { 37 this.var0 = var0; 38 this.var1 = var1; 39 } 40 41 44 public ValueExpression resolveVariable(String name) { 45 ValueExpression ve = this.var0.resolveVariable(name); 46 if (ve == null) { 47 return this.var1.resolveVariable(name); 48 } 49 return ve; 50 } 51 52 55 public ValueExpression setVariable(String name, ValueExpression expression) { 56 return this.var0.setVariable(name, expression); 57 } 58 59 } 60 | Popular Tags |