Class LocationValueExpression
- java.lang.Object
- 
- jakarta.el.Expression
- 
- jakarta.el.ValueExpression
- 
- org.apache.myfaces.view.facelets.el.LocationValueExpression
 
 
 
- 
- All Implemented Interfaces:
- FacesWrapper<jakarta.el.ValueExpression>,- Externalizable,- Serializable
 - Direct Known Subclasses:
- ResourceLocationValueExpression
 
 public class LocationValueExpression extends jakarta.el.ValueExpression implements FacesWrapper<jakarta.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 SummaryConstructors Constructor Description LocationValueExpression()LocationValueExpression(Location location, jakarta.el.ValueExpression delegate)LocationValueExpression(Location location, jakarta.el.ValueExpression delegate, int ccLevel)
 - 
Method SummaryAll 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(jakarta.el.ELContext context)ObjectgetValue(jakarta.el.ELContext context)jakarta.el.ValueReferencegetValueReference(jakarta.el.ELContext context)jakarta.el.ValueExpressiongetWrapped()inthashCode()booleanisLiteralText()booleanisReadOnly(jakarta.el.ELContext context)voidreadExternal(ObjectInput in)voidsetValue(jakarta.el.ELContext context, Object value)voidwriteExternal(ObjectOutput out)
 
- 
- 
- 
Constructor Detail- 
LocationValueExpressionpublic LocationValueExpression() 
 - 
LocationValueExpressionpublic LocationValueExpression(Location location, jakarta.el.ValueExpression delegate) 
 - 
LocationValueExpressionpublic LocationValueExpression(Location location, jakarta.el.ValueExpression delegate, int ccLevel) 
 
- 
 - 
Method Detail- 
getLocationpublic Location getLocation() 
 - 
getCCLevelpublic int getCCLevel() 
 - 
applypublic LocationValueExpression apply(int newCCLevel) 
 - 
applypublic LocationValueExpression apply(int newCCLevel, Location newLocation) 
 - 
getExpectedTypepublic Class<?> getExpectedType() - Specified by:
- getExpectedTypein class- jakarta.el.ValueExpression
 
 - 
getTypepublic Class<?> getType(jakarta.el.ELContext context) - Specified by:
- getTypein class- jakarta.el.ValueExpression
 
 - 
getValuepublic Object getValue(jakarta.el.ELContext context) - Specified by:
- getValuein class- jakarta.el.ValueExpression
 
 - 
isReadOnlypublic boolean isReadOnly(jakarta.el.ELContext context) - Specified by:
- isReadOnlyin class- jakarta.el.ValueExpression
 
 - 
setValuepublic void setValue(jakarta.el.ELContext context, Object value)- Specified by:
- setValuein class- jakarta.el.ValueExpression
 
 - 
equalspublic boolean equals(Object obj) - Specified by:
- equalsin class- jakarta.el.Expression
 
 - 
getExpressionStringpublic String getExpressionString() - Specified by:
- getExpressionStringin class- jakarta.el.Expression
 
 - 
hashCodepublic int hashCode() - Specified by:
- hashCodein class- jakarta.el.Expression
 
 - 
isLiteralTextpublic boolean isLiteralText() - Specified by:
- isLiteralTextin class- jakarta.el.Expression
 
 - 
getWrappedpublic jakarta.el.ValueExpression getWrapped() - Specified by:
- getWrappedin interface- FacesWrapper<jakarta.el.ValueExpression>
 
 - 
readExternalpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException - Specified by:
- readExternalin interface- Externalizable
- Throws:
- IOException
- ClassNotFoundException
 
 - 
writeExternalpublic void writeExternal(ObjectOutput out) throws IOException - Specified by:
- writeExternalin interface- Externalizable
- Throws:
- IOException
 
 - 
getValueReferencepublic jakarta.el.ValueReference getValueReference(jakarta.el.ELContext context) - Overrides:
- getValueReferencein class- jakarta.el.ValueExpression
 
 
- 
 
-