Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

oracle.apps.fnd.applcore.trees.ui.util
Class DynaBeanELResolver

java.lang.Object
  extended by javax.el.ELResolver
      extended by oracle.apps.fnd.applcore.trees.ui.util.DynaBeanELResolver

public class DynaBeanELResolver
extends javax.el.ELResolver

EL resolver for use with Apache BeanUtils DynaBeans.

Author:
Arun K Viswanathan <arun.viswanathan&064;oracle.com>
See Also:
DynaBean

Field Summary
 
Fields inherited from class javax.el.ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
 
Constructor Summary
DynaBeanELResolver()
           
 
Method Summary
 java.lang.Class<?> getCommonPropertyType(javax.el.ELContext context, java.lang.Object base)
          Returns the most general type that this resolver accepts for the property argument, given a base object.
 java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(javax.el.ELContext context, java.lang.Object base)
          Returns information about the set of variables or properties that can be resolved for the given base object, when the base object is a DynaBean.
 java.lang.Class<?> getType(javax.el.ELContext context, java.lang.Object base, java.lang.Object property)
          Attempts to provide the type of the specified property if the base object is a DynaBean.
 java.lang.Object getValue(javax.el.ELContext context, java.lang.Object base, java.lang.Object property)
          Attempts to resolve the given property object on the given base object, if the base object is a DynaBean.
 boolean isReadOnly(javax.el.ELContext context, java.lang.Object base, java.lang.Object property)
          Checks whether the given property is read only, if the base object is a DynaBean.
 void setValue(javax.el.ELContext context, java.lang.Object base, java.lang.Object property, java.lang.Object value)
          Attempts to set the given property value on a property of the base object, if the base object is a DynaBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynaBeanELResolver

public DynaBeanELResolver()
Method Detail

getValue

public java.lang.Object getValue(javax.el.ELContext context,
                                 java.lang.Object base,
                                 java.lang.Object property)
Attempts to resolve the given property object on the given base object, if the base object is a DynaBean.

Specified by:
getValue in class javax.el.ELResolver
Parameters:
context - the evaluation context
base - the base object whose property value is to be returned
property - the property being retrieved
Returns:
Object if the propertyResolved property of ELContext was set to true, then the result of the variable or property resolution; otherwise undefined
See Also:
DynaBean.get(String)

setValue

public void setValue(javax.el.ELContext context,
                     java.lang.Object base,
                     java.lang.Object property,
                     java.lang.Object value)
Attempts to set the given property value on a property of the base object, if the base object is a DynaBean.

Specified by:
setValue in class javax.el.ELResolver
Parameters:
context - the evaluation context
base - the base object whose property value is to be returned
property - the property being set
value - the value for the property
See Also:
DynaBean.set(String,Object)

isReadOnly

public boolean isReadOnly(javax.el.ELContext context,
                          java.lang.Object base,
                          java.lang.Object property)
Checks whether the given property is read only, if the base object is a DynaBean.

Specified by:
isReadOnly in class javax.el.ELResolver
Parameters:
context - the evaluation context
base - the base object whose property being tested
property - the property being tested
Returns:
boolean if the propertyResolved property of ELContext was set to true, then whether the property is readOnly; otherwise undefined

getType

public java.lang.Class<?> getType(javax.el.ELContext context,
                                  java.lang.Object base,
                                  java.lang.Object property)
Attempts to provide the type of the specified property if the base object is a DynaBean.

Specified by:
getType in class javax.el.ELResolver
Parameters:
context - the evaluation context
base - the base object whose property being tested
property - the property whose type is retrieved
Returns:
Class if the propertyResolved property of ELContext was set to true, then the type of the property; otherwise undefined
See Also:
DynaProperty.getType()

getFeatureDescriptors

public java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(javax.el.ELContext context,
                                                                              java.lang.Object base)
Returns information about the set of variables or properties that can be resolved for the given base object, when the base object is a DynaBean.

Specified by:
getFeatureDescriptors in class javax.el.ELResolver
Parameters:
context - the evaluation context
base - the base object being described
Returns:
Iterator iterator containing zero or more feature descriptors * or null if this ELResolver cannot describe the features

getCommonPropertyType

public java.lang.Class<?> getCommonPropertyType(javax.el.ELContext context,
                                                java.lang.Object base)
Returns the most general type that this resolver accepts for the property argument, given a base object.

Specified by:
getCommonPropertyType in class javax.el.ELResolver
Parameters:
context - the evaluation context
base - the base object
Returns:
Class null if this ELResolver does not know how to handle the given base object; otherwise Object.class

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

Copyright © 2011 Oracle. All Rights Reserved.