public abstract class TypeConverter extends ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE| Constructor and Description |
|---|
TypeConverter() |
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
convertToType(ELContext context,
Object obj,
Class<?> type)
Converts the given object to the given type.
|
Class<?> |
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) |
invokepublic Object getValue(ELContext context, Object base, Object property)
getValue in class ELResolvercontext - The EL context for this evaluationbase - The base object on which the property is to be foundproperty - The property whose value is to be returnedpublic Class<?> getType(ELContext context, Object base, Object property)
getType in class ELResolvercontext - The EL context for this evaluationbase - The base object on which the property is to be foundproperty - The property whose type is to be returnedpublic void setValue(ELContext context, Object base, Object property, Object value)
setValue in class ELResolvercontext - 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 topublic boolean isReadOnly(ELContext context, Object base, Object property)
isReadOnly in class ELResolvercontext - 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 falsepublic Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base)
getFeatureDescriptors in class ELResolverpublic Class<?> getCommonPropertyType(ELContext context, Object base)
getCommonPropertyType in class ELResolverpublic abstract Object convertToType(ELContext context, Object obj, Class<?> type)
ELResolvernull.convertToType in class ELResolvercontext - The EL context for this evaluationobj - The object to converttype - The type to which the object should be convertednullCopyright © 2014–2021. All rights reserved.