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

E17503-02

oracle.adfnmc.util
Class AdfBundle.ResourceBundleMapAdapter

java.lang.Object
  extended by oracle.adfnmc.util.AdfBundle.ResourceBundleMapAdapter
All Implemented Interfaces:
Map
Enclosing class:
AdfBundle

public static final class AdfBundle.ResourceBundleMapAdapter
extends java.lang.Object
implements Map

Simple adapter class to expose a ResourceBundle through the Map interface. Necessary to resolve ResourceBundle based EL expressions via JUEL SEMapELResolver.


Nested Class Summary
 
Nested classes/interfaces inherited from interface oracle.adfnmc.java.util.Map
Map.Entry
 
Constructor Summary
AdfBundle.ResourceBundleMapAdapter(ResourceBundle bundle)
           
 
Method Summary
 void clear()
          Removes all elements from this Map, leaving it empty.
 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.
 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.
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
          Maps the specified key to the specified value.
 void putAll(Map map)
          Copies every mapping in the specified Map to this Map.
 java.lang.Object remove(java.lang.Object key)
          Removes a mapping with the specified key from this Map.
 int size()
          Answers the number of elements in this Map.
 Collection values()
          Returns all of the current Map values in a Collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.adfnmc.java.util.Map
equals, hashCode
 

Constructor Detail

AdfBundle.ResourceBundleMapAdapter

public AdfBundle.ResourceBundleMapAdapter(ResourceBundle bundle)
Method Detail

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()

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

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

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

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()

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

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

putAll

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

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

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

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

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.