org.objectweb.jonas_ejb.container.jorm.Set Class Reference

Inherits org.objectweb.jonas_ejb.container.jorm.GenClassImpl.

Inheritance diagram for org.objectweb.jonas_ejb.container.jorm.Set:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_ejb.container.jorm.Set:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Set (PClassMapping gcm)
boolean add (Object o)
Object[] toArray ()
Object[] toArray (Object[] objects)
boolean addAll (java.util.Collection collection)
boolean removeAll (java.util.Collection collection)
boolean retainAll (java.util.Collection collection)
void clear ()

Detailed Description

This class is a basic implementation of the java.util.Set based on the generic class implementation (GenClassImpl) and the Collection implementation. This class can be used to represent a relation between bean.

Author:
S.Chassande-Barrioz : Initial developer

Helene Joanin : fix bugs in the toArray(...) methods

Definition at line 44 of file Set.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.jorm.Set.Set PClassMapping  gcm  ) 
 

Called from bean template (.vm)

Definition at line 49 of file Set.java.


Member Function Documentation

boolean org.objectweb.jonas_ejb.container.jorm.Set.add Object  o  ) 
 

Before adding the object into the set, it checks that the new element does not exist.

Parameters:
o is the element to add
Returns:
true is the element has been added, and false is the element already exists in the set.

Definition at line 64 of file Set.java.

Referenced by org.objectweb.jonas_ejb.container.jorm.Set.addAll().

boolean org.objectweb.jonas_ejb.container.jorm.Set.addAll java.util.Collection  collection  ) 
 

It iterates over the collection parameter to add each element in the collection.

Parameters:
collection the collection of elements to add

Definition at line 179 of file Set.java.

References org.objectweb.jonas_ejb.container.jorm.Set.add().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.jorm.Set.clear  ) 
 

It removes all elements.

Definition at line 235 of file Set.java.

References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcClear().

Referenced by org.objectweb.jonas_ejb.container.jorm.Set.retainAll().

Here is the call graph for this function:

boolean org.objectweb.jonas_ejb.container.jorm.Set.removeAll java.util.Collection  collection  ) 
 

It iterates over the collection parameter to remove each element in the collection.

Parameters:
collection The collection of elements to remove

Definition at line 195 of file Set.java.

References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcRemove().

Here is the call graph for this function:

boolean org.objectweb.jonas_ejb.container.jorm.Set.retainAll java.util.Collection  collection  ) 
 

For each element of the current collection, it checks if it exist into the collection parameter. If it does not found then it is removed from the current collection.

Definition at line 214 of file Set.java.

References org.objectweb.jonas_ejb.container.jorm.Set.clear(), and org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcRemove().

Here is the call graph for this function:

Object [] org.objectweb.jonas_ejb.container.jorm.Set.toArray Object[]  objects  ) 
 

It returns an array of the elements. It is built by an iteration over the existing elements.

Parameters:
objects the array into which the elements of this collection are to be stored
Returns:
array of the elements

Definition at line 125 of file Set.java.

References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcIterator().

Here is the call graph for this function:

Object [] org.objectweb.jonas_ejb.container.jorm.Set.toArray  ) 
 

It returns an array of the elements.

Returns:
array of the elements

Definition at line 115 of file Set.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:11:04 2005 for JOnAS by  doxygen 1.3.9.1