Package org.swat.excel.utils
Class NamedSectionSheet
- java.lang.Object
-
- org.swat.excel.utils.NamedSectionSheet
-
public class NamedSectionSheet extends Object
A wrapper for a Sheet with multiple Sections. Each section containing a Header Row
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classNamedSectionSheet.SectionThe type Section.
-
Constructor Summary
Constructors Constructor Description NamedSectionSheet(org.apache.poi.ss.usermodel.Sheet sheet)Instantiates a new Named section sheet.NamedSectionSheet(org.apache.poi.ss.usermodel.Sheet sheet, boolean namedSection)Instantiates a new Named section sheet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamedSectionSheet.SectiongetSection(int index)Gets section.NamedSectionSheet.SectiongetSection(String name)Gets section.Iterator<NamedSectionSheet.Section>iterator()The Section iteratorintsectionCount()Count of Sections
-
-
-
Constructor Detail
-
NamedSectionSheet
public NamedSectionSheet(org.apache.poi.ss.usermodel.Sheet sheet)
Instantiates a new Named section sheet.- Parameters:
sheet- the sheet
-
NamedSectionSheet
public NamedSectionSheet(org.apache.poi.ss.usermodel.Sheet sheet, boolean namedSection)Instantiates a new Named section sheet.- Parameters:
sheet- the sheetnamedSection- the named section
-
-
Method Detail
-
iterator
public Iterator<NamedSectionSheet.Section> iterator()
The Section iterator- Returns:
- the iterator
-
sectionCount
public int sectionCount()
Count of Sections- Returns:
- the count
-
getSection
public NamedSectionSheet.Section getSection(int index)
Gets section.- Parameters:
index- the index- Returns:
- the section
-
getSection
public NamedSectionSheet.Section getSection(String name)
Gets section.- Parameters:
name- the name- Returns:
- the section
-
-