Package com.sun.corba.ee.impl.corba
Class ContextListImpl
- java.lang.Object
-
- org.omg.CORBA.ContextList
-
- com.sun.corba.ee.impl.corba.ContextListImpl
-
public class ContextListImpl extends ContextList
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>
_contexts
private ORB
_orb
private static int
INITIAL_CAPACITY
-
Constructor Summary
Constructors Constructor Description ContextListImpl(ORB orb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.lang.String ctxt)
Adds aString
object to thisContextList
object.int
count()
Returns the number ofString
objects in thisContextList
object.java.lang.String
item(int index)
Returns theString
object at the given index.void
remove(int index)
Removes theString
object at the given index.
-
-
-
Field Detail
-
INITIAL_CAPACITY
private static final int INITIAL_CAPACITY
- See Also:
- Constant Field Values
-
_orb
private ORB _orb
-
_contexts
private java.util.List<java.lang.String> _contexts
-
-
Constructor Detail
-
ContextListImpl
public ContextListImpl(ORB orb)
-
-
Method Detail
-
count
public int count()
Description copied from class:ContextList
Returns the number ofString
objects in thisContextList
object.- Specified by:
count
in classContextList
- Returns:
- an
int
representing the number ofString
s in thisContextList
object
-
add
public void add(java.lang.String ctxt)
Description copied from class:ContextList
Adds aString
object to thisContextList
object.- Specified by:
add
in classContextList
- Parameters:
ctxt
- theString
object to be added
-
item
public java.lang.String item(int index) throws Bounds
Description copied from class:ContextList
Returns theString
object at the given index.- Specified by:
item
in classContextList
- Parameters:
index
- the index of the string desired, with 0 being the index of the first string- Returns:
- the string at the given index
- Throws:
Bounds
- if the index is greater than or equal to the number of strings in thisContextList
object
-
remove
public void remove(int index) throws Bounds
Description copied from class:ContextList
Removes theString
object at the given index. Note that the indices of all strings following the one removed are shifted down by one.- Specified by:
remove
in classContextList
- Parameters:
index
- the index of theString
object to be removed, with 0 designating the first string- Throws:
Bounds
- if the index is greater than or equal to the number ofString
objects in thisContextList
object
-
-