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>_exceptionsprivate static intINITIAL_CAPACITY
-
Constructor Summary
Constructors Constructor Description ExceptionListImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(TypeCode tc)Adds aTypeCodeobject describing an exception to thisExceptionListobject.intcount()Retrieves the number ofTypeCodeobjects in thisExceptionListobject.TypeCodeitem(int index)Returns theTypeCodeobject at the given index.voidremove(int index)Removes theTypeCodeobject 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:ExceptionListRetrieves the number ofTypeCodeobjects in thisExceptionListobject.- Specified by:
countin classExceptionList- Returns:
- the number of
TypeCodeobjects in thisExceptionListobject
-
add
public void add(TypeCode tc)
Description copied from class:ExceptionListAdds aTypeCodeobject describing an exception to thisExceptionListobject.- Specified by:
addin classExceptionList- Parameters:
tc- theTypeCodeobject to be added
-
item
public TypeCode item(int index) throws Bounds
Description copied from class:ExceptionListReturns theTypeCodeobject at the given index. The first item is at index 0.- Specified by:
itemin classExceptionList- Parameters:
index- the index of theTypeCodeobject desired. This must be anintbetween 0 and the number ofTypeCodeobjects minus one, inclusive.- Returns:
- the
TypeCodeobject at the given index - Throws:
Bounds- if the index given is greater than or equal to the number ofTypeCodeobjects in thisExceptionListobject
-
remove
public void remove(int index) throws BoundsDescription copied from class:ExceptionListRemoves theTypeCodeobject at the given index. Note that the indices of all theTypeCodedobjects following the one deleted are shifted down by one.- Specified by:
removein classExceptionList- Parameters:
index- the index of theTypeCodeobject to be removed. This must be anintbetween 0 and the number ofTypeCodeobjects minus one, inclusive.- Throws:
Bounds- if the index is greater than or equal to the number ofTypeCodeobjects in thisExceptionListobject
-
-