|
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.bindings.dbf.ControlBindingImpl
public abstract class ControlBindingImpl
Field Summary | |
---|---|
static java.lang.Class |
CLASS_INSTANCE
|
protected java.lang.Exception |
currentError
|
protected DataControl |
dataControl
|
protected List |
errors
|
protected IteratorExecutableBindingImpl |
iterBinding
|
protected XmlAnyDefinition |
metadataDef
|
protected java.lang.String |
name
|
protected BindingContainer |
parentBindingContainer
|
Fields inherited from interface oracle.adfnmc.el.ELResolver |
---|
RESOLVABLE_AT_DESIGN_TIME, TYPE |
Constructor Summary | |
---|---|
ControlBindingImpl(XmlAnyDefinition metadataDef,
java.lang.String name,
DataControl dataControl,
IteratorExecutableBindingImpl iterBinding)
|
Method Summary | |
---|---|
void |
containerInitialized(BindingContainer container)
Overriding implementations should always call this base implementation before returning to set the parent container |
Map |
getBindings()
added for ADFNMC |
DataControl |
getDataControl()
|
java.lang.Exception |
getError()
|
List |
getErrors()
|
BasicIterator |
getIterator()
|
XmlAnyDefinition |
getMetadataDefinition()
added for ADFNMC |
java.lang.String |
getName()
Return name that identifies this binding uniquely in it's container. |
java.lang.String |
getPath()
Get a unique path to this instance of the control binding inside it's 'outermost' container that is referred in the BindingContext. |
protected abstract ELResolver |
getResolver()
|
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.Object |
getValue(ELContext context,
java.lang.Object base,
java.lang.Object property)
Resolve a value given a base/property pair. |
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. |
boolean |
prepareDeferredIterator()
|
abstract void |
refresh()
|
abstract void |
registerForIteratorEvents(IteratorExecutableBindingImpl evtSource)
|
void |
release()
Releases this ControlBinding. |
void |
reportException(AdfNmcException ex,
boolean rethrow)
|
boolean |
resolvePath(Map postMap)
Given a map of name/value pairs, use this binding's path to find an entry in this map. |
void |
setListener(UpdateListener listener)
Adds a listener that should be notified when the associated attribute value changes. |
void |
setValue(ELContext context,
java.lang.Object base,
java.lang.Object property,
java.lang.Object value)
Set value on an object using an accessor resolved from a base/property pair. |
java.lang.String |
toString()
|
abstract void |
unregisterForIteratorEvents(IteratorExecutableBindingImpl evtSource)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Class CLASS_INSTANCE
protected final XmlAnyDefinition metadataDef
protected final DataControl dataControl
protected final IteratorExecutableBindingImpl iterBinding
protected final java.lang.String name
protected BindingContainer parentBindingContainer
protected java.lang.Exception currentError
protected List errors
Constructor Detail |
---|
public ControlBindingImpl(XmlAnyDefinition metadataDef, java.lang.String name, DataControl dataControl, IteratorExecutableBindingImpl iterBinding)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
protected abstract ELResolver getResolver()
public abstract void refresh()
public java.lang.Exception getError()
public List getErrors()
public void reportException(AdfNmcException ex, boolean rethrow)
public DataControl getDataControl()
public BasicIterator getIterator()
public boolean prepareDeferredIterator()
public void containerInitialized(BindingContainer container)
containerInitialized
in interface ControlBinding
container
- public java.lang.String getName()
ControlBinding
getName
in interface ControlBinding
public java.lang.String getPath()
ControlBinding
getPath
in interface ControlBinding
public void release()
ControlBinding
release
in interface ControlBinding
public boolean resolvePath(Map postMap)
ControlBinding
resolvePath
in interface ControlBinding
public void setListener(UpdateListener listener)
ControlBinding
setListener
in interface ControlBinding
listener
- The listener object that needs be notified.public abstract void registerForIteratorEvents(IteratorExecutableBindingImpl evtSource)
public abstract void unregisterForIteratorEvents(IteratorExecutableBindingImpl evtSource)
public Map getBindings()
ControlBinding
getBindings
in interface ControlBinding
public XmlAnyDefinition getMetadataDefinition()
ControlBinding
getMetadataDefinition
in interface ControlBinding
public java.lang.Class getType(ELContext context, java.lang.Object base, java.lang.Object property)
ELResolver
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.
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 ELResolver
context
- 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 boolean isReadOnly(ELContext context, java.lang.Object base, java.lang.Object property)
ELResolver
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.
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 ELResolver
context
- 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 java.lang.Object getValue(ELContext context, java.lang.Object base, java.lang.Object property)
getValue
in interface ELResolver
context
- 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 void setValue(ELContext context, java.lang.Object base, java.lang.Object property, java.lang.Object value)
setValue
in interface ELResolver
context
- 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.
|
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 |