Class ContextListImpl

java.lang.Object
org.omg.CORBA.ContextList
com.sun.corba.ee.impl.corba.ContextListImpl

public class ContextListImpl extends ContextList
  • Field Details

  • Constructor Details

    • ContextListImpl

      public ContextListImpl(ORB orb)
  • Method Details

    • count

      public int count()
      Description copied from class: ContextList
      Returns the number of String objects in this ContextList object.
      Specified by:
      count in class ContextList
      Returns:
      an int representing the number of Strings in this ContextList object
    • add

      public void add(String ctxt)
      Description copied from class: ContextList
      Adds a String object to this ContextList object.
      Specified by:
      add in class ContextList
      Parameters:
      ctxt - the String object to be added
    • item

      public String item(int index) throws Bounds
      Description copied from class: ContextList
      Returns the String object at the given index.
      Specified by:
      item in class ContextList
      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 this ContextList object
    • remove

      public void remove(int index) throws Bounds
      Description copied from class: ContextList
      Removes the String 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 class ContextList
      Parameters:
      index - the index of the String object to be removed, with 0 designating the first string
      Throws:
      Bounds - if the index is greater than or equal to the number of String objects in this ContextList object