IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.model
Interface IMapModel

All Superinterfaces:
IModel
All Known Implementing Classes:
KCollModel

public interface IMapModel
extends IModel

An object that maps keys to values. A map cannot contain duplicate keys; each key can map to at most one value.


Method Summary
 IModel get(java.lang.Object key)
          Returns the value to which this map maps the specified key.
 java.lang.Object[] keys()
          Returns an array view of the keys contained in this map.
 void put(java.lang.Object key, IModel model)
          Associates the specified value with the specified key in this map
 IModel remove(java.lang.Object key)
          Removes the mapping for this key from this map if it is present
 int size()
          Returns the number of key-value mappings in this map.
 
Methods inherited from interface com.ibm.btt.model.IModel
getContent
 

Method Detail

get

IModel get(java.lang.Object key)
           throws ObjectNotFoundException
Returns the value to which this map maps the specified key.

Parameters:
key - key whose associated value is to be returned.
Returns:
the value to which this map maps the specified key, or null if the map contains no mapping for this key.
Throws:
ObjectNotFoundException - if the element is not found with the key

put

void put(java.lang.Object key,
         IModel model)
Associates the specified value with the specified key in this map

Parameters:
key - key with which the specified value is to be associated.
model - value to be associated with the specified key.

size

int size()
Returns the number of key-value mappings in this map.

Returns:
the number of key-value mappings in this map.

keys

java.lang.Object[] keys()
Returns an array view of the keys contained in this map.

Returns:
an array view of the keys contained in this map.

remove

IModel remove(java.lang.Object key)
              throws ObjectNotFoundException
Removes the mapping for this key from this map if it is present

Parameters:
key - key whose mapping is to be removed from the map.
Returns:
previous value associated with specified key, or null if there was no mapping for key.
Throws:
ObjectNotFoundException - if the element isn't exist with the key element

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2009