com.agimatec.utility.fileimport.spreadsheet
Interface ICell

All Known Implementing Classes:
ExcelCell

public interface ICell

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


Method Summary
 int getColumnIndex()
          logical cell number in row
 String getComment()
           
 Date getDateValue()
           
 double getNumericValue()
           
 String getStringValue()
          works with every cell data type.
 Object getValue()
          works with every cell data type.
 

Method Detail

getValue

Object getValue()
works with every cell data type.

Returns:
adequate value type (Date, Boolean, Double, String, Byte (error))

getNumericValue

double getNumericValue()
Returns:
cell value as numeric (0/1 for true/false)
Throws:
NumberFormatException - when value format is not a number

getStringValue

String getStringValue()
works with every cell data type.

Returns:
cell value as a string (or null, date-formatted string possible).

getDateValue

Date getDateValue()
Returns:
a date or null when cell type is not date

getComment

String getComment()
Returns:
null or cell comment

getColumnIndex

int getColumnIndex()
logical cell number in row

Returns:


Copyright © 2008-2011. All Rights Reserved.