Class CatSections
- java.lang.Object
-
- org.opennms.reporting.availability.CatSections
-
- All Implemented Interfaces:
Serializable
public class CatSections extends Object implements Serializable
Class CatSections.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CatSections()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddSection(int index, Section vSection)voidaddSection(Section vSection)Enumeration<Section>enumerateSection()Method enumerateSection.Section[]getSection()Method getSection.Returns the contents of the collection in an Array.SectiongetSection(int index)Method getSection.List<Section>getSectionCollection()Method getSectionCollection.Returns a reference to 'sectionList'.intgetSectionCount()Method getSectionCount.Iterator<Section>iterateSection()Method iterateSection.voidremoveAllSection()booleanremoveSection(Section vSection)Method removeSection.SectionremoveSectionAt(int index)Method removeSectionAt.voidsetSection(int index, Section vSection)voidsetSection(List<Section> vSectionList)Sets the value of 'sectionList' by copying the given Vector.voidsetSection(Section[] vSectionArray)voidsetSectionCollection(List<Section> sectionList)Deprecated.
-
-
-
Method Detail
-
addSection
public void addSection(Section vSection) throws IndexOutOfBoundsException
- Parameters:
vSection-- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the collection
-
addSection
public void addSection(int index, Section vSection) throws IndexOutOfBoundsException- Parameters:
index-vSection-- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the collection
-
enumerateSection
public Enumeration<Section> enumerateSection()
Method enumerateSection.- Returns:
- an Enumeration over all possible elements of this collection
-
getSection
public Section getSection(int index) throws IndexOutOfBoundsException
Method getSection.- Parameters:
index-- Returns:
- the value of the Section at the given index
- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the 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(int index, Section vSection) throws IndexOutOfBoundsException- Parameters:
index-vSection-- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of 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.
-
-