Class AHCompoundDataMerger
- java.lang.Object
-
- jp.co.antenna.AHOOXMLDocxManagerJavaCtl.AHCompoundDataMerger
-
public class AHCompoundDataMerger extends java.lang.Object
Compound type data-merge- Version:
- 1.0 2021/09/29
- Author:
- Copyright (c) 2020-2022 Antenna House, Inc. All rights reserved.
-
-
Field Summary
Fields Modifier and Type Field Description CompoundTypeOption.DeletingFooterRule
deletingFooterRule
Editing rule for the footer part with a fixed number of rowsjava.lang.String
linkingKey
Column name with unique value in the dataCompoundTypeOption.MultiplePagesStyle
multiplePagesStyle
Style when a breakdown part with a fixed number of rows spans multiple pagesCompoundTypeOption.RepeatingRowsPattern
repeatingRowsPattern
Row number pattern of breakdown part
-
Constructor Summary
Constructors Constructor Description AHCompoundDataMerger()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createDetailTypeDataFromCSV(java.lang.String mainDataPath, java.util.ArrayList<java.lang.String> subDataPaths, CommonOption.DataFileEncoding dataFileEncoding)
Create the MergeData from the CSV filevoid
createDetailTypeDataFromJSON(java.lang.String dataPath, java.lang.String linkingKey, CommonOption.DataFileEncoding dataFileEncoding)
Create the MergeData from the JSON filevoid
executeCompoundDataMerge(InputParam inputParam, OutputParam outputParam)
Execute the compound type data-merge to the templatejava.util.ArrayList<java.lang.String>
getDataMergeFields(java.lang.String inputFile)
Get the fields defined in the data-merge template
-
-
-
Field Detail
-
repeatingRowsPattern
public CompoundTypeOption.RepeatingRowsPattern repeatingRowsPattern
Row number pattern of breakdown part
-
multiplePagesStyle
public CompoundTypeOption.MultiplePagesStyle multiplePagesStyle
Style when a breakdown part with a fixed number of rows spans multiple pages
-
deletingFooterRule
public CompoundTypeOption.DeletingFooterRule deletingFooterRule
Editing rule for the footer part with a fixed number of rows
-
linkingKey
public java.lang.String linkingKey
Column name with unique value in the data
-
-
Method Detail
-
createDetailTypeDataFromCSV
public void createDetailTypeDataFromCSV(java.lang.String mainDataPath, java.util.ArrayList<java.lang.String> subDataPaths, CommonOption.DataFileEncoding dataFileEncoding)
Create the MergeData from the CSV file- Parameters:
mainDataPath
- CSV file path for the non-breakdown datasubDataPaths
- CSV file path for the breakdown datadataFileEncoding
- Character encoding of CSV file
-
createDetailTypeDataFromJSON
public void createDetailTypeDataFromJSON(java.lang.String dataPath, java.lang.String linkingKey, CommonOption.DataFileEncoding dataFileEncoding)
Create the MergeData from the JSON file- Parameters:
dataPath
- JSON file pathlinkingKey
- Column name with unique value in the datadataFileEncoding
- Character encoding of JSON file
-
executeCompoundDataMerge
public void executeCompoundDataMerge(InputParam inputParam, OutputParam outputParam) throws AHOOXMLDocxManagerException, java.io.IOException, java.lang.InterruptedException
Execute the compound type data-merge to the template- 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
-
-