Class ExceptionListImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(TypeCode tc)
      Adds a TypeCode object describing an exception to this ExceptionList object.
      int count()
      Retrieves the number of TypeCode objects in this ExceptionList object.
      TypeCode item​(int index)
      Returns the TypeCode object at the given index.
      void remove​(int index)
      Removes the TypeCode object at the given index.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _exceptions

        private java.util.List<TypeCode> _exceptions
    • Constructor Detail

      • ExceptionListImpl

        public ExceptionListImpl()
    • Method Detail

      • count

        public int count()
        Description copied from class: ExceptionList
        Retrieves the number of TypeCode objects in this ExceptionList object.
        Specified by:
        count in class ExceptionList
        Returns:
        the number of TypeCode objects in this ExceptionList object
      • add

        public void add​(TypeCode tc)
        Description copied from class: ExceptionList
        Adds a TypeCode object describing an exception to this ExceptionList object.
        Specified by:
        add in class ExceptionList
        Parameters:
        tc - the TypeCode object to be added
      • item

        public TypeCode item​(int index)
                      throws Bounds
        Description copied from class: ExceptionList
        Returns the TypeCode object at the given index. The first item is at index 0.
        Specified by:
        item in class ExceptionList
        Parameters:
        index - the index of the TypeCode object desired. This must be an int between 0 and the number of TypeCode objects minus one, inclusive.
        Returns:
        the TypeCode object at the given index
        Throws:
        Bounds - if the index given is greater than or equal to the number of TypeCode objects in this ExceptionList object
      • remove

        public void remove​(int index)
                    throws Bounds
        Description copied from class: ExceptionList
        Removes the TypeCode object at the given index. Note that the indices of all the TypeCoded objects following the one deleted are shifted down by one.
        Specified by:
        remove in class ExceptionList
        Parameters:
        index - the index of the TypeCode object to be removed. This must be an int between 0 and the number of TypeCode objects minus one, inclusive.
        Throws:
        Bounds - if the index is greater than or equal to the number of TypeCode objects in this ExceptionList object