Class CartElements


  • public class CartElements
    extends java.lang.Object

    Title: CartElements.

    Description:

    Copyright: Copyright (c) 2002

    Company: Microstrategy, Inc.

    Since:
    MicroStrategy Web 8.0.0
    • Constructor Summary

      Constructors 
      Constructor Description
      CartElements()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(CartElement unit)
      Adds the given CartElement object to the collection.
      void clear()
      Clears all objects from the collection.
      boolean containsObject​(CartElement object)
      Returns true if the collection contains the given object, false if it does not.
      java.util.Enumeration elements()
      Returns a java.util.Enumeration containing the objects in this collection.
      CartElement get​(int index)
      Returns the cart element unit in the collection with the given index.
      boolean isEmpty()
      Returns whether the collection is empty.
      void remove​(CartElement unit)
      Removes the display unit from the collection.
      int size()
      Returns the number of items in the collection.
      • Methods inherited from class java.lang.Object

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

      • CartElements

        public CartElements()
    • Method Detail

      • get

        public CartElement get​(int index)
                        throws java.lang.IndexOutOfBoundsException
        Returns the cart element unit in the collection with the given index.
        Parameters:
        index - The index of the object within the available cart element unit collection to return.
        Returns:
        The CartElement object corresponding to the given index in the collection.
        Throws:
        java.lang.IndexOutOfBoundsException - Thrown if the given index is invalid.
      • isEmpty

        public boolean isEmpty()
        Returns whether the collection is empty.
        Returns:
        True if the collection is empty, false otherwise.
      • size

        public int size()
        Returns the number of items in the collection.
        Returns:
        The size of the collection.
      • elements

        public java.util.Enumeration elements()
        Returns a java.util.Enumeration containing the objects in this collection.
        Returns:
        An Enumeration containing the objects in this collection.
      • containsObject

        public boolean containsObject​(CartElement object)
        Returns true if the collection contains the given object, false if it does not.
        Parameters:
        object - The CartElement object to search for in the folder.
        Returns:
        True if the collection contains the value, false if it does not.
      • add

        public void add​(CartElement unit)
        Adds the given CartElement object to the collection.
        Parameters:
        unit - The CartElement object to add to the collection.
        Throws:
        java.lang.UnsupportedOperationException - Thrown if the collection is read-only.
      • remove

        public void remove​(CartElement unit)
                    throws java.lang.IndexOutOfBoundsException
        Removes the display unit from the collection.
        Parameters:
        unit - The CartElement object to be removed from the collection.
        Throws:
        java.lang.UnsupportedOperationException - Thrown if the collection is marked as read-only.
        java.lang.IndexOutOfBoundsException - Thrown if the given index is invalid.
      • clear

        public void clear()
                   throws java.lang.UnsupportedOperationException
        Clears all objects from the collection.
        Throws:
        java.lang.UnsupportedOperationException - Thrown in the case of a read-only collection.