IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.model.ctx
Class ICollModel

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

public class ICollModel
extends java.lang.Object
implements IListModel

The IListModel implementation of BTT Context data model:IndexedCollection


Constructor Summary
ICollModel(IndexedCollection icoll)
          Construct the ICollModel object
 
Method Summary
 void add(IModel model)
          Appends the specified element(IModel) to the end of this list.
 void add(int index, IModel model)
          Add the element(IModel) to the specified position in this list.
 void clear()
          Removes all of the elements from this list.
 IModel createChildElement(java.lang.String name)
          Create child element using the name
 IModel get(int index)
          Returns the element(IModel) at the specified position in this list.
 java.lang.Object getContent()
           
 IModel remove(int index)
          Removes the element(IModel) at the specified position in this list.
 void set(int index, IModel model)
          Replaces the element at the specified position in this list with the specified element (optional operation).
 int size()
          Returns the number of elements in this list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ICollModel

public ICollModel(IndexedCollection icoll)
Construct the ICollModel object

Parameters:
icoll - the BTT IndexedCollection object
Method Detail

get

public IModel get(int index)
           throws java.lang.IndexOutOfBoundsException
Description copied from interface: IListModel
Returns the element(IModel) at the specified position in this list.

Specified by:
get in interface IListModel
Parameters:
index - index of element to return.
Returns:
the element(IModel) at the specified position in this list.
Throws:
java.lang.IndexOutOfBoundsException
See Also:
IListModel.get(int)

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

add

public void add(IModel model)
Description copied from interface: IListModel
Appends the specified element(IModel) to the end of this list.

Specified by:
add in interface IListModel
Parameters:
model - element to be appended to this list.
See Also:
IListModel.add(IModel)

add

public void add(int index,
                IModel model)
Description copied from interface: IListModel
Add the element(IModel) to the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

Specified by:
add in interface IListModel
Parameters:
index - the index of the element to added
model - element to be added to this list.
See Also:
IListModel.add(int, IModel)

clear

public void clear()
Description copied from interface: IListModel
Removes all of the elements from this list. This list will be empty after this call returns (unless it throws an exception).

Specified by:
clear in interface IListModel
See Also:
IListModel.clear()

remove

public IModel remove(int index)
              throws ObjectNotFoundException
Description copied from interface: IListModel
Removes the element(IModel) at the specified position in this list. Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the list.

Specified by:
remove in interface IListModel
Parameters:
index - the index of the element to removed.
Returns:
the element previously at the specified position.
Throws:
ObjectNotFoundException
See Also:
IListModel.remove(int)

size

public int size()
Description copied from interface: IListModel
Returns the number of elements in this list.

Specified by:
size in interface IListModel
Returns:
the number of elements in this list.
See Also:
IListModel.size()

set

public void set(int index,
                IModel model)
         throws java.lang.IllegalArgumentException
Description copied from interface: IListModel
Replaces the element at the specified position in this list with the specified element (optional operation).

Specified by:
set in interface IListModel
Parameters:
index - the index of the element to added
model - element to be added to this list.
Throws:
java.lang.IllegalArgumentException
See Also:
IListModel.set(int, IModel)

createChildElement

public IModel createChildElement(java.lang.String name)
                          throws java.lang.IllegalArgumentException
Description copied from interface: IListModel
Create child element using the name

Specified by:
createChildElement in interface IListModel
Parameters:
name - the name of the child element
Returns:
the model of the child element
Throws:
java.lang.IllegalArgumentException
See Also:
IListModel.createChildElement(String)

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011