Class CatSections
- java.lang.Object
-
- org.opennms.reporting.availability.CatSections
-
- All Implemented Interfaces:
java.io.Serializable
public class CatSections extends java.lang.Object implements java.io.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 void
addSection(int index, Section vSection)
void
addSection(Section vSection)
java.util.Enumeration<Section>
enumerateSection()
Method enumerateSection.Section[]
getSection()
Method getSection.Returns the contents of the collection in an Array.Section
getSection(int index)
Method getSection.java.util.List<Section>
getSectionCollection()
Method getSectionCollection.Returns a reference to 'sectionList'.int
getSectionCount()
Method getSectionCount.java.util.Iterator<Section>
iterateSection()
Method iterateSection.void
removeAllSection()
boolean
removeSection(Section vSection)
Method removeSection.Section
removeSectionAt(int index)
Method removeSectionAt.void
setSection(int index, Section vSection)
void
setSection(java.util.List<Section> vSectionList)
Sets the value of 'sectionList' by copying the given Vector.void
setSection(Section[] vSectionArray)
void
setSectionCollection(java.util.List<Section> sectionList)
Deprecated.
-
-
-
Method Detail
-
addSection
public void addSection(Section vSection) throws java.lang.IndexOutOfBoundsException
- Parameters:
vSection
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
addSection
public void addSection(int index, Section vSection) throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-vSection
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
enumerateSection
public java.util.Enumeration<Section> enumerateSection()
Method enumerateSection.- Returns:
- an Enumeration over all possible elements of this collection
-
getSection
public Section getSection(int index) throws java.lang.IndexOutOfBoundsException
Method getSection.- Parameters:
index
-- Returns:
- the value of the Section at the given index
- Throws:
java.lang.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 java.util.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 java.util.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 java.lang.IndexOutOfBoundsException
- Parameters:
index
-vSection
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
setSection
public void setSection(Section[] vSectionArray)
- Parameters:
vSectionArray
-
-
setSection
public void setSection(java.util.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(java.util.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.
-
-