com.ibm.commons.iloader.node
Interface IValueCollection


public interface IValueCollection

An interface used in conjunction with an ICollection object. Allows an instance of ILoader to add and remove items to/from a collection.


Method Summary
 boolean add(int index, java.lang.String object, DataChangeNotifier notifier)
          Adds an item at the given index
 java.lang.String get(int index)
          Gets an item at the given index.
 boolean remove(int index, DataChangeNotifier notifier)
          Removes an item at the given index
 boolean removeAll(DataChangeNotifier notifier)
          Removes all items from the collection.
 boolean set(int index, java.lang.String object, DataChangeNotifier notifier)
          Replaces an item at the given index
 int size()
          Returns the size of the value collection.
 

Method Detail

size

int size()
Returns the size of the value collection.

Returns:

get

java.lang.String get(int index)
Gets an item at the given index.

Parameters:
index -
Returns:

add

boolean add(int index,
            java.lang.String object,
            DataChangeNotifier notifier)
Adds an item at the given index

Parameters:
index - location where the item is to be added
object - the object to be added
notifier - the object responsible for notifying listeners
Returns:
true if the operation succeeded

set

boolean set(int index,
            java.lang.String object,
            DataChangeNotifier notifier)
Replaces an item at the given index

Parameters:
index - location where the item is to be inserted
object - the object to be inserted
notifier - the object responsible for notifying listeners
Returns:
true if the operation succeeded

remove

boolean remove(int index,
               DataChangeNotifier notifier)
Removes an item at the given index

Parameters:
index - location where the item is to be removed
object - the object to be removed
notifier - the object responsible for notifying listeners
Returns:
true if the operation succeeded

removeAll

boolean removeAll(DataChangeNotifier notifier)
Removes all items from the collection.

Parameters:
notifier - the object responsible for notifying listeners
Returns:
true if the operation succeeded