public class ImplicitObjectELResolver extends ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
Constructor and Description |
---|
ImplicitObjectELResolver() |
Modifier and Type | Method and Description |
---|---|
Class<String> |
getCommonPropertyType(ELContext context,
Object base) |
Iterator<FeatureDescriptor> |
getFeatureDescriptors(ELContext context,
Object base) |
Class |
getType(ELContext context,
Object base,
Object property) |
Object |
getValue(ELContext context,
Object base,
Object property) |
boolean |
isReadOnly(ELContext context,
Object base,
Object property) |
void |
setValue(ELContext context,
Object base,
Object property,
Object value) |
invoke
public Object getValue(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException
getValue
in class ELResolver
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 null
PropertyNotFoundException
- 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 Class getType(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException
getType
in class ELResolver
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 null
PropertyNotFoundException
- 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 context, Object base, Object property, Object value) throws NullPointerException, PropertyNotFoundException, PropertyNotWritableException, ELException
setValue
in class ELResolver
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 null
PropertyNotFoundException
- 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 context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException
isReadOnly
in class ELResolver
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 false
NullPointerException
- If the supplied context is null
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 Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base)
getFeatureDescriptors
in class ELResolver
public Class<String> getCommonPropertyType(ELContext context, Object base)
getCommonPropertyType
in class ELResolver
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.