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

E17503-02

oracle.adfnmc.util
Class PropertyCollection

java.lang.Object
  extended by oracle.adfnmc.util.PropertyCollection
All Implemented Interfaces:
Map, PropertyBag

public class PropertyCollection
extends java.lang.Object
implements PropertyBag, Map


Nested Class Summary
 
Nested classes/interfaces inherited from interface oracle.adfnmc.java.util.Map
Map.Entry
 
Field Summary
static java.lang.Class CLASS_INSTANCE
           
 
Constructor Summary
PropertyCollection()
           
 
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.
 java.lang.String getProperty(java.lang.String key)
           
 java.lang.Class getPropertyType(java.lang.String key)
           
 boolean isEmpty()
          Answers if this Map has no elements, a size of zero.
 Iterator keys()
           
 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.
 void setAdfConfigFile(AdfConfig config)
           
 void setAdfConfigResource(AdfConfig config)
           
 void setProperty(java.lang.String key, java.lang.Object value)
           
 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
 

Field Detail

CLASS_INSTANCE

public static final java.lang.Class CLASS_INSTANCE
Constructor Detail

PropertyCollection

public PropertyCollection()
Method Detail

setAdfConfigResource

public void setAdfConfigResource(AdfConfig config)

setAdfConfigFile

public void setAdfConfigFile(AdfConfig config)

getPropertyType

public java.lang.Class getPropertyType(java.lang.String key)

getProperty

public java.lang.String getProperty(java.lang.String key)
Specified by:
getProperty in interface PropertyBag

setProperty

public void setProperty(java.lang.String key,
                        java.lang.Object value)

keys

public Iterator keys()
Specified by:
keys in interface PropertyBag

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.