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:
-
Constructor Summary
ConstructorsConstructorDescriptionLocationValueExpression(Location location, jakarta.el.ValueExpression delegate) LocationValueExpression(Location location, jakarta.el.ValueExpression delegate, int ccLevel) -
Method Summary
Modifier and TypeMethodDescriptionapply(int newCCLevel) booleanintClass<?>Class<?>getType(jakarta.el.ELContext context) getValue(jakarta.el.ELContext context) jakarta.el.ValueReferencegetValueReference(jakarta.el.ELContext context) jakarta.el.ValueExpressioninthashCode()booleanbooleanisReadOnly(jakarta.el.ELContext context) voidvoidvoid
-
Constructor Details
-
LocationValueExpression
public LocationValueExpression() -
LocationValueExpression
-
LocationValueExpression
-
-
Method Details
-
getLocation
-
getCCLevel
public int getCCLevel() -
apply
-
apply
-
getExpectedType
- Specified by:
getExpectedTypein classjakarta.el.ValueExpression
-
getType
- Specified by:
getTypein classjakarta.el.ValueExpression
-
getValue
- Specified by:
getValuein classjakarta.el.ValueExpression
-
isReadOnly
public boolean isReadOnly(jakarta.el.ELContext context) - Specified by:
isReadOnlyin classjakarta.el.ValueExpression
-
setValue
- Specified by:
setValuein classjakarta.el.ValueExpression
-
equals
- Specified by:
equalsin classjakarta.el.Expression
-
getExpressionString
- Specified by:
getExpressionStringin classjakarta.el.Expression
-
hashCode
public int hashCode()- Specified by:
hashCodein classjakarta.el.Expression
-
isLiteralText
public boolean isLiteralText()- Specified by:
isLiteralTextin classjakarta.el.Expression
-
getWrapped
public jakarta.el.ValueExpression getWrapped()- Specified by:
getWrappedin interfaceFacesWrapper<jakarta.el.ValueExpression>
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
getValueReference
public jakarta.el.ValueReference getValueReference(jakarta.el.ELContext context) - Overrides:
getValueReferencein classjakarta.el.ValueExpression
-