public abstract class TypeConverter extends ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
Constructor and Description |
---|
TypeConverter() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
convertToType(ELContext context,
java.lang.Object obj,
java.lang.Class<?> type)
Converts the given object to the given type.
|
java.lang.Class<?> |
getCommonPropertyType(ELContext context,
java.lang.Object base) |
java.util.Iterator<java.beans.FeatureDescriptor> |
getFeatureDescriptors(ELContext context,
java.lang.Object base) |
java.lang.Class<?> |
getType(ELContext context,
java.lang.Object base,
java.lang.Object property) |
java.lang.Object |
getValue(ELContext context,
java.lang.Object base,
java.lang.Object property) |
boolean |
isReadOnly(ELContext context,
java.lang.Object base,
java.lang.Object property) |
void |
setValue(ELContext context,
java.lang.Object base,
java.lang.Object property,
java.lang.Object value) |
invoke
public java.lang.Object getValue(ELContext context, java.lang.Object base, java.lang.Object property)
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 returnedpublic java.lang.Class<?> getType(ELContext context, java.lang.Object base, java.lang.Object property)
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 returnedpublic void setValue(ELContext context, java.lang.Object base, java.lang.Object property, java.lang.Object value)
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 topublic boolean isReadOnly(ELContext context, java.lang.Object base, java.lang.Object property)
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
public java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(ELContext context, java.lang.Object base)
getFeatureDescriptors
in class ELResolver
public java.lang.Class<?> getCommonPropertyType(ELContext context, java.lang.Object base)
getCommonPropertyType
in class ELResolver
public abstract java.lang.Object convertToType(ELContext context, java.lang.Object obj, java.lang.Class<?> type)
ELResolver
null
.convertToType
in class ELResolver
context
- The EL context for this evaluationobj
- The object to converttype
- The type to which the object should be convertednull
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.