Package com.sun.corba.se.impl.corba
Class ExceptionListImpl
java.lang.Object
org.omg.CORBA.ExceptionList
com.sun.corba.se.impl.corba.ExceptionListImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds aTypeCodeobject describing an exception to thisExceptionListobject.intcount()Retrieves the number ofTypeCodeobjects in thisExceptionListobject.item(int index) Returns theTypeCodeobject at the given index.voidremove(int index) Removes theTypeCodeobject at the given index.
-
Constructor Details
-
ExceptionListImpl
public ExceptionListImpl()
-
-
Method Details
-
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
Description copied from class:ExceptionListAdds aTypeCodeobject describing an exception to thisExceptionListobject.- Specified by:
addin classExceptionList- Parameters:
tc- theTypeCodeobject to be added
-
item
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
Description 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
-