Package org.swat.excel.utils
Class NamedSectionSheet.Section.NamedRow
- java.lang.Object
-
- org.swat.excel.utils.NamedSectionSheet.Section.NamedRow
-
- Enclosing class:
- NamedSectionSheet.Section
public class NamedSectionSheet.Section.NamedRow extends Object
Names row, where cell value can be fetched using Header Names.
-
-
Constructor Summary
Constructors Constructor Description NamedRow(org.apache.poi.ss.usermodel.Row row)Instantiates a new Named row.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanasBoolean(String name)As boolean boolean.DateasDate(String name)As date date.doubleasDouble(String name)As double double.intasInt(String name)As int int.java.time.LocalDateasLocalDate(String name)As local date local date.longasLong(String name)As long long.ObjectasObject(String name)As object object.StringasString(String name)As string string.org.apache.poi.ss.usermodel.CellgetCell(String name)Gets cell.org.apache.poi.ss.usermodel.CellgetCell(String name, boolean createIfNull)Gets cell.org.apache.poi.ss.usermodel.RowgetRow()Gets row.Map<String,Object>toMap()Returns a Map of valuesStringtoString()StringtoString(boolean pretty)To string string.
-
-
-
Method Detail
-
asString
public String asString(String name)
As string string.- Parameters:
name- the name- Returns:
- the string
-
asLong
public long asLong(String name)
As long long.- Parameters:
name- the name- Returns:
- the long
-
asInt
public int asInt(String name)
As int int.- Parameters:
name- the name- Returns:
- the int
-
asDouble
public double asDouble(String name)
As double double.- Parameters:
name- the name- Returns:
- the double
-
asBoolean
public boolean asBoolean(String name)
As boolean boolean.- Parameters:
name- the name- Returns:
- the boolean
-
asObject
public Object asObject(String name)
As object object.- Parameters:
name- the name- Returns:
- the object
-
asDate
public Date asDate(String name)
As date date.- Parameters:
name- the name- Returns:
- the date in UTC
-
asLocalDate
public java.time.LocalDate asLocalDate(String name)
As local date local date.- Parameters:
name- the name- Returns:
- the local date in UTC
-
getCell
public org.apache.poi.ss.usermodel.Cell getCell(String name)
Gets cell.- Parameters:
name- the name- Returns:
- the cell
-
getCell
public org.apache.poi.ss.usermodel.Cell getCell(String name, boolean createIfNull)
Gets cell.- Parameters:
name- the namecreateIfNull- the create if null- Returns:
- the cell
-
getRow
public org.apache.poi.ss.usermodel.Row getRow()
Gets row.- Returns:
- the row
-
toString
public String toString(boolean pretty)
To string string.- Parameters:
pretty- the pretty- Returns:
- the string
-
-