org.exolab.castor.mapping
public interface CollectionHandler
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:26 $
Method Summary | |
---|---|
Object | add(Object collection, Object object)
Add an object to the collection. |
Object | clear(Object collection)
Clears the collection of any objects. |
Enumeration | elements(Object collection)
Returns an enumeration of all the elements in the collection.
|
int | size(Object collection)
Returns the number of elements in the collection.
|
Parameters: collection The collection, null if no collection has been created yet object The object to add to the collection
Returns: The collection with the new object if a different instance than the collection parameter, null otherwise
Throws: ClassCastException The collection handler does not support collections of this type
Parameters: collection The collection, null if no collection has been created yet
Returns: The empty collection if a different instance than the collection parameter, null otherwise
Throws: ClassCastException The collection handler does not support collections of this type
Parameters: collection The collection
Returns: An enumeration of all the elements in the collection
Throws: ClassCastException The collection handler does not support collections of this type
Parameters: collection The collection
Returns: Number of elements in the collection
Throws: ClassCastException The collection handler does not support collections of this type