com.agimatec.utility.fileimport.spreadsheet
Class ExcelCell

java.lang.Object
  extended by com.agimatec.utility.fileimport.spreadsheet.ExcelCell
All Implemented Interfaces:
ICell

public class ExcelCell
extends Object
implements ICell

Description: Abstraction for a single excel-spreadsheet cell
User: roman.stumm
Date: 11.06.2008
Time: 17:21:33
Copyright: Agimatec GmbH


Constructor Summary
ExcelCell(org.apache.poi.ss.usermodel.Cell hssfCell)
           
 
Method Summary
 org.apache.poi.ss.usermodel.Cell getCell()
           
 int getColumnIndex()
          logical cell number in row
 String getComment()
           
 Date getDateValue()
           
 double getNumericValue()
           
 String getStringValue()
          works with every cell data type.
 org.apache.poi.ss.usermodel.CellStyle getStyle()
           
 Object getValue()
          works with every cell data type.
 String toString()
          used to create field name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExcelCell

public ExcelCell(org.apache.poi.ss.usermodel.Cell hssfCell)
Method Detail

toString

public String toString()
used to create field name

Overrides:
toString in class Object

getValue

public Object getValue()
Description copied from interface: ICell
works with every cell data type.

Specified by:
getValue in interface ICell
Returns:
adequate value type (Date, Boolean, Double, String, Byte (error))

getNumericValue

public double getNumericValue()
Specified by:
getNumericValue in interface ICell
Returns:
cell value as numeric (0/1 for true/false)

getStringValue

public String getStringValue()
Description copied from interface: ICell
works with every cell data type.

Specified by:
getStringValue in interface ICell
Returns:
cell value as a string (or null, date-formatted string possible).

getDateValue

public Date getDateValue()
Specified by:
getDateValue in interface ICell
Returns:
a date or null when cell type is not date

getStyle

public org.apache.poi.ss.usermodel.CellStyle getStyle()

getCell

public org.apache.poi.ss.usermodel.Cell getCell()

getComment

public String getComment()
Specified by:
getComment in interface ICell
Returns:
null or cell comment

getColumnIndex

public int getColumnIndex()
Description copied from interface: ICell
logical cell number in row

Specified by:
getColumnIndex in interface ICell
Returns:


Copyright © 2008-2011. All Rights Reserved.