Package com.sodius.mdw.metamodel.excel
Interface Workbook
-
- All Superinterfaces:
Comparable<Object>
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,MDWEObject
,MDWObject
,org.eclipse.emf.common.notify.Notifier
public interface Workbook extends MDWEObject, org.eclipse.emf.ecore.EModelElement
A representation of the model object 'Workbook'.The following features are supported:
- See Also:
ExcelPackage.getWorkbook()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Sheet
addSheet(String name)
Creates a new sheet at the right of known sheets of this workbook.MDWEList<CellStyle>
getCellStyles()
Returns the value of the 'Cell Styles' containment reference list.Color
getColor(ColorDescriptor colorDescriptor)
Returns the color associated to the specified descriptor.MDWEList<Color>
getColors()
Returns the value of the 'Colors' containment reference list.MDWEList<Font>
getFonts()
Returns the value of the 'Fonts' containment reference list.MDWEList<Sheet>
getSheets()
Returns the value of the 'Sheets' containment reference list.-
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
-
getSheets
MDWEList<Sheet> getSheets()
Returns the value of the 'Sheets' containment reference list. The list contents are of typeSheet
. It is bidirectional and its opposite is 'Workbook
'.- Returns:
- the value of the 'Sheets' containment reference list.
- See Also:
ExcelPackage.getWorkbook_Sheets()
,Sheet.getWorkbook()
-
addSheet
Sheet addSheet(String name)
Creates a new sheet at the right of known sheets of this workbook.- Parameters:
name
- the new sheet name.- Returns:
- the created sheet.
-
getFonts
MDWEList<Font> getFonts()
Returns the value of the 'Fonts' containment reference list. The list contents are of typeFont
.- Returns:
- the value of the 'Fonts' containment reference list.
- See Also:
ExcelPackage.getWorkbook_Fonts()
-
getCellStyles
MDWEList<CellStyle> getCellStyles()
Returns the value of the 'Cell Styles' containment reference list. The list contents are of typeCellStyle
.- Returns:
- the value of the 'Cell Styles' containment reference list.
- See Also:
ExcelPackage.getWorkbook_CellStyles()
-
getColors
MDWEList<Color> getColors()
Returns the value of the 'Colors' containment reference list. The list contents are of typeColor
.- Returns:
- the value of the 'Colors' containment reference list.
- See Also:
ExcelPackage.getWorkbook_Colors()
-
getColor
Color getColor(ColorDescriptor colorDescriptor)
Returns the color associated to the specified descriptor. This methods creates the color if it's not already part of the workbook. It helps to ensure the workbook does not contain duplicate color objects for the same descriptor.- Parameters:
colorDescriptor
- the descriptor of the color to create.- Returns:
- the created color.
-
-