IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.model.ctx
Class KCollModel

java.lang.Object
  extended by com.ibm.btt.model.ctx.KCollModel
All Implemented Interfaces:
IMapModel, IModel

public class KCollModel
extends java.lang.Object
implements IMapModel

The BTT Context implementation of IMapModel: KeyedCollection


Constructor Summary
KCollModel(KeyedCollection kcoll)
          Construct the KCollModel object
 
Method Summary
 IModel get(java.lang.Object key)
          Returns the value to which this map maps the specified key.
 java.lang.Object getContent()
           
 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KCollModel

public KCollModel(KeyedCollection kcoll)
Construct the KCollModel object

Parameters:
kcoll - the KeyedCollection object
Method Detail

getContent

public java.lang.Object getContent()
Specified by:
getContent in interface IModel
Returns:
the root content of the model.(Wrapped data element)
See Also:
IModel.getContent()

get

public IModel get(java.lang.Object key)
           throws ObjectNotFoundException
Description copied from interface: IMapModel
Returns the value to which this map maps the specified key.

Specified by:
get in interface IMapModel
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
See Also:
IMapModel.get(Object)

keys

public java.lang.Object[] keys()
Description copied from interface: IMapModel
Returns an array view of the keys contained in this map.

Specified by:
keys in interface IMapModel
Returns:
an array view of the keys contained in this map.
See Also:
IMapModel.keys()

remove

public IModel remove(java.lang.Object key)
              throws ObjectNotFoundException
Description copied from interface: IMapModel
Removes the mapping for this key from this map if it is present

Specified by:
remove in interface IMapModel
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 element isn't found
See Also:
IMapModel.remove(Object)

put

public void put(java.lang.Object key,
                IModel model)
Description copied from interface: IMapModel
Associates the specified value with the specified key in this map

Specified by:
put in interface IMapModel
Parameters:
key - key with which the specified value is to be associated.
model - value to be associated with the specified key.
See Also:
IMapModel.put(Object, IModel)

size

public int size()
Description copied from interface: IMapModel
Returns the number of key-value mappings in this map.

Specified by:
size in interface IMapModel
Returns:
the number of key-value mappings in this map.
See Also:
IMapModel.size()

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010