Class CatSections

    • Constructor Detail

      • CatSections

        public CatSections()
    • Method Detail

      • enumerateSection

        public Enumeration<Section> enumerateSection()
        Method enumerateSection.
        Returns:
        an Enumeration over all possible elements of this collection
      • getSection

        public Section[] getSection()
        Method getSection.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
      • getSectionCollection

        public List<Section> getSectionCollection()
        Method getSectionCollection.Returns a reference to 'sectionList'. No type checking is performed on any modifications to the Vector.
        Returns:
        a reference to the Vector backing this class
      • getSectionCount

        public int getSectionCount()
        Method getSectionCount.
        Returns:
        the size of this collection
      • iterateSection

        public Iterator<Section> iterateSection()
        Method iterateSection.
        Returns:
        an Iterator over all possible elements in this collection
      • removeAllSection

        public void removeAllSection()
      • removeSection

        public boolean removeSection​(Section vSection)
        Method removeSection.
        Parameters:
        vSection -
        Returns:
        true if the object was removed from the collection.
      • removeSectionAt

        public Section removeSectionAt​(int index)
        Method removeSectionAt.
        Parameters:
        index -
        Returns:
        the element removed from the collection
      • setSection

        public void setSection​(Section[] vSectionArray)
        Parameters:
        vSectionArray -
      • setSection

        public void setSection​(List<Section> vSectionList)
        Sets the value of 'sectionList' by copying the given Vector. All elements will be checked for type safety.
        Parameters:
        vSectionList - the Vector to copy.
      • setSectionCollection

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