FileDocCategorySizeDatePackage
ContextListImpl.javaAPI DocJava SE 5 API1634Fri Aug 26 14:54:18 BST 2005com.sun.corba.se.impl.corba

ContextListImpl

public class ContextListImpl extends org.omg.CORBA.ContextList

Fields Summary
private final int
INITIAL_CAPACITY
private final int
CAPACITY_INCREMENT
private org.omg.CORBA.ORB
_orb
private Vector
_contexts
Constructors Summary
public ContextListImpl(org.omg.CORBA.ORB orb)


       
    
        // Note: This orb could be an instanceof ORBSingleton or ORB
        _orb = orb;
        _contexts = new Vector(INITIAL_CAPACITY, CAPACITY_INCREMENT);
    
Methods Summary
public voidadd(java.lang.String ctxt)

        _contexts.addElement(ctxt);
    
public intcount()

        return _contexts.size();
    
public java.lang.Stringitem(int index)

        try {
            return (String) _contexts.elementAt(index);
        } catch (ArrayIndexOutOfBoundsException e) {
            throw new Bounds();
        }
    
public voidremove(int index)

        try {
            _contexts.removeElementAt(index);
        } catch (ArrayIndexOutOfBoundsException e) {
            throw new Bounds();
        }