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>_contextsprivate ORB_orbprivate static intINITIAL_CAPACITY
-
Constructor Summary
Constructors Constructor Description ContextListImpl(ORB orb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.lang.String ctxt)Adds aStringobject to thisContextListobject.intcount()Returns the number ofStringobjects in thisContextListobject.java.lang.Stringitem(int index)Returns theStringobject at the given index.voidremove(int index)Removes theStringobject 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:ContextListReturns the number ofStringobjects in thisContextListobject.- Specified by:
countin classContextList- Returns:
- an
intrepresenting the number ofStrings in thisContextListobject
-
add
public void add(java.lang.String ctxt)
Description copied from class:ContextListAdds aStringobject to thisContextListobject.- Specified by:
addin classContextList- Parameters:
ctxt- theStringobject to be added
-
item
public java.lang.String item(int index) throws BoundsDescription copied from class:ContextListReturns theStringobject at the given index.- Specified by:
itemin 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 thisContextListobject
-
remove
public void remove(int index) throws BoundsDescription copied from class:ContextListRemoves theStringobject at the given index. Note that the indices of all strings following the one removed are shifted down by one.- Specified by:
removein classContextList- Parameters:
index- the index of theStringobject to be removed, with 0 designating the first string- Throws:
Bounds- if the index is greater than or equal to the number ofStringobjects in thisContextListobject
-
-