Class AHNestedTableDataMerger
- java.lang.Object
-
- jp.co.antenna.AHOOXMLDocxManagerJavaCtl.AHNestedTableDataMerger
-
public class AHNestedTableDataMerger extends java.lang.Object
Nested table type data-merge- Version:
- 1.0 2021/09/29
- Author:
- Copyright (c) 2021-2022 Antenna House, Inc. All rights reserved.
-
-
Field Summary
Fields Modifier and Type Field Description NestedTableOption.DetailTableType
detailTableType
Width of nested table type
-
Constructor Summary
Constructors Constructor Description AHNestedTableDataMerger()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createDataMainCSV(java.lang.String mainCsvDataPath, java.lang.String subDataPath, CommonOption.DataFileEncoding dataFileEncoding)
Create the MergeData from the CSV filevoid
createDataMainJSON(java.lang.String mainJsonDataPath, java.lang.String subDataPath, CommonOption.DataFileEncoding dataFileEncoding)
Create the MergeData from the JSON filevoid
executeNestedTableDataMerge(InputParam inputParam, OutputParam outputParam)
Perform nested table type data-mergejava.util.ArrayList<java.lang.String>
getDataMergeFields(java.lang.String inputFile)
Get the fields defined in the data-merge template
-
-
-
Field Detail
-
detailTableType
public NestedTableOption.DetailTableType detailTableType
Width of nested table type
-
-
Method Detail
-
createDataMainCSV
public void createDataMainCSV(java.lang.String mainCsvDataPath, java.lang.String subDataPath, CommonOption.DataFileEncoding dataFileEncoding)
Create the MergeData from the CSV file- Parameters:
mainCsvDataPath
- Normal data-merge CSV file pathsubDataPath
- Path of JSON file with nested structuredataFileEncoding
- Character encoding of CSV file
-
createDataMainJSON
public void createDataMainJSON(java.lang.String mainJsonDataPath, java.lang.String subDataPath, CommonOption.DataFileEncoding dataFileEncoding)
Create the MergeData from the JSON file- Parameters:
mainJsonDataPath
- Normal data-merge JSON file pathsubDataPath
- Path of JSON file with nested structuredataFileEncoding
- Character encoding of JSON file
-
executeNestedTableDataMerge
public void executeNestedTableDataMerge(InputParam inputParam, OutputParam outputParam) throws AHOOXMLDocxManagerException, java.io.IOException, java.lang.InterruptedException
Perform nested table type data-merge- Parameters:
inputParam
- Input parameteroutputParam
- Output parameter- Throws:
AHOOXMLDocxManagerException
java.io.IOException
java.lang.InterruptedException
-
getDataMergeFields
public java.util.ArrayList<java.lang.String> getDataMergeFields(java.lang.String inputFile) throws AHOOXMLDocxManagerException, java.io.IOException, java.lang.InterruptedException
Get the fields defined in the data-merge template- Parameters:
inputFile
- Path of the template file for data-merge- Returns:
- Name list of the data-merge field
- Throws:
AHOOXMLDocxManagerException
java.io.IOException
java.lang.InterruptedException
-
-