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

java.lang.Object
  extended by javax.el.Expression
      extended by javax.el.ValueExpression
          extended by org.apache.myfaces.view.facelets.el.LocationValueExpression
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
LocationValueExpressionUEL

public class LocationValueExpression
extends javax.el.ValueExpression

A ValueExpression that contains the original ValueExpression and the Location of the facelet file from which the ValueExpression was created. This is needed when the current composite component (cc) has to be resolved by the ValueExpression, because #{cc} refers to the composite component which is implemented in the file the ValueExpression comes from and not the one currently on top of the composite component stack. This ValueExpression implementation passes through all methods to the delegate ValueExpression, but saves the related composite component in a FacesContext attribute before the invocation of the method on the delegate and removes it afterwards.

Version:
$Revision: 928752 $ $Date: 2010-03-29 07:28:20 -0500 (Mon, 29 Mar 2010) $
Author:
Jakob Korherr (latest modification by $Author: jakobk $)
See Also:
Serialized Form

Constructor Summary
LocationValueExpression(Location location, javax.el.ValueExpression delegate)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Class<?> getExpectedType()
           
 java.lang.String getExpressionString()
           
 Location getLocation()
           
 java.lang.Class<?> getType(javax.el.ELContext context)
           
 java.lang.Object getValue(javax.el.ELContext context)
           
 int hashCode()
           
 boolean isLiteralText()
           
 boolean isReadOnly(javax.el.ELContext context)
           
 void setValue(javax.el.ELContext context, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationValueExpression

public LocationValueExpression(Location location,
                               javax.el.ValueExpression delegate)
Method Detail

getLocation

public Location getLocation()

getExpectedType

public java.lang.Class<?> getExpectedType()
Specified by:
getExpectedType in class javax.el.ValueExpression

getType

public java.lang.Class<?> getType(javax.el.ELContext context)
Specified by:
getType in class javax.el.ValueExpression

getValue

public java.lang.Object getValue(javax.el.ELContext context)
Specified by:
getValue in class javax.el.ValueExpression

isReadOnly

public boolean isReadOnly(javax.el.ELContext context)
Specified by:
isReadOnly in class javax.el.ValueExpression

setValue

public void setValue(javax.el.ELContext context,
                     java.lang.Object value)
Specified by:
setValue in class javax.el.ValueExpression

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in class javax.el.Expression

getExpressionString

public java.lang.String getExpressionString()
Specified by:
getExpressionString in class javax.el.Expression

hashCode

public int hashCode()
Specified by:
hashCode in class javax.el.Expression

isLiteralText

public boolean isLiteralText()
Specified by:
isLiteralText in class javax.el.Expression


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