public interface Cell extends MDWEObject, EModelElement
The following features are supported:
ExcelPackage.getCell()
Modifier and Type | Method and Description |
---|---|
Column |
getColumn()
Returns the value of the 'Column' reference.
|
Comment |
getComment()
Returns the value of the 'Comment' containment reference.
|
String |
getFormula()
Returns the value of the 'Formula' attribute.
|
Hyperlink |
getHyperlink()
Returns the value of the 'Hyperlink' reference.
|
Row |
getRow()
Returns the value of the 'Row' container reference.
|
CellStyle |
getStyle()
Returns the value of the 'Style' reference.
|
CellType |
getType()
Returns the value of the 'Type' attribute.
|
String |
getValue()
Returns the value of the 'Value' attribute.
|
boolean |
getValueBoolean()
Returns the underlying value as a
boolean . |
double |
getValueDouble()
Returns the underlying value as an
double . |
int |
getValueError()
Returns the underlying error, caused by a formula evaluation that cannot succeed.
|
String |
getValueFormula()
Returns the cell formula evaluation result.
|
int |
getValueInt()
Returns the underlying value as an
int . |
void |
setComment(Comment value)
Sets the value of the '
Comment ' containment reference. |
void |
setFormula(String value)
Sets the value of the '
Formula ' attribute. |
void |
setHyperlink(Hyperlink value)
Sets the value of the '
Hyperlink ' reference. |
void |
setRow(Row value)
Sets the value of the '
Row ' container reference. |
void |
setStyle(CellStyle value)
Sets the value of the '
Style ' reference. |
void |
setType(CellType value)
Sets the value of the '
Type ' attribute. |
void |
setValue(String value)
Sets the value of the '
Value ' attribute. |
void |
setValueBoolean(boolean value)
Updates the cell with the specified boolean value.
|
void |
setValueDouble(double value)
Updates the cell with the specified double value.
|
void |
setValueError(int value)
Updates the cell with the specified formula evaluation error.
|
void |
setValueInt(int value)
Updates the cell with the specified integer value.
|
void |
setValueString(String value)
Updates the cell with the specified String value.
|
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
Row getRow()
Cells
'.
setRow(Row)
,
ExcelPackage.getCell_Row()
,
Row.getCells()
void setRow(Row value)
Row
' container reference.
value
- the new value of the 'Row' container reference.getRow()
String getValue()
""
.
setValue(String)
,
ExcelPackage.getCell_Value()
int getValueError()
getType()
,
CellType.ERROR_LITERAL
String getValueFormula()
String
if the cell is not a formula.getType()
,
CellType.FORMULA_LITERAL
,
getFormula()
double getValueDouble()
double
.
Client shall first verify the cell type is a numeric.double
, 0.0
if the value is not a double.getType()
,
CellType.NUMERIC_LITERAL
int getValueInt()
int
.
Client shall first verify the cell type is a numeric.int
, 0
if the value is not a int.getType()
,
CellType.NUMERIC_LITERAL
boolean getValueBoolean()
boolean
.
Client shall first verify the cell type is boolean.boolean
, false
if the value is not a boolean.getType()
,
CellType.BOOLEAN_LITERAL
void setValue(String value)
Value
' attribute.
value
- the new value of the 'Value' attribute.getValue()
void setValueString(String value)
value
- the new String cell value.CellType.STRING_LITERAL
void setValueError(int value)
value
- the new boolean cell value.CellType.BOOLEAN_LITERAL
void setValueBoolean(boolean value)
value
- the new String cell value.CellType.STRING_LITERAL
void setValueInt(int value)
value
- the new integer cell value.CellType.NUMERIC_LITERAL
void setValueDouble(double value)
value
- the new double cell value.CellType.NUMERIC_LITERAL
Comment getComment()
setComment(Comment)
,
ExcelPackage.getCell_Comment()
void setComment(Comment value)
Comment
' containment reference.
value
- the new value of the 'Comment' containment reference.getComment()
CellStyle getStyle()
setStyle(CellStyle)
,
ExcelPackage.getCell_Style()
void setStyle(CellStyle value)
Style
' reference.
value
- the new value of the 'Style' reference.getStyle()
CellType getType()
CellType
.
CellType
,
setType(CellType)
,
ExcelPackage.getCell_Type()
Column getColumn()
Cells
'.
ExcelPackage.getCell_Column()
,
Column.getCells()
String getFormula()
""
.
setFormula(String)
,
ExcelPackage.getCell_Formula()
void setFormula(String value)
Formula
' attribute.
value
- the new value of the 'Formula' attribute.getFormula()
Hyperlink getHyperlink()
setHyperlink(Hyperlink)
,
ExcelPackage.getCell_Hyperlink()
void setHyperlink(Hyperlink value)
Hyperlink
' reference.
value
- the new value of the 'Hyperlink' reference.getHyperlink()