Oracle Fusion Middleware Java API Reference for Oracle ADF Controller
11g Release 2 (11.1.2.0.0)

E17480-01

oracle.adf.controller.metadata.model.beans
Interface MapEntriesHolder

All Known Subinterfaces:
ManagedBean, ManagedProperty

public interface MapEntriesHolder

Interface denoting a component that stores map entries.


Method Summary
 boolean addMapEntry(MapEntry entry)
          Adds a new entry to the map entries.
 java.util.List<MapEntry> getMapEntries()
          A list of map entries for this component.
 java.lang.String getMapKeyClass()
          A fully qualified Java class name for keys in the map to be created.
 java.lang.String getMapValueClass()
          A fully qualified Java class name for values in the map to be created.
 boolean removeMapEntry(MapEntry entry)
          Removes the specified entry from the map of entries.
 boolean setMapKeyClass(java.lang.String mapKeyClass)
          Sets map key Java type to a new value, or removes map key class.
 boolean setMapValueClass(java.lang.String mapValueClass)
          Sets map value Java type to a new value, or removes map value class.
 

Method Detail

getMapEntries

java.util.List<MapEntry> getMapEntries()
A list of map entries for this component.

Returns:
map entries list.

getMapValueClass

java.lang.String getMapValueClass()
A fully qualified Java class name for values in the map to be created.

Returns:
the implementation class of map values.

getMapKeyClass

java.lang.String getMapKeyClass()
A fully qualified Java class name for keys in the map to be created.

Returns:
the implementation class of map keyes.

setMapValueClass

boolean setMapValueClass(java.lang.String mapValueClass)
Sets map value Java type to a new value, or removes map value class. This methods has to be called after a property has been converted to a map by adding map entries, or it is a brand new property.

Parameters:
mapValueClass - new Java type for map value
Returns:
true, if map value class was successfully set, false otherwise

setMapKeyClass

boolean setMapKeyClass(java.lang.String mapKeyClass)
Sets map key Java type to a new value, or removes map key class. This methods has to be called after a property has been converted to a map by adding map entries, or it is a brand new property.

Parameters:
mapKeyClass - new Java type for map key
Returns:
true, if map key class was successfully set, false otherwise

addMapEntry

boolean addMapEntry(MapEntry entry)
Adds a new entry to the map entries. An entry cannot be null.

Parameters:
entry -
Returns:

removeMapEntry

boolean removeMapEntry(MapEntry entry)
Removes the specified entry from the map of entries. The entry cannot be null and it has to exist in the map.

Parameters:
entry - the entry to remove
Returns:
true, if the entry was successfully removed, false otherwise

Oracle Fusion Middleware Java API Reference for Oracle ADF Controller
11g Release 2 (11.1.2.0.0)

E17480-01

Copyright © 1997, 2011, Oracle. All rights reserved.