Class EdiParser
java.lang.Object
hdi.edi.parser.EdiParser
- All Implemented Interfaces:
hdi.util.Loggers, Closeable, AutoCloseable
The EdiParser class provides functionality for parsing EDI (Electronic Data Interchange) files and processing
EDI transactions with options for validation, logging, and transaction hierarchy management. It supports
various modes of operation such as batch parsing, validation, and strict parsing modes.
The class is designed to handle complex EDI requirements with internal mechanisms for validating transactions,
managing validation issues, and resolving control segments. It leverages configurable fields to adjust the
behavior of the parser, such as strict mode enforcement, fragment mode, and issue suppression.
-
Field Summary
FieldsFields inherited from interface hdi.util.Loggers
ediLogger, ediParsingIssuesLogger, feedbackLogger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()hdi.edi.fileinfo.FileInfofileInfo()static hdi.license.LicenseInfostatic StringisSplitMode(boolean isSplitMode) isValidationMode(boolean isValidationMode) maxNumberOfIssues(int maxNumberOfIssues) parse()Parses the complete EDI data available, delegating the parsing operation internally with a default configuration.parse(int batchSize) Parses the EDI data in batches with the specified batch size.parse835(int batchSize) Deprecated.parse837(int batchSize) Deprecated.
-
Field Details
-
MAX_NUMBER_OF_ISSUES_ENV_NAME
- See Also:
-
DEFAULT_MAX_NUMBER_OF_ISSUES
public static final int DEFAULT_MAX_NUMBER_OF_ISSUES- See Also:
-
-
Constructor Details
-
EdiParser
-
EdiParser
-
-
Method Details
-
parse837
Deprecated.- Parameters:
batchSize-- Returns:
- list of claims
-
parse835
Deprecated.- Parameters:
batchSize-- Returns:
- list of payments
-
parse
Parses the complete EDI data available, delegating the parsing operation internally with a default configuration.- Returns:
- the parsing results containing processed transactions and any validation issues encountered during parsing
-
parse
Parses the EDI data in batches with the specified batch size. Delegates to another method to perform the parsing.- Parameters:
batchSize- the number of transactions to process in each batch- Returns:
- the parsing results, including processed transactions and any validation issues encountered
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getVersion
-
getLicenseInfo
public static hdi.license.LicenseInfo getLicenseInfo() -
fileInfo
public hdi.edi.fileinfo.FileInfo fileInfo() -
isSplitMode
- Returns:
this.
-
maxNumberOfIssues
- Returns:
this.
-
isValidationMode
- Returns:
this.
-