Class Categories

    • Constructor Detail

      • Categories

        public Categories()
    • Method Detail

      • enumerateCategory

        public Enumeration<Category> enumerateCategory()
        Method enumerateCategory.
        Returns:
        an Enumeration over all possible elements of this collection
      • getCategory

        public Category[] getCategory()
        Method getCategory.Returns the contents of the collection in an Array.

        Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.

        Returns:
        this collection as an Array
      • getCategoryCollection

        public List<Category> getCategoryCollection()
        Method getCategoryCollection.Returns a reference to 'categoryList'. No type checking is performed on any modifications to the Vector.
        Returns:
        a reference to the Vector backing this class
      • getCategoryCount

        public int getCategoryCount()
        Method getCategoryCount.
        Returns:
        the size of this collection
      • iterateCategory

        public Iterator<Category> iterateCategory()
        Method iterateCategory.
        Returns:
        an Iterator over all possible elements in this collection
      • removeAllCategory

        public void removeAllCategory()
      • removeCategory

        public boolean removeCategory​(Category vCategory)
        Method removeCategory.
        Parameters:
        vCategory -
        Returns:
        true if the object was removed from the collection.
      • removeCategoryAt

        public Category removeCategoryAt​(int index)
        Method removeCategoryAt.
        Parameters:
        index -
        Returns:
        the element removed from the collection
      • setCategory

        public void setCategory​(Category[] vCategoryArray)
        Parameters:
        vCategoryArray -
      • setCategory

        public void setCategory​(List<Category> vCategoryList)
        Sets the value of 'categoryList' by copying the given Vector. All elements will be checked for type safety.
        Parameters:
        vCategoryList - the Vector to copy.
      • setCategoryCollection

        public void setCategoryCollection​(List<Category> categoryList)
        Deprecated.
        Sets the value of 'categoryList' by setting it to the given Vector. No type checking is performed.
        Parameters:
        categoryList - the Vector to set.