Package com.sun.corba.ee.impl.corba
Class ExceptionListImpl
java.lang.Object
org.omg.CORBA.ExceptionList
com.sun.corba.ee.impl.corba.ExceptionListImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds aTypeCode
object describing an exception to thisExceptionList
object.int
count()
Retrieves the number ofTypeCode
objects in thisExceptionList
object.item
(int index) Returns theTypeCode
object at the given index.void
remove
(int index) Removes theTypeCode
object at the given index.
-
Field Details
-
INITIAL_CAPACITY
private static final int INITIAL_CAPACITY- See Also:
-
_exceptions
-
-
Constructor Details
-
ExceptionListImpl
public ExceptionListImpl()
-
-
Method Details
-
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
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
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
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
-