Package com.almis.awe.model.dto
Class CellData
java.lang.Object
com.almis.awe.model.dto.CellData
- All Implemented Interfaces:
Copyable
,Serializable
,Comparable<CellData>
CellData Class
CellData as an standard data output
- Author:
- Pablo GARCIA - 24/JUN/2010
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Compare to another cell to see which one is highercopy()
Get a copy of this elementReturns the value casted as dateReturns the value casted as doubleReturns the value casted as integerRetrieve the string valuegetValue()
Returns the object valueboolean
isEmpty()
Request if cell is printablesetNull()
Stores a null valueStores an object value
-
Constructor Details
-
CellData
public CellData()Constructor: fast initialization -
CellData
public CellData(T value) Constructor: fast initialization- Type Parameters:
T
- Cell value type- Parameters:
value
- Date value
-
CellData
Constructor: for C JNI calls- Parameters:
value
- Integer value
-
CellData
Constructor: for C JNI calls- Parameters:
value
- Float value
-
CellData
Constructor: for C JNI calls- Parameters:
value
- Date value
-
CellData
Constructor: for C JNI calls- Parameters:
value
- String value
-
-
Method Details
-
getStringValue
Retrieve the string value- Returns:
- CellData value as String
-
getDoubleValue
Returns the value casted as double- Returns:
- CellData value as Object
-
getIntegerValue
Returns the value casted as integer- Returns:
- CellData value as Integer
-
getDateValue
Returns the value casted as date- Returns:
- CellData value as Date
-
setNull
Stores a null value- Returns:
- this
-
isEmpty
public boolean isEmpty()Request if cell is printable- Returns:
- the printable
-
compareTo
Compare to another cell to see which one is higher- Specified by:
compareTo
in interfaceComparable<CellData>
- Parameters:
cell2
- Cell to compare to- Returns:
- Comparison
-
getValue
Returns the object value- Returns:
- Total pages
-
setValue
Stores an object value- Parameters:
value
- Object value- Returns:
- this
-
copy
Description copied from interface:Copyable
Get a copy of this element
-