|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.adfnmc.el.util.BeanResolver
public abstract class BeanResolver
Convenience class for managed beans to extend that adds management of listener registration and forwards down calls to MethodDispatch.invokeMethod(). Not to be confused with oracle.adfnmc.el.BeanELResolver, which resolves calls on classes that implement MethodDispatch, but is not the instance of the bean itself.
| Field Summary |
|---|
| Fields inherited from interface oracle.adfnmc.el.ELResolver |
|---|
RESOLVABLE_AT_DESIGN_TIME, TYPE |
| Constructor Summary | |
|---|---|
BeanResolver()
|
|
| Method Summary | |
|---|---|
void |
addValueChangeListener(java.lang.String property,
ValueChangeListener listener)
|
java.lang.Class |
getType(ELContext context,
java.lang.Object base,
java.lang.Object property)
For a given base and property, attempts to identify the most
general type that is acceptable for an object to be passed as the value
parameter in a future call to the ELResolver.setValue(oracle.adfnmc.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object) method. |
java.lang.Class |
getType(java.lang.String property)
|
java.lang.Object |
getValue(ELContext context,
java.lang.Object base,
java.lang.Object property)
Attempts to resolve the given property object on the given base
object. |
boolean |
isReadOnly(ELContext context,
java.lang.Object base,
java.lang.Object property)
For a given base and property, attempts to determine whether a
call to ELResolver.setValue(oracle.adfnmc.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object) will always fail. |
protected boolean |
notifyAfterSetValue(java.lang.String propertyName)
Beans can override this method if they wish to disable the default behavior of firing notifications after setValue is called, per property |
protected void |
notifyValueChangeListeners(java.lang.String propertyName)
|
void |
removeValueChangeListener(java.lang.String property,
ValueChangeListener listener)
|
void |
setValue(ELContext context,
java.lang.Object base,
java.lang.Object property,
java.lang.Object value)
Attempts to set the value of the given property object on the given
base object. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface oracle.adfnmc.util.MethodDispatch |
|---|
invokeMethod |
| Constructor Detail |
|---|
public BeanResolver()
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Class getType(java.lang.String property)
getType in interface PropertyDispatch
public java.lang.Class getType(ELContext context,
java.lang.Object base,
java.lang.Object property)
ELResolverbase and property, attempts to identify the most
general type that is acceptable for an object to be passed as the value
parameter in a future call to the ELResolver.setValue(oracle.adfnmc.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object) method.
If this resolver handles the given (base, property) pair, the propertyResolved
property of the ELContext object must be set to true by the
resolver, before returning. If this property is not true after this method is
called, the caller should ignore the return value.
This is not always the same as getValue().getClass(). For example, in the
case of an ArrayELResolver, the getType method will return the
element type of the array, which might be a superclass of the type of the actual element that
is currently in the specified array element.
getType in interface ELResolvercontext - The context of this evaluation.base - The base object whose property value is to be analyzed, or null to
analyze a top-level variable.property - The property or variable to return the acceptable type for.
propertyResolved property of ELContext was set
to true, then the most general acceptable type; otherwise undefined.
public java.lang.Object getValue(ELContext context,
java.lang.Object base,
java.lang.Object property)
ELResolverproperty object on the given base
object.
If this resolver handles the given (base, property) pair, the propertyResolved
property of the ELContext object must be set to true by the
resolver, before returning. If this property is not true after this method is
called, the caller should ignore the return value.
getValue in interface ELResolvercontext - The context of this evaluation.base - The base object whose property value is to be returned, or null to
resolve a top-level variable.property - The property or variable to be resolved.
propertyResolved property of ELContext was set
to true, then the result of the variable or property resolution;
otherwise undefined.
public boolean isReadOnly(ELContext context,
java.lang.Object base,
java.lang.Object property)
ELResolverbase and property, attempts to determine whether a
call to ELResolver.setValue(oracle.adfnmc.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object) will always fail.
If this resolver handles the given (base, property) pair, the propertyResolved
property of the ELContext object must be set to true by the
resolver, before returning. If this property is not true after this method is
called, the caller should ignore the return value.
isReadOnly in interface ELResolvercontext - The context of this evaluation.base - The base object whose property value is to be analyzed, or null to
analyze a top-level variable.property - The property or variable to return the read-only status for.
propertyResolved property of ELContext was set
to true, then true if the property is read-only or
false if not; otherwise undefined.
public void setValue(ELContext context,
java.lang.Object base,
java.lang.Object property,
java.lang.Object value)
ELResolverproperty object on the given
base object.
If this resolver handles the given (base, property) pair, the propertyResolved
property of the ELContext object must be set to true by the
resolver, before returning. If this property is not true after this method is
called, the caller can safely assume no value has been set.
setValue in interface ELResolvercontext - The context of this evaluation.base - The base object whose property value is to be set, or null to set a
top-level variable.property - The property or variable to be set.value - The value to set the property or variable to.
public void addValueChangeListener(java.lang.String property,
ValueChangeListener listener)
addValueChangeListener in interface PropertyValueChangeSourceproperty - Interned property string
public void removeValueChangeListener(java.lang.String property,
ValueChangeListener listener)
removeValueChangeListener in interface PropertyValueChangeSourceproperty - Interned property stringprotected boolean notifyAfterSetValue(java.lang.String propertyName)
protected void notifyValueChangeListeners(java.lang.String propertyName)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||