public class XelELResolver extends ELResolver
Modifier and Type | Class and Description |
---|---|
static class |
XelELResolver.StandardBeanNameResolver
It's a class copied from StandardELContext
|
Modifier and Type | Field and Description |
---|---|
protected XelContext |
_ctx |
RESOLVABLE_AT_DESIGN_TIME, TYPE
Constructor and Description |
---|
XelELResolver(XelContext ctx)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getCommonPropertyType(ELContext ctx,
java.lang.Object base) |
protected ELResolver |
getELResolver() |
java.util.Iterator<java.beans.FeatureDescriptor> |
getFeatureDescriptors(ELContext ctx,
java.lang.Object base) |
java.lang.Class<?> |
getType(ELContext ctx,
java.lang.Object base,
java.lang.Object property) |
java.lang.Object |
getValue(ELContext ctx,
java.lang.Object base,
java.lang.Object property) |
protected XelContext |
getXelContext() |
java.lang.Object |
invoke(ELContext ctx,
java.lang.Object base,
java.lang.Object method,
java.lang.Class[] paramTypes,
java.lang.Object[] params)
Invokes a method on the the given object.
|
boolean |
isReadOnly(ELContext ctx,
java.lang.Object base,
java.lang.Object property) |
protected java.lang.Object |
resolve(ELContext ctx,
java.lang.Object base,
java.lang.Object property) |
void |
setValue(ELContext ctx,
java.lang.Object base,
java.lang.Object property,
java.lang.Object value) |
convertToType
protected final XelContext _ctx
public XelELResolver(XelContext ctx)
protected ELResolver getELResolver()
protected XelContext getXelContext()
public java.lang.Object getValue(ELContext ctx, java.lang.Object base, java.lang.Object property) throws PropertyNotFoundException, ELException
getValue
in class ELResolver
ctx
- The EL context for this evaluationbase
- The base object on which the property is to be foundproperty
- The property whose value is to be returnedPropertyNotFoundException
- If the base/property combination provided to the resolver is
one that the resolver can handle but no match was found or a
match was found but was not readableELException
- Wraps any exception throw whilst resolving the propertyprotected java.lang.Object resolve(ELContext ctx, java.lang.Object base, java.lang.Object property)
public java.lang.Class<?> getType(ELContext ctx, java.lang.Object base, java.lang.Object property) throws PropertyNotFoundException, ELException
getType
in class ELResolver
ctx
- The EL context for this evaluationbase
- The base object on which the property is to be foundproperty
- The property whose type is to be returnedPropertyNotFoundException
- If the base/property combination provided to the resolver is
one that the resolver can handle but no match was found or a
match was found but was not readableELException
- Wraps any exception throw whilst resolving the propertypublic void setValue(ELContext ctx, java.lang.Object base, java.lang.Object property, java.lang.Object value) throws PropertyNotFoundException, PropertyNotWritableException, ELException
setValue
in class ELResolver
ctx
- The EL context for this evaluationbase
- The base object on which the property is to be foundproperty
- The property whose value is to be setvalue
- The value to set the property toPropertyNotFoundException
- If the base/property combination provided to the resolver is
one that the resolver can handle but no match was foundPropertyNotWritableException
- If the base/property combination provided to the resolver is
one that the resolver can handle but the property was not
writableELException
- Wraps any exception throw whilst resolving the propertypublic boolean isReadOnly(ELContext ctx, java.lang.Object base, java.lang.Object property) throws PropertyNotFoundException, ELException
isReadOnly
in class ELResolver
ctx
- The EL context for this evaluationbase
- The base object on which the property is to be foundproperty
- The property to be checked for read only statustrue
if the identified property is read only,
otherwise false
PropertyNotFoundException
- If the base/property combination provided to the resolver is
one that the resolver can handle but no match was foundELException
- Wraps any exception throw whilst resolving the propertypublic java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(ELContext ctx, java.lang.Object base)
getFeatureDescriptors
in class ELResolver
public java.lang.Class getCommonPropertyType(ELContext ctx, java.lang.Object base)
getCommonPropertyType
in class ELResolver
public java.lang.Object invoke(ELContext ctx, java.lang.Object base, java.lang.Object method, java.lang.Class[] paramTypes, java.lang.Object[] params) throws MethodNotFoundException
ELResolver
null
.invoke
in class ELResolver
ctx
- The EL context for this evaluationbase
- The base object on which the method is to be foundmethod
- The method to invokeparamTypes
- The types of the parameters of the method to invokeparams
- The parameters with which to invoke the methodnull
MethodNotFoundException
Copyright © 2005-2021 Potix Corporation. All Rights Reserved.