org.apache.myfaces.view.facelets.el
Class VariableMapperWrapper

java.lang.Object
  extended by javax.el.VariableMapper
      extended by org.apache.myfaces.view.facelets.el.VariableMapperBase
          extended by org.apache.myfaces.view.facelets.el.VariableMapperWrapper
All Implemented Interfaces:
FacesWrapper<javax.el.VariableMapper>

public final class VariableMapperWrapper
extends VariableMapperBase
implements FacesWrapper<javax.el.VariableMapper>

Utility class for wrapping another VariableMapper with a new context, represented by a Map. Modifications occur to the Map instance, but resolve against the wrapped VariableMapper if the Map doesn't contain the ValueExpression requested.

Version:
$Id: VariableMapperWrapper.java 1187700 2011-10-22 12:19:37Z bommel $
Author:
Jacob Hookom

Field Summary
 boolean _trackResolveVariables
           
 boolean _variableResolved
           
 
Constructor Summary
VariableMapperWrapper(javax.el.VariableMapper orig)
           
 
Method Summary
 void afterConstructELExpression()
          Cleanup all initialization done.
 void beforeConstructELExpression()
          Indicates an expression will be resolved, so preparations should be done to detect if a contextual variable has been resolved.
 javax.el.VariableMapper getWrapped()
           
 boolean isAnyFaceletsVariableResolved()
          Check if a variable has been resolved by this variable mapper or any parent "facelets contextual" variable mapper.
 javax.el.ValueExpression resolveVariable(String variable)
          First tries to resolve agains the inner Map, then the wrapped ValueExpression.
 javax.el.ValueExpression setVariable(String variable, javax.el.ValueExpression expression)
          Set the ValueExpression on the inner Map instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_trackResolveVariables

public boolean _trackResolveVariables

_variableResolved

public boolean _variableResolved
Constructor Detail

VariableMapperWrapper

public VariableMapperWrapper(javax.el.VariableMapper orig)
Method Detail

resolveVariable

public javax.el.ValueExpression resolveVariable(String variable)
First tries to resolve agains the inner Map, then the wrapped ValueExpression.

Specified by:
resolveVariable in class javax.el.VariableMapper
See Also:
VariableMapper.resolveVariable(java.lang.String)

setVariable

public javax.el.ValueExpression setVariable(String variable,
                                            javax.el.ValueExpression expression)
Set the ValueExpression on the inner Map instance.

Specified by:
setVariable in class javax.el.VariableMapper
See Also:
VariableMapper.setVariable(java.lang.String, javax.el.ValueExpression)

isAnyFaceletsVariableResolved

public boolean isAnyFaceletsVariableResolved()
Description copied from class: VariableMapperBase
Check if a variable has been resolved by this variable mapper or any parent "facelets contextual" variable mapper.

Specified by:
isAnyFaceletsVariableResolved in class VariableMapperBase
Returns:

getWrapped

public javax.el.VariableMapper getWrapped()
Specified by:
getWrapped in interface FacesWrapper<javax.el.VariableMapper>

beforeConstructELExpression

public void beforeConstructELExpression()
Description copied from class: VariableMapperBase
Indicates an expression will be resolved, so preparations should be done to detect if a contextual variable has been resolved.

Specified by:
beforeConstructELExpression in class VariableMapperBase

afterConstructELExpression

public void afterConstructELExpression()
Description copied from class: VariableMapperBase
Cleanup all initialization done.

Specified by:
afterConstructELExpression in class VariableMapperBase


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.