public abstract class ELResolver extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOLVABLE_AT_DESIGN_TIME |
static String |
TYPE |
| Constructor and Description |
|---|
ELResolver() |
| Modifier and Type | Method and Description |
|---|---|
abstract Class<?> |
getCommonPropertyType(ELContext context,
Object base) |
abstract Iterator<FeatureDescriptor> |
getFeatureDescriptors(ELContext context,
Object base) |
abstract Class<?> |
getType(ELContext context,
Object base,
Object property) |
abstract Object |
getValue(ELContext context,
Object base,
Object property) |
Object |
invoke(ELContext context,
Object base,
Object method,
Class<?>[] paramTypes,
Object[] params)
Invokes a method on the the given object.
|
abstract boolean |
isReadOnly(ELContext context,
Object base,
Object property) |
abstract void |
setValue(ELContext context,
Object base,
Object property,
Object value) |
public static final String TYPE
public static final String RESOLVABLE_AT_DESIGN_TIME
public abstract Object getValue(ELContext context, Object base, Object property)
context - The EL context for this evaluationbase - The base object on which the property is to be foundproperty - The property whose value is to be returnedNullPointerException - If the supplied context is nullPropertyNotFoundException - 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 Object invoke(ELContext context, Object base, Object method, Class<?>[] paramTypes, Object[] params)
null.context - 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 methodnullpublic abstract Class<?> getType(ELContext context, Object base, Object property)
context - The EL context for this evaluationbase - The base object on which the property is to be foundproperty - The property whose type is to be returnedNullPointerException - If the supplied context is nullPropertyNotFoundException - 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 abstract void setValue(ELContext context, Object base, Object property, Object value)
context - 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 toNullPointerException - If the supplied context is nullPropertyNotFoundException - 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 abstract boolean isReadOnly(ELContext context, Object base, Object property)
context - 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 falseNullPointerException - If the supplied context is nullPropertyNotFoundException - 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 abstract Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base)
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.