Class 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 Detail

      • NamedRow

        public NamedRow​(org.apache.poi.ss.usermodel.Row row)
        Instantiates a new Named row.
        Parameters:
        row - the row
    • 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 name
        createIfNull - the create if null
        Returns:
        the cell
      • getRow

        public org.apache.poi.ss.usermodel.Row getRow()
        Gets row.
        Returns:
        the row
      • toMap

        public Map<String,​Object> toMap()
        Returns a Map of values
        Returns:
        the map
      • toString

        public String toString​(boolean pretty)
        To string string.
        Parameters:
        pretty - the pretty
        Returns:
        the string