public abstract class ELResolver
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RESOLVABLE_AT_DESIGN_TIME |
static java.lang.String |
TYPE |
| Constructor and Description |
|---|
ELResolver() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
convertToType(ELContext context,
java.lang.Object obj,
java.lang.Class<?> type)
Converts the given object to the given type.
|
abstract java.lang.Class<?> |
getCommonPropertyType(ELContext context,
java.lang.Object base) |
abstract java.util.Iterator<java.beans.FeatureDescriptor> |
getFeatureDescriptors(ELContext context,
java.lang.Object base) |
abstract java.lang.Class<?> |
getType(ELContext context,
java.lang.Object base,
java.lang.Object property) |
abstract java.lang.Object |
getValue(ELContext context,
java.lang.Object base,
java.lang.Object property) |
java.lang.Object |
invoke(ELContext context,
java.lang.Object base,
java.lang.Object method,
java.lang.Class<?>[] paramTypes,
java.lang.Object[] params)
Invokes a method on the the given object.
|
abstract boolean |
isReadOnly(ELContext context,
java.lang.Object base,
java.lang.Object property) |
abstract void |
setValue(ELContext context,
java.lang.Object base,
java.lang.Object property,
java.lang.Object value) |
public static final java.lang.String TYPE
public static final java.lang.String RESOLVABLE_AT_DESIGN_TIME
public abstract java.lang.Object getValue(ELContext context, java.lang.Object base, java.lang.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 returnedjava.lang.NullPointerException - 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 java.lang.Object invoke(ELContext context, java.lang.Object base, java.lang.Object method, java.lang.Class<?>[] paramTypes, java.lang.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 java.lang.Class<?> getType(ELContext context, java.lang.Object base, java.lang.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 returnedjava.lang.NullPointerException - 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, java.lang.Object base, java.lang.Object property, java.lang.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 tojava.lang.NullPointerException - 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, java.lang.Object base, java.lang.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 falsejava.lang.NullPointerException - 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 java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(ELContext context, java.lang.Object base)
public abstract java.lang.Class<?> getCommonPropertyType(ELContext context, java.lang.Object base)
public java.lang.Object convertToType(ELContext context, java.lang.Object obj, java.lang.Class<?> type)
null.context - The EL context for this evaluationobj - The object to converttype - The type to which the object should be convertednullCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.