Class LocationValueExpression
- java.lang.Object
-
- javax.el.Expression
-
- javax.el.ValueExpression
-
- org.apache.myfaces.view.facelets.el.LocationValueExpression
-
- All Implemented Interfaces:
Externalizable,Serializable,FacesWrapper<javax.el.ValueExpression>
- Direct Known Subclasses:
ResourceLocationValueExpression
public class LocationValueExpression extends javax.el.ValueExpression implements FacesWrapper<javax.el.ValueExpression>, Externalizable
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$ $Date$
- Author:
- Jakob Korherr (latest modification by $Author$)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocationValueExpression()LocationValueExpression(Location location, javax.el.ValueExpression delegate)LocationValueExpression(Location location, javax.el.ValueExpression delegate, int ccLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationValueExpressionapply(int newCCLevel)LocationValueExpressionapply(int newCCLevel, Location newLocation)booleanequals(Object obj)intgetCCLevel()Class<?>getExpectedType()StringgetExpressionString()LocationgetLocation()Class<?>getType(javax.el.ELContext context)ObjectgetValue(javax.el.ELContext context)javax.el.ValueReferencegetValueReference(javax.el.ELContext context)javax.el.ValueExpressiongetWrapped()inthashCode()booleanisLiteralText()booleanisReadOnly(javax.el.ELContext context)voidreadExternal(ObjectInput in)voidsetValue(javax.el.ELContext context, Object value)voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
LocationValueExpression
public LocationValueExpression()
-
LocationValueExpression
public LocationValueExpression(Location location, javax.el.ValueExpression delegate)
-
LocationValueExpression
public LocationValueExpression(Location location, javax.el.ValueExpression delegate, int ccLevel)
-
-
Method Detail
-
getLocation
public Location getLocation()
-
getCCLevel
public int getCCLevel()
-
apply
public LocationValueExpression apply(int newCCLevel)
-
apply
public LocationValueExpression apply(int newCCLevel, Location newLocation)
-
getExpectedType
public Class<?> getExpectedType()
- Specified by:
getExpectedTypein classjavax.el.ValueExpression
-
getType
public Class<?> getType(javax.el.ELContext context)
- Specified by:
getTypein classjavax.el.ValueExpression
-
getValue
public Object getValue(javax.el.ELContext context)
- Specified by:
getValuein classjavax.el.ValueExpression
-
isReadOnly
public boolean isReadOnly(javax.el.ELContext context)
- Specified by:
isReadOnlyin classjavax.el.ValueExpression
-
setValue
public void setValue(javax.el.ELContext context, Object value)- Specified by:
setValuein classjavax.el.ValueExpression
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin classjavax.el.Expression
-
getExpressionString
public String getExpressionString()
- Specified by:
getExpressionStringin classjavax.el.Expression
-
hashCode
public int hashCode()
- Specified by:
hashCodein classjavax.el.Expression
-
isLiteralText
public boolean isLiteralText()
- Specified by:
isLiteralTextin classjavax.el.Expression
-
getWrapped
public javax.el.ValueExpression getWrapped()
- Specified by:
getWrappedin interfaceFacesWrapper<javax.el.ValueExpression>
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
getValueReference
public javax.el.ValueReference getValueReference(javax.el.ELContext context)
- Overrides:
getValueReferencein classjavax.el.ValueExpression
-
-