Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.bindings.dbf
Class BindingContainerImpl

java.lang.Object
  extended by oracle.adfnmc.bindings.dbf.BindingContainerImpl
All Implemented Interfaces:
BindingContainer, PhaseListener, Map

public class BindingContainerImpl
extends java.lang.Object
implements BindingContainer, PhaseListener


Nested Class Summary
 
Nested classes/interfaces inherited from interface oracle.adfnmc.java.util.Map
Map.Entry
 
Field Summary
static java.lang.Class CLASS_INSTANCE
           
static java.lang.String ERROR_KEY
           
static java.lang.String ERRORS_KEY
           
static java.lang.String EXCEPTIONSLIST_KEY
           
 
Fields inherited from interface oracle.adfnmc.bindings.events.PhaseListener
PHASE_ONSHOW, PHASE_POSTRESPONSE, PHASE_PREREQUEST
 
Constructor Summary
BindingContainerImpl()
           
 
Method Summary
 void clear()
          Removes all elements from this Map, leaving it empty.
 void containerInitialized(BindingContainer container)
          Called when the initialization of the container is complete.
 boolean containsKey(java.lang.Object key)
          Searches this Map for the specified key.
 boolean containsValue(java.lang.Object value)
          Searches this Map for the specified value.
 Set entrySet()
          Returns a Set whose elements comprise all of the mappings that are to be found in this Map.
 java.lang.Object get(java.lang.Object key)
          Answers the value of the mapping with the specified key.
 ValueExpression getContainerReferenceExpression()
           
 ControlBinding getControlBinding(java.lang.String name)
          Returns a control binding with the given name.
 Map getControlBindings()
          Return a list of all control bindings in the container.
 ResourceBundle getCurrentResourceBundle()
           
 java.util.Enumeration getElements()
           
 java.lang.Exception getError()
           
 List getErrors()
          Get the list of errors raised by the most recent binding operation in this container
 java.util.Enumeration getKeys()
           
 XmlAnyDefinition getMetadataDefinition()
           
 java.lang.String getName()
          Returns the name of the container
 OperationBinding getOperationBinding(java.lang.String name)
          Returns an operation binding with the given name.
 void initialize(BindingContainerInitializer initializer)
          initialize the container with code generated from pagedef metadata
 void initialize(java.lang.String pageDefPath)
          initialize the container by parsing pagedef metadata
 boolean isActive()
           
 boolean isEmpty()
          Answers if this Map has no elements, a size of zero.
 Set keySet()
          Answers a Set of the keys contained in this Map.
 void onShow()
          Occurs each time a screen is shown
 void postResponse()
           
 void preRequest()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
          Maps the specified key to the specified value.
 void putAll(Map m)
          Copies every mapping in the specified Map to this Map.
 void refresh()
          Refreshes the DataControl by iteratively re-evaluating the executable bindings.
 void release()
          Releases this ControlBinding.
 java.lang.Object remove(java.lang.Object key)
          Removes a mapping with the specified key from this Map.
 void reportException(AdfNmcException ex, boolean rethrow)
           
 void setCurrentResourceBundle(java.lang.String id, Locale locale)
           
 void setIsActive(boolean isActive)
           
 void setMetadataDefinition(XmlAnyDefinition metadataDef)
           
 int size()
          Answers the number of elements in this Map.
 java.lang.String toString()
           
 Collection values()
          Returns all of the current Map values in a Collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.adfnmc.java.util.Map
equals, hashCode
 

Field Detail

CLASS_INSTANCE

public static final java.lang.Class CLASS_INSTANCE

ERROR_KEY

public static final java.lang.String ERROR_KEY

ERRORS_KEY

public static final java.lang.String ERRORS_KEY

EXCEPTIONSLIST_KEY

public static final java.lang.String EXCEPTIONSLIST_KEY
Constructor Detail

BindingContainerImpl

public BindingContainerImpl()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

containsKey

public boolean containsKey(java.lang.Object key)
Description copied from interface: Map
Searches this Map for the specified key.

Specified by:
containsKey in interface Map
Parameters:
key - the object to search for
Returns:
true if key is a key of this Map, false otherwise

get

public java.lang.Object get(java.lang.Object key)
Description copied from interface: Map
Answers the value of the mapping with the specified key.

Specified by:
get in interface Map
Parameters:
key - the key
Returns:
the value of the mapping with the specified key

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Description copied from interface: Map
Maps the specified key to the specified value.

Specified by:
put in interface Map
Parameters:
key - the key
value - the value
Returns:
the value of any previous mapping with the specified key or null if there was no mapping

getElements

public java.util.Enumeration getElements()

getKeys

public java.util.Enumeration getKeys()

isActive

public boolean isActive()

isEmpty

public boolean isEmpty()
Description copied from interface: Map
Answers if this Map has no elements, a size of zero.

Specified by:
isEmpty in interface Map
Returns:
true if this Map has no elements, false otherwise
See Also:
Map.size()

remove

public java.lang.Object remove(java.lang.Object key)
Description copied from interface: Map
Removes a mapping with the specified key from this Map.

Specified by:
remove in interface Map
Parameters:
key - the key of the mapping to remove
Returns:
the value of the removed mapping or null if key is not a key in this Map

containerInitialized

public void containerInitialized(BindingContainer container)
Description copied from interface: BindingContainer
Called when the initialization of the container is complete. Any initialization operations on a container that require it to be populated with all of it's bindings and iterators should be performed here.

Specified by:
containerInitialized in interface BindingContainer

getControlBinding

public ControlBinding getControlBinding(java.lang.String name)
Description copied from interface: BindingContainer
Returns a control binding with the given name. Returns null if name is not found.

Specified by:
getControlBinding in interface BindingContainer
Returns:
ControlBinding that matches the given name

getControlBindings

public Map getControlBindings()
Description copied from interface: BindingContainer
Return a list of all control bindings in the container.

Specified by:
getControlBindings in interface BindingContainer

getName

public java.lang.String getName()
Description copied from interface: BindingContainer
Returns the name of the container

Specified by:
getName in interface BindingContainer

getMetadataDefinition

public XmlAnyDefinition getMetadataDefinition()

setMetadataDefinition

public void setMetadataDefinition(XmlAnyDefinition metadataDef)

getOperationBinding

public OperationBinding getOperationBinding(java.lang.String name)
Description copied from interface: BindingContainer
Returns an operation binding with the given name. Returns null if name is not found. This is a typed accessor that can be used instead of getControlBinding() to get to an action binding in this region.

Specified by:
getOperationBinding in interface BindingContainer
Returns:
ControlBinding that matches the given name

refresh

public void refresh()
Description copied from interface: BindingContainer
Refreshes the DataControl by iteratively re-evaluating the executable bindings. This method is called by the Controller to initialize and perpare the Bindings. This method can be called anytime. If the bindings have already been evaluated, and no state has changed, they should not re-execute.

Specified by:
refresh in interface BindingContainer

release

public void release()
Description copied from interface: BindingContainer
Releases this ControlBinding. This method is called when the view component has finished using this ControlBinding.

Specified by:
release in interface BindingContainer

getContainerReferenceExpression

public ValueExpression getContainerReferenceExpression()

getError

public java.lang.Exception getError()

getErrors

public List getErrors()
Description copied from interface: BindingContainer
Get the list of errors raised by the most recent binding operation in this container

Specified by:
getErrors in interface BindingContainer

initialize

public void initialize(BindingContainerInitializer initializer)
initialize the container with code generated from pagedef metadata

Parameters:
initializer -

initialize

public void initialize(java.lang.String pageDefPath)
initialize the container by parsing pagedef metadata

Parameters:
pageDefPath -

reportException

public void reportException(AdfNmcException ex,
                            boolean rethrow)

getCurrentResourceBundle

public ResourceBundle getCurrentResourceBundle()
Specified by:
getCurrentResourceBundle in interface BindingContainer

setCurrentResourceBundle

public void setCurrentResourceBundle(java.lang.String id,
                                     Locale locale)
Specified by:
setCurrentResourceBundle in interface BindingContainer

onShow

public void onShow()
Description copied from interface: PhaseListener
Occurs each time a screen is shown

Specified by:
onShow in interface PhaseListener

preRequest

public void preRequest()
Specified by:
preRequest in interface PhaseListener

postResponse

public void postResponse()
Specified by:
postResponse in interface PhaseListener

setIsActive

public void setIsActive(boolean isActive)

size

public int size()
Description copied from interface: Map
Answers the number of elements in this Map.

Specified by:
size in interface Map
Returns:
the number of elements in this Map

putAll

public void putAll(Map m)
Description copied from interface: Map
Copies every mapping in the specified Map to this Map.

Specified by:
putAll in interface Map
Parameters:
m - the Map to copy mappings from

clear

public void clear()
Description copied from interface: Map
Removes all elements from this Map, leaving it empty.

Specified by:
clear in interface Map
See Also:
Map.isEmpty(), Map.size()

containsValue

public boolean containsValue(java.lang.Object value)
Description copied from interface: Map
Searches this Map for the specified value.

Specified by:
containsValue in interface Map
Parameters:
value - the object to search for
Returns:
true if value is a value of this Map, false otherwise

entrySet

public Set entrySet()
Description copied from interface: Map
Returns a Set whose elements comprise all of the mappings that are to be found in this Map. Information on each of the mappings is encapsulated in a separate Map.Entry instance. As the Set is backed by this Map, users should be aware that changes in one will be immediately visible in the other.

Specified by:
entrySet in interface Map
Returns:
a Set of the mappings

keySet

public Set keySet()
Description copied from interface: Map
Answers a Set of the keys contained in this Map. The set is backed by this Map so changes to one are reflected by the other. The set does not support adding.

Specified by:
keySet in interface Map
Returns:
a Set of the keys

values

public Collection values()
Description copied from interface: Map
Returns all of the current Map values in a Collection. As the returned Collection is backed by this Map, users should be aware that changes in one will be immediately visible in the other.

Specified by:
values in interface Map
Returns:
a Collection of the values

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.