Package com.sodius.mdw.metamodel.excel
Interface Cell
-
- All Superinterfaces:
Comparable<Object>,org.eclipse.emf.ecore.EModelElement,org.eclipse.emf.ecore.EObject,MDWEObject,MDWObject,org.eclipse.emf.common.notify.Notifier
public interface Cell extends MDWEObject, org.eclipse.emf.ecore.EModelElement
A representation of the model object 'Cell'.The following features are supported:
- See Also:
ExcelPackage.getCell()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ColumngetColumn()Returns the value of the 'Column' reference.CommentgetComment()Returns the value of the 'Comment' containment reference.StringgetFormula()Returns the value of the 'Formula' attribute.HyperlinkgetHyperlink()Returns the value of the 'Hyperlink' containment reference.RowgetRow()Returns the value of the 'Row' container reference.CellStylegetStyle()Returns the value of the 'Style' reference.CellTypegetType()Returns the value of the 'Type' attribute.StringgetValue()Returns the value of the 'Value' attribute.booleangetValueBoolean()Returns the underlying value as aboolean.doublegetValueDouble()Returns the underlying value as andouble.intgetValueError()Returns the underlying error, caused by a formula evaluation that cannot succeed.StringgetValueFormula()Returns the cell formula evaluation result.intgetValueInt()Returns the underlying value as anint.voidsetComment(Comment value)Sets the value of the 'Comment' containment reference.voidsetFormula(String value)Sets the value of the 'Formula' attribute.voidsetHyperlink(Hyperlink value)Sets the value of the 'Hyperlink' containment reference.voidsetRow(Row value)Sets the value of the 'Row' container reference.voidsetStyle(CellStyle value)Sets the value of the 'Style' reference.voidsetType(CellType value)Sets the value of the 'Type' attribute.voidsetValue(String value)Sets the value of the 'Value' attribute.voidsetValueBoolean(boolean value)Updates the cell with the specified boolean value.voidsetValueDouble(double value)Updates the cell with the specified double value.voidsetValueError(int value)Updates the cell with the specified formula evaluation error.voidsetValueInt(int value)Updates the cell with the specified integer value.voidsetValueString(String value)Updates the cell with the specified String value.-
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
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
-
-
-
-
Method Detail
-
getRow
Row getRow()
Returns the value of the 'Row' container reference. It is bidirectional and its opposite is 'Cells'.- Returns:
- the value of the 'Row' container reference.
- See Also:
setRow(Row),ExcelPackage.getCell_Row(),Row.getCells()
-
setRow
void setRow(Row value)
Sets the value of the 'Row' container reference.- Parameters:
value- the new value of the 'Row' container reference.- See Also:
getRow()
-
getValue
String getValue()
Returns the value of the 'Value' attribute. The default value is"".- Returns:
- the value of the 'Value' attribute.
- See Also:
setValue(String),ExcelPackage.getCell_Value()
-
getValueError
int getValueError()
Returns the underlying error, caused by a formula evaluation that cannot succeed. Client shall first verify the cell type indicates an error.- Returns:
- the underlying formula evaluation error.
- See Also:
getType(),CellType.ERROR_LITERAL
-
getValueFormula
String getValueFormula()
Returns the cell formula evaluation result. The value is the last known evaluation result, evaluated by the time the cell has been modified or the workbook was saved. Client shall first verify the cell type is a formula.- Returns:
- the cell formula evaluation result,
an empty
Stringif the cell is not a formula. - See Also:
getType(),CellType.FORMULA_LITERAL,getFormula()
-
getValueDouble
double getValueDouble()
Returns the underlying value as andouble. Client shall first verify the cell type is a numeric.- Returns:
- the underlying value as a
double,0.0if the value is not a double. - See Also:
getType(),CellType.NUMERIC_LITERAL
-
getValueInt
int getValueInt()
Returns the underlying value as anint. Client shall first verify the cell type is a numeric.- Returns:
- the underlying value as a
int,0if the value is not a int. - See Also:
getType(),CellType.NUMERIC_LITERAL
-
getValueBoolean
boolean getValueBoolean()
Returns the underlying value as aboolean. Client shall first verify the cell type is boolean.- Returns:
- the underlying value as a
boolean,falseif the value is not a boolean. - See Also:
getType(),CellType.BOOLEAN_LITERAL
-
setValue
void setValue(String value)
Sets the value of the 'Value' attribute.- Parameters:
value- the new value of the 'Value' attribute.- See Also:
getValue()
-
setValueString
void setValueString(String value)
Updates the cell with the specified String value. The cell type is also updated to reflect the value type.- Parameters:
value- the new String cell value.- See Also:
CellType.STRING_LITERAL
-
setValueError
void setValueError(int value)
Updates the cell with the specified formula evaluation error. The cell type is also updated to reflect the value type.- Parameters:
value- the new boolean cell value.- See Also:
CellType.BOOLEAN_LITERAL
-
setValueBoolean
void setValueBoolean(boolean value)
Updates the cell with the specified boolean value. The cell type is also updated to reflect the value type.- Parameters:
value- the new String cell value.- See Also:
CellType.STRING_LITERAL
-
setValueInt
void setValueInt(int value)
Updates the cell with the specified integer value. The cell type is also updated to reflect the value type.- Parameters:
value- the new integer cell value.- See Also:
CellType.NUMERIC_LITERAL
-
setValueDouble
void setValueDouble(double value)
Updates the cell with the specified double value. The cell type is also updated to reflect the value type.- Parameters:
value- the new double cell value.- See Also:
CellType.NUMERIC_LITERAL
-
getComment
Comment getComment()
Returns the value of the 'Comment' containment reference.- Returns:
- the value of the 'Comment' containment reference.
- See Also:
setComment(Comment),ExcelPackage.getCell_Comment()
-
setComment
void setComment(Comment value)
Sets the value of the 'Comment' containment reference.- Parameters:
value- the new value of the 'Comment' containment reference.- See Also:
getComment()
-
getStyle
CellStyle getStyle()
Returns the value of the 'Style' reference.- Returns:
- the value of the 'Style' reference.
- See Also:
setStyle(CellStyle),ExcelPackage.getCell_Style()
-
setStyle
void setStyle(CellStyle value)
Sets the value of the 'Style' reference.- Parameters:
value- the new value of the 'Style' reference.- See Also:
getStyle()
-
getType
CellType getType()
Returns the value of the 'Type' attribute. The literals are from the enumerationCellType.- Returns:
- the value of the 'Type' attribute.
- See Also:
CellType,setType(CellType),ExcelPackage.getCell_Type()
-
getColumn
Column getColumn()
Returns the value of the 'Column' reference. It is bidirectional and its opposite is 'Cells'.- Returns:
- the value of the 'Column' reference.
- See Also:
ExcelPackage.getCell_Column(),Column.getCells()
-
getFormula
String getFormula()
Returns the value of the 'Formula' attribute. The default value is"".- Returns:
- the value of the 'Formula' attribute.
- See Also:
setFormula(String),ExcelPackage.getCell_Formula()
-
setFormula
void setFormula(String value)
Sets the value of the 'Formula' attribute.- Parameters:
value- the new value of the 'Formula' attribute.- See Also:
getFormula()
-
getHyperlink
Hyperlink getHyperlink()
Returns the value of the 'Hyperlink' containment reference.- Returns:
- the value of the 'Hyperlink' containment reference.
- See Also:
setHyperlink(Hyperlink),ExcelPackage.getCell_Hyperlink()
-
setHyperlink
void setHyperlink(Hyperlink value)
Sets the value of the 'Hyperlink' containment reference.- Parameters:
value- the new value of the 'Hyperlink' containment reference.- See Also:
getHyperlink()
-
-