Package com.sun.corba.ee.impl.corba
Class ExceptionListImpl
- java.lang.Object
-
- org.omg.CORBA.ExceptionList
-
- com.sun.corba.ee.impl.corba.ExceptionListImpl
-
public class ExceptionListImpl extends ExceptionList
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<TypeCode>
_exceptions
private static int
INITIAL_CAPACITY
-
Constructor Summary
Constructors Constructor Description ExceptionListImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(TypeCode tc)
Adds aTypeCode
object describing an exception to thisExceptionList
object.int
count()
Retrieves the number ofTypeCode
objects in thisExceptionList
object.TypeCode
item(int index)
Returns theTypeCode
object at the given index.void
remove(int index)
Removes theTypeCode
object at the given index.
-
-
-
Field Detail
-
INITIAL_CAPACITY
private static final int INITIAL_CAPACITY
- See Also:
- Constant Field Values
-
_exceptions
private java.util.List<TypeCode> _exceptions
-
-
Method Detail
-
count
public int count()
Description copied from class:ExceptionList
Retrieves the number ofTypeCode
objects in thisExceptionList
object.- Specified by:
count
in classExceptionList
- Returns:
- the number of
TypeCode
objects in thisExceptionList
object
-
add
public void add(TypeCode tc)
Description copied from class:ExceptionList
Adds aTypeCode
object describing an exception to thisExceptionList
object.- Specified by:
add
in classExceptionList
- Parameters:
tc
- theTypeCode
object to be added
-
item
public TypeCode item(int index) throws Bounds
Description copied from class:ExceptionList
Returns theTypeCode
object at the given index. The first item is at index 0.- Specified by:
item
in classExceptionList
- Parameters:
index
- the index of theTypeCode
object desired. This must be anint
between 0 and the number ofTypeCode
objects minus one, inclusive.- Returns:
- the
TypeCode
object at the given index - Throws:
Bounds
- if the index given is greater than or equal to the number ofTypeCode
objects in thisExceptionList
object
-
remove
public void remove(int index) throws Bounds
Description copied from class:ExceptionList
Removes theTypeCode
object at the given index. Note that the indices of all theTypeCoded
objects following the one deleted are shifted down by one.- Specified by:
remove
in classExceptionList
- Parameters:
index
- the index of theTypeCode
object to be removed. This must be anint
between 0 and the number ofTypeCode
objects minus one, inclusive.- Throws:
Bounds
- if the index is greater than or equal to the number ofTypeCode
objects in thisExceptionList
object
-
-