public class RootPropertyResolver extends ELResolver
base == null && property instanceof String), which are stored in a map. The
properties can be accessed via the getProperty(String),
setProperty(String, Object), isProperty(String) and properties()
methods.RESOLVABLE_AT_DESIGN_TIME, TYPE| Constructor and Description |
|---|
RootPropertyResolver()
Create a read/write root property resolver
|
RootPropertyResolver(boolean readOnly)
Create a root property resolver
|
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getCommonPropertyType(ELContext context,
Object base) |
Iterator<FeatureDescriptor> |
getFeatureDescriptors(ELContext context,
Object base) |
Object |
getProperty(String property)
Get property value
|
Class<?> |
getType(ELContext context,
Object base,
Object property) |
Object |
getValue(ELContext context,
Object base,
Object property) |
Object |
invoke(ELContext context,
Object base,
Object method,
Class<?>[] paramTypes,
Object[] params) |
boolean |
isProperty(String property)
Test property
|
boolean |
isReadOnly(ELContext context,
Object base,
Object property) |
Iterable<String> |
properties()
Get properties
|
void |
setProperty(String property,
Object value)
Set property value
|
void |
setValue(ELContext context,
Object base,
Object property,
Object value) |
public RootPropertyResolver()
public RootPropertyResolver(boolean readOnly)
readOnly - public Class<?> getCommonPropertyType(ELContext context, Object base)
getCommonPropertyType in class ELResolverpublic Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base)
getFeatureDescriptors in class ELResolverpublic Class<?> getType(ELContext context, Object base, Object property)
getType in class ELResolverpublic Object getValue(ELContext context, Object base, Object property)
getValue in class ELResolverpublic boolean isReadOnly(ELContext context, Object base, Object property)
isReadOnly in class ELResolverpublic void setValue(ELContext context, Object base, Object property, Object value) throws PropertyNotWritableException
setValue in class ELResolverPropertyNotWritableExceptionpublic Object invoke(ELContext context, Object base, Object method, Class<?>[] paramTypes, Object[] params)
invoke in class ELResolverpublic Object getProperty(String property)
property - property namepublic void setProperty(String property, Object value)
property - property namevalue - property valuepublic boolean isProperty(String property)
property - property nametrue if the given property is associated with a valueCopyright © 2006-2013 Odysseus Software GmbH. All Rights Reserved.