Class ExcelHelper
java.lang.Object
com.nomagic.magicdraw.simulation.excelimport.ExcelHelper
The helper class being used in the scripts for handling data transformation
and other utilities between fUML runtime object and Excel file.
-
Constructor Summary
ConstructorDescriptionExcelHelper
(SimulationSession session) constructor.ExcelHelper
(SimulationSession session, Element scriptContainer) constructor.ExcelHelper
(fUML.Semantics.Classes.Kernel.Object_ context) constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetCellValue
(String fileName, String sheetName, int atRow, int atCol) get value by specific row and column in the Excel file.getCellValue
(String fileName, String sheetName, Number atRow, Number atCol) get value by specific row and column in the Excel file.int
getLatestRowNum
(String fileName, String sheetName) Get the latest row number of the sheet in the Excel file.fUML.Semantics.Classes.Kernel.ValueList
readObjectFromSpreadSheet
(String fileName, int rowIndex) Read the Excel file and create the fUML ValueList.fUML.Semantics.Classes.Kernel.ValueList
readObjectFromSpreadSheet
(String fileName, int rowIndex, Object mappingClass) Read the Excel file and create the fUML ValueList.fUML.Semantics.Classes.Kernel.ValueList
readObjectFromSpreadSheet
(String fileName, Number rowIndex) Read the Excel file and create the fUML ValueList.fUML.Semantics.Classes.Kernel.ValueList
readObjectFromSpreadSheet
(String fileName, Number rowIndex, Object mappingClass) Read the Excel file and create the fUML ValueList.fUML.Semantics.Classes.Kernel.ValueList
readObjectFromSpreadSheet
(String fileName, String sheetName, int rowIndex) Read the Excel file and create the fUML ValueList.fUML.Semantics.Classes.Kernel.ValueList
readObjectFromSpreadSheet
(String fileName, String sheetName, int rowIndex, Object mappingClass) Read the Excel file and create the fUML ValueList.fUML.Semantics.Classes.Kernel.ValueList
readObjectFromSpreadSheet
(String fileName, String sheetName, Number rowIndex) Read the Excel file and create the fUML ValueList.fUML.Semantics.Classes.Kernel.ValueList
readObjectFromSpreadSheet
(String fileName, String sheetName, Number rowIndex, Object mappingClass) Read the Excel file and create the fUML ValueList.fUML.Semantics.Classes.Kernel.ValueList
readObjectsFromSpreadSheet
(String fileName, int startRow, int endRow) Read the Excel file and create the fUML ValueList.fUML.Semantics.Classes.Kernel.ValueList
readObjectsFromSpreadSheet
(String fileName, Number startRow, Number endRow) Read the Excel file and create the fUML ValueList.fUML.Semantics.Classes.Kernel.ValueList
readObjectsFromSpreadSheet
(String fileName, Number startRow, Number endRow, Object mappingClass) Read the Excel file and create the fUML ValueList.fUML.Semantics.Classes.Kernel.ValueList
readObjectsFromSpreadSheet
(String fileName, Object mappingClass) Read the Excel file and create the fUML ValueList for all rows in excel.fUML.Semantics.Classes.Kernel.ValueList
readObjectsFromSpreadSheet
(String fileName, String name) Read the Excel file and create the fUML ValueList for all rows in excel.fUML.Semantics.Classes.Kernel.ValueList
readObjectsFromSpreadSheet
(String fileName, String sheetName, int startRow, int endRow) Read the Excel file and create the fUML ValueList.fUML.Semantics.Classes.Kernel.ValueList
readObjectsFromSpreadSheet
(String fileName, String sheetName, int startRow, int endRow, Object mappingClass) Read the Excel file and create the fUML ValueList.fUML.Semantics.Classes.Kernel.ValueList
readObjectsFromSpreadSheet
(String fileName, String sheetName, Number startRow, Number endRow) Read the Excel file and create the fUML ValueList.fUML.Semantics.Classes.Kernel.ValueList
readObjectsFromSpreadSheet
(String fileName, String sheetName, Number startRow, Number endRow, Object mappingClass) Read the Excel file and create the fUML ValueList.fUML.Semantics.Classes.Kernel.ValueList
readObjectsFromSpreadSheet
(String fileName, String sheetName, Object mappingClass) Read the Excel file and create the fUML ValueList for all rows in excel.void
setCellValue
(Object object, String fileName, String sheetName, int atRow, int atCol) Set fUML runtime value to specific row and column in the Excel file.void
Set fUML runtime value to specific row and column in the Excel file.void
updatefUMLValueFromSpreadSheet
(fUML.Semantics.Classes.Kernel.StructuredValue value, String fileName, int rowIndex) update the value of SpreadSheet to fUML runtime object.void
updatefUMLValueFromSpreadSheet
(fUML.Semantics.Classes.Kernel.StructuredValue value, String fileName, int rowIndex, Object mappingClass) update the value of SpreadSheet to fUML runtime object.void
updatefUMLValueFromSpreadSheet
(fUML.Semantics.Classes.Kernel.StructuredValue value, String fileName, Number rowIndex) update the value of SpreadSheet to fUML runtime object.void
updatefUMLValueFromSpreadSheet
(fUML.Semantics.Classes.Kernel.StructuredValue value, String fileName, Number rowIndex, Object mappingClass) update the value of SpreadSheet to fUML runtime object.void
updatefUMLValueFromSpreadSheet
(fUML.Semantics.Classes.Kernel.StructuredValue value, String fileName, String sheetName, int rowIndex) update the value of SpreadSheet to fUML runtime object.void
updatefUMLValueFromSpreadSheet
(fUML.Semantics.Classes.Kernel.StructuredValue value, String fileName, String sheetName, int rowIndex, Object mappingClass) update the value of SpreadSheet to fUML runtime object.void
updatefUMLValueFromSpreadSheet
(fUML.Semantics.Classes.Kernel.StructuredValue value, String fileName, String sheetName, Number rowIndex) update the value of SpreadSheet to fUML runtime object.void
updatefUMLValueFromSpreadSheet
(fUML.Semantics.Classes.Kernel.StructuredValue value, String fileName, String sheetName, Number rowIndex, Object mappingClass) update the value of SpreadSheet to fUML runtime object.void
writeObjectsToSpreadSheet
(Object object, String fileName, int atRow, boolean isReplace) Write the fUML runtime value to the Excel file.void
writeObjectsToSpreadSheet
(Object object, String fileName, int atRow, boolean isReplace, Object mappingClass) Write the fUML runtime value to the Excel file.void
writeObjectsToSpreadSheet
(Object object, String fileName, Number atRow, boolean isReplace) Write the fUML runtime value to the Excel file.void
writeObjectsToSpreadSheet
(Object object, String fileName, Number atRow, boolean isReplace, Object mappingClass) Write the fUML runtime value to the Excel file.void
writeObjectsToSpreadSheet
(Object object, String fileName, String sheetName, int atRow, boolean isReplace) Write the fUML runtime value to the Excel file.void
writeObjectsToSpreadSheet
(Object object, String fileName, String sheetName, int atRow, boolean isReplace, Object mappingClass) Write the fUML runtime value to the Excel file.void
writeObjectsToSpreadSheet
(Object object, String fileName, String sheetName, Number atRow, boolean isReplace) Write the fUML runtime value to the Excel file.void
writeObjectsToSpreadSheet
(Object object, String fileName, String sheetName, Number atRow, boolean isReplace, Object mappingClass) Write the fUML runtime value to the Excel file.
-
Constructor Details
-
ExcelHelper
constructor.- Parameters:
session
- the running session.
-
ExcelHelper
constructor.- Parameters:
session
- the running session.
-
ExcelHelper
public ExcelHelper(fUML.Semantics.Classes.Kernel.Object_ context) constructor.- Parameters:
context
- the context of caller
-
-
Method Details
-
getLatestRowNum
Get the latest row number of the sheet in the Excel file.- Parameters:
fileName
- the Excel file namesheetName
- the sheet name- Returns:
- the latest row number of the sheet in the Excel file
-
readObjectFromSpreadSheet
@CheckForNull public fUML.Semantics.Classes.Kernel.ValueList readObjectFromSpreadSheet(String fileName, int rowIndex) throws Exception Read the Excel file and create the fUML ValueList.- Parameters:
fileName
- the Excel file namerowIndex
- the index of row- Returns:
- the fUML ValueList of the data in the Excel file
- Throws:
Exception
- could be thrown if problem occurs when reading excel data
-
readObjectFromSpreadSheet
@CheckForNull public fUML.Semantics.Classes.Kernel.ValueList readObjectFromSpreadSheet(String fileName, Number rowIndex) throws Exception Read the Excel file and create the fUML ValueList.- Parameters:
fileName
- the Excel file namerowIndex
- the index of row- Returns:
- the fUML ValueList of the data in the Excel file
- Throws:
Exception
- could be thrown if problem occurs when reading excel data
-
readObjectFromSpreadSheet
@CheckForNull public fUML.Semantics.Classes.Kernel.ValueList readObjectFromSpreadSheet(String fileName, int rowIndex, Object mappingClass) throws Exception Read the Excel file and create the fUML ValueList.- Parameters:
fileName
- the Excel file namerowIndex
- the index of rowmappingClass
- the mapping class nameString
or mapping classElement
- Returns:
- the fUML ValueList of the data in the Excel file
- Throws:
Exception
- could be thrown if problem occurs when reading excel data
-
readObjectFromSpreadSheet
@CheckForNull public fUML.Semantics.Classes.Kernel.ValueList readObjectFromSpreadSheet(String fileName, Number rowIndex, Object mappingClass) throws Exception Read the Excel file and create the fUML ValueList.- Parameters:
fileName
- the Excel file namerowIndex
- the index of rowmappingClass
- the mapping class nameString
or mapping classElement
- Returns:
- the fUML ValueList of the data in the Excel file
- Throws:
Exception
- could be thrown if problem occurs when reading excel data
-
readObjectFromSpreadSheet
@CheckForNull public fUML.Semantics.Classes.Kernel.ValueList readObjectFromSpreadSheet(String fileName, String sheetName, int rowIndex) throws Exception Read the Excel file and create the fUML ValueList.- Parameters:
fileName
- the Excel file namesheetName
- the sheet namerowIndex
- the index of row- Returns:
- the fUML ValueList of the data in the Excel file
- Throws:
Exception
- could be thrown if problem occurs when reading excel data
-
readObjectFromSpreadSheet
@CheckForNull public fUML.Semantics.Classes.Kernel.ValueList readObjectFromSpreadSheet(String fileName, String sheetName, Number rowIndex) throws Exception Read the Excel file and create the fUML ValueList.- Parameters:
fileName
- the Excel file namesheetName
- the sheet namerowIndex
- the index of row- Returns:
- the fUML ValueList of the data in the Excel file
- Throws:
Exception
- could be thrown if problem occurs when reading excel data
-
readObjectFromSpreadSheet
@CheckForNull public fUML.Semantics.Classes.Kernel.ValueList readObjectFromSpreadSheet(String fileName, String sheetName, int rowIndex, Object mappingClass) throws Exception Read the Excel file and create the fUML ValueList.- Parameters:
fileName
- the Excel file namesheetName
- the sheet namerowIndex
- the index of rowmappingClass
- the mapping class nameString
or mapping classElement
- Returns:
- the fUML ValueList of the data in the Excel file
- Throws:
Exception
- could be thrown if problem occurs when reading excel data
-
readObjectFromSpreadSheet
@CheckForNull public fUML.Semantics.Classes.Kernel.ValueList readObjectFromSpreadSheet(String fileName, String sheetName, Number rowIndex, Object mappingClass) throws Exception Read the Excel file and create the fUML ValueList.- Parameters:
fileName
- the Excel file namesheetName
- the sheet namerowIndex
- the index of rowmappingClass
- the mapping class nameString
or mapping classElement
- Returns:
- the fUML ValueList of the data in the Excel file
- Throws:
Exception
- could be thrown if problem occurs when reading excel data
-
readObjectsFromSpreadSheet
@CheckForNull public fUML.Semantics.Classes.Kernel.ValueList readObjectsFromSpreadSheet(String fileName, int startRow, int endRow) throws Exception Read the Excel file and create the fUML ValueList.- Parameters:
fileName
- the Excel file namestartRow
- the start row numberendRow
- the end row number- Returns:
- the fUML ValueList of the data in the Excel file
- Throws:
Exception
- could be thrown if problem occurs when reading excel data
-
readObjectsFromSpreadSheet
@CheckForNull public fUML.Semantics.Classes.Kernel.ValueList readObjectsFromSpreadSheet(String fileName, Number startRow, Number endRow) throws Exception Read the Excel file and create the fUML ValueList.- Parameters:
fileName
- the Excel file namestartRow
- the start row numberendRow
- the end row number- Returns:
- the fUML ValueList of the data in the Excel file
- Throws:
Exception
- could be thrown if problem occurs when reading excel data
-
readObjectsFromSpreadSheet
@CheckForNull public fUML.Semantics.Classes.Kernel.ValueList readObjectsFromSpreadSheet(String fileName, Number startRow, Number endRow, Object mappingClass) throws Exception Read the Excel file and create the fUML ValueList.- Parameters:
fileName
- the Excel file namestartRow
- the start row numberendRow
- the end row numbermappingClass
- the mapping class nameString
or mapping classElement
- Returns:
- the fUML ValueList of the data in the Excel file
- Throws:
Exception
- could be thrown if problem occurs when reading excel data
-
readObjectsFromSpreadSheet
@CheckForNull public fUML.Semantics.Classes.Kernel.ValueList readObjectsFromSpreadSheet(String fileName, String sheetName, int startRow, int endRow) throws Exception Read the Excel file and create the fUML ValueList.- Parameters:
fileName
- the Excel file namesheetName
- the sheet namestartRow
- the start row numberendRow
- the end row number- Returns:
- the fUML ValueList of the data in the Excel file
- Throws:
Exception
- could be thrown if problem occurs when reading excel data
-
readObjectsFromSpreadSheet
@CheckForNull public fUML.Semantics.Classes.Kernel.ValueList readObjectsFromSpreadSheet(String fileName, String sheetName, Number startRow, Number endRow) throws Exception Read the Excel file and create the fUML ValueList.- Parameters:
fileName
- the Excel file namesheetName
- the sheet namestartRow
- the start row numberendRow
- the end row number- Returns:
- the fUML ValueList of the data in the Excel file
- Throws:
Exception
- could be thrown if problem occurs when reading excel data
-
readObjectsFromSpreadSheet
@CheckForNull public fUML.Semantics.Classes.Kernel.ValueList readObjectsFromSpreadSheet(String fileName, Object mappingClass) throws Exception Read the Excel file and create the fUML ValueList for all rows in excel.- Parameters:
fileName
- the Excel file namemappingClass
- the mapping class nameString
or mapping classElement
- Returns:
- the fUML ValueList of the data in the Excel file
- Throws:
Exception
- could be thrown if problem occurs when reading excel data
-
readObjectsFromSpreadSheet
@CheckForNull public fUML.Semantics.Classes.Kernel.ValueList readObjectsFromSpreadSheet(String fileName, String name) throws Exception Read the Excel file and create the fUML ValueList for all rows in excel.- Parameters:
fileName
- the Excel file namename
- the name of Mapping Class or sheet name.- Returns:
- the fUML ValueList of the data in the Excel file
- Throws:
Exception
- could be thrown if problem occurs when reading excel data
-
readObjectsFromSpreadSheet
@CheckForNull public fUML.Semantics.Classes.Kernel.ValueList readObjectsFromSpreadSheet(String fileName, String sheetName, Object mappingClass) throws Exception Read the Excel file and create the fUML ValueList for all rows in excel.- Parameters:
fileName
- the Excel file namesheetName
- the sheet namemappingClass
- the mapping class nameString
or mapping classElement
- Returns:
- the fUML ValueList of the data in the Excel file
- Throws:
Exception
- could be thrown if problem occurs when reading excel data
-
readObjectsFromSpreadSheet
@CheckForNull public fUML.Semantics.Classes.Kernel.ValueList readObjectsFromSpreadSheet(String fileName, String sheetName, Number startRow, Number endRow, @CheckForNull Object mappingClass) throws Exception Read the Excel file and create the fUML ValueList.- Parameters:
fileName
- the Excel file namesheetName
- the sheet namestartRow
- the start row numberendRow
- the end row numbermappingClass
- the mapping class nameString
or mapping classElement
- Returns:
- the fUML ValueList of the data in the Excel file
- Throws:
Exception
- could be thrown if problem occurs when reading excel data
-
readObjectsFromSpreadSheet
@CheckForNull public fUML.Semantics.Classes.Kernel.ValueList readObjectsFromSpreadSheet(String fileName, String sheetName, int startRow, int endRow, @CheckForNull Object mappingClass) throws Exception Read the Excel file and create the fUML ValueList.- Parameters:
fileName
- the Excel file namesheetName
- the sheet namestartRow
- the start row numberendRow
- the end row numbermappingClass
- the mapping class nameString
or mapping classElement
- Returns:
- the fUML ValueList of the data in the Excel file
- Throws:
Exception
- could be thrown if problem occurs when reading excel data
-
setCellValue
Set fUML runtime value to specific row and column in the Excel file.- Parameters:
object
- the fUML runtime value (ValueList/Value)fileName
- the Excel file namesheetName
- the sheet nameatRow
- the row index numberatCol
- the column index number
-
setCellValue
public void setCellValue(Object object, String fileName, String sheetName, Number atRow, Number atCol) Set fUML runtime value to specific row and column in the Excel file.- Parameters:
object
- the fUML runtime value (ValueList/Value)fileName
- the Excel file namesheetName
- the sheet nameatRow
- the row index numberatCol
- the column index number
-
getCellValue
get value by specific row and column in the Excel file.- Parameters:
fileName
- the Excel file namesheetName
- the sheet nameatRow
- the row index numberatCol
- the column index number- Returns:
- the value of cell
-
getCellValue
@CheckForNull public Object getCellValue(String fileName, String sheetName, Number atRow, Number atCol) get value by specific row and column in the Excel file.- Parameters:
fileName
- the Excel file namesheetName
- the sheet nameatRow
- the row index numberatCol
- the column index number- Returns:
- the value of cell
-
updatefUMLValueFromSpreadSheet
public void updatefUMLValueFromSpreadSheet(fUML.Semantics.Classes.Kernel.StructuredValue value, String fileName, int rowIndex) throws Exception update the value of SpreadSheet to fUML runtime object.- Parameters:
value
- the runtime objectfileName
- the spreadSheet file pathrowIndex
- the row index- Throws:
Exception
- exception
-
updatefUMLValueFromSpreadSheet
public void updatefUMLValueFromSpreadSheet(fUML.Semantics.Classes.Kernel.StructuredValue value, String fileName, Number rowIndex) throws Exception update the value of SpreadSheet to fUML runtime object.- Parameters:
value
- the runtime objectfileName
- the spreadSheet file pathrowIndex
- the row index- Throws:
Exception
- exception
-
updatefUMLValueFromSpreadSheet
public void updatefUMLValueFromSpreadSheet(fUML.Semantics.Classes.Kernel.StructuredValue value, String fileName, String sheetName, int rowIndex) throws Exception update the value of SpreadSheet to fUML runtime object.- Parameters:
value
- the runtime objectfileName
- the spreadSheet file pathsheetName
- the sheet namerowIndex
- the row index- Throws:
Exception
- exception
-
updatefUMLValueFromSpreadSheet
public void updatefUMLValueFromSpreadSheet(fUML.Semantics.Classes.Kernel.StructuredValue value, String fileName, String sheetName, Number rowIndex) throws Exception update the value of SpreadSheet to fUML runtime object.- Parameters:
value
- the runtime objectfileName
- the spreadSheet file pathsheetName
- the sheet namerowIndex
- the row index- Throws:
Exception
- exception
-
updatefUMLValueFromSpreadSheet
public void updatefUMLValueFromSpreadSheet(fUML.Semantics.Classes.Kernel.StructuredValue value, String fileName, int rowIndex, @CheckForNull Object mappingClass) throws Exception update the value of SpreadSheet to fUML runtime object.- Parameters:
value
- the runtime objectfileName
- the spreadSheet file pathrowIndex
- the row indexmappingClass
- the mapping class nameString
or mapping classElement
- Throws:
Exception
- exception
-
updatefUMLValueFromSpreadSheet
public void updatefUMLValueFromSpreadSheet(fUML.Semantics.Classes.Kernel.StructuredValue value, String fileName, Number rowIndex, @CheckForNull Object mappingClass) throws Exception update the value of SpreadSheet to fUML runtime object.- Parameters:
value
- the runtime objectfileName
- the spreadSheet file pathrowIndex
- the row indexmappingClass
- the mapping class nameString
or mapping classElement
- Throws:
Exception
- exception
-
updatefUMLValueFromSpreadSheet
public void updatefUMLValueFromSpreadSheet(fUML.Semantics.Classes.Kernel.StructuredValue value, String fileName, String sheetName, Number rowIndex, @CheckForNull Object mappingClass) throws Exception update the value of SpreadSheet to fUML runtime object.- Parameters:
value
- the runtime objectfileName
- the spreadSheet file pathsheetName
- the sheet namerowIndex
- the row indexmappingClass
- the mapping class nameString
or mapping classElement
- Throws:
Exception
- exception
-
updatefUMLValueFromSpreadSheet
public void updatefUMLValueFromSpreadSheet(fUML.Semantics.Classes.Kernel.StructuredValue value, String fileName, String sheetName, int rowIndex, @CheckForNull Object mappingClass) throws Exception update the value of SpreadSheet to fUML runtime object.- Parameters:
value
- the runtime objectfileName
- the spreadSheet file pathsheetName
- the sheet namerowIndex
- the row indexmappingClass
- the mapping class nameString
or mapping classElement
- Throws:
Exception
- exception
-
writeObjectsToSpreadSheet
public void writeObjectsToSpreadSheet(Object object, String fileName, int atRow, boolean isReplace, Object mappingClass) throws Exception Write the fUML runtime value to the Excel file.- Parameters:
object
- the fUML runtime value (ValueList/Value)fileName
- the Excel file nameatRow
- the row number to write the dataisReplace
- if true, it will replace the existing data if false, it will insert the data at atRowmappingClass
- the mapping class nameString
or mapping classElement
- Throws:
Exception
-
writeObjectsToSpreadSheet
public void writeObjectsToSpreadSheet(Object object, String fileName, Number atRow, boolean isReplace, Object mappingClass) throws Exception Write the fUML runtime value to the Excel file.- Parameters:
object
- the fUML runtime value (ValueList/Value)fileName
- the Excel file nameatRow
- the row number to write the dataisReplace
- if true, it will replace the existing data if false, it will insert the data at atRowmappingClass
- the mapping class nameString
or mapping classElement
- Throws:
Exception
-
writeObjectsToSpreadSheet
public void writeObjectsToSpreadSheet(Object object, String fileName, String sheetName, int atRow, boolean isReplace) throws Exception Write the fUML runtime value to the Excel file.- Parameters:
object
- the fUML runtime value (ValueList/Value)fileName
- the Excel file namesheetName
- the sheet nameatRow
- the row number to write the dataisReplace
- if true, it will replace the existing data if false, it will insert the data at atRow- Throws:
Exception
-
writeObjectsToSpreadSheet
public void writeObjectsToSpreadSheet(Object object, String fileName, String sheetName, Number atRow, boolean isReplace) throws Exception Write the fUML runtime value to the Excel file.- Parameters:
object
- the fUML runtime value (ValueList/Value)fileName
- the Excel file namesheetName
- the sheet nameatRow
- the row number to write the dataisReplace
- if true, it will replace the existing data if false, it will insert the data at atRow- Throws:
Exception
-
writeObjectsToSpreadSheet
public void writeObjectsToSpreadSheet(Object object, String fileName, int atRow, boolean isReplace) throws Exception Write the fUML runtime value to the Excel file.- Parameters:
object
- the fUML runtime value (ValueList/Value)fileName
- the Excel file nameatRow
- the row number to write the dataisReplace
- if true, it will replace the existing data if false, it will insert the data at atRow- Throws:
Exception
-
writeObjectsToSpreadSheet
public void writeObjectsToSpreadSheet(Object object, String fileName, Number atRow, boolean isReplace) throws Exception Write the fUML runtime value to the Excel file.- Parameters:
object
- the fUML runtime value (ValueList/Value)fileName
- the Excel file nameatRow
- the row number to write the dataisReplace
- if true, it will replace the existing data if false, it will insert the data at atRow- Throws:
Exception
-
writeObjectsToSpreadSheet
public void writeObjectsToSpreadSheet(Object object, String fileName, String sheetName, Number atRow, boolean isReplace, @CheckForNull Object mappingClass) throws Exception Write the fUML runtime value to the Excel file.- Parameters:
object
- the fUML runtime value (ValueList/Value)fileName
- the Excel file namesheetName
- the sheet nameatRow
- the row number to write the dataisReplace
- if true, it will replace the existing data if false, it will insert the data at atRowmappingClass
- the mapping class nameString
or mapping classElement
- Throws:
Exception
-
writeObjectsToSpreadSheet
public void writeObjectsToSpreadSheet(Object object, String fileName, String sheetName, int atRow, boolean isReplace, @CheckForNull Object mappingClass) throws Exception Write the fUML runtime value to the Excel file.- Parameters:
object
- the fUML runtime value (ValueList/Value)fileName
- the Excel file namesheetName
- the sheet nameatRow
- the row number to write the dataisReplace
- if true, it will replace the existing data if false, it will insert the data at atRowmappingClass
- the mapping class nameString
or mapping classElement
- Throws:
Exception
-